A tricky XML Query with Java.Please guide.

2610 byte By bhuru_luthriaa at 2007-11-27 7:13:10
I have a tricky question here.1).I have an XML that is generated on the fly.XML Generated-Document genereatedDoc =<Trade><Level>10 </Level><Sty> .5 </Sty></Trade>2).I have to add the above XML generated in between another XML document-Main XML ...

Connect to a remote server

306 byte By atanu.123a at 2007-11-27 7:13:29
Hi All,I want to connect to a remote UNIX server by Java program. I have the server IP.How can i do this? What Java class or methods should i use?Can any one give pointers to this? It will be of great help if i can have some sample codes for reference.Thanks in ...

How to pass a server side value to an attribute of a custom jsp tag

7048 byte By jadeite100a at 2007-11-27 7:14:00
Hi All:I needed to passed an integer value from the following code:<%=ic.getTotalNumOfRecords()%>to an attribute of a custom tag<inquiry:tableClaimHistory numberOfRecords="5" dataAction="claimHistoryViewData.do" emptyKey="error.noData"/>The function getTotalNumOfRecords returns an ...

Tomcat 6 Admin Webapp Headache

3429 byte By chris1a at 2007-11-27 7:14:29
Hi there,I've just installed Tomcat 6 and am now trying to install the Admin webapp. Firstly, I couldn't find it anywhere on the tomcat website and I eventually (after loads of searching around on google) found the ...

This one hangs

896 byte By burntcandlea at 2007-11-27 7:14:41
OK here are my properties, obviously username etc coveredproperties.setProperty("protocol","smtp");properties.setProperty("type","transport");properties.setProperty("class","com.sun.mail.smtp.SMTPTransport");properties.setProperty("vendor","Sun Microsystems, ...

How to handle multiple datasources in a web application?

600 byte By DJ_Vikinga at 2007-11-27 7:14:48
I have a J2EE Web application with Servlets and Java ServerPages. Beside this I have a in-house developed API for certain services built using Hibernate and Spring with POJO's and some EJB.There are 8 databases which will be used by the web application. I have heard that multiple datasources ...

FacesContext error and Tomcat

1333 byte By da_wannabesa at 2007-11-27 7:15:16
Out of interest to other users, I posted this thread in the Sun Java System Portal Server 6: http://forum.java.sun.com/thread.jspa?threadID=5182884&tstart=0 Seeing that I am getting a FacesContext error, and as I'm not sure that the previous forum was the correct area to voice my problem, ...

Not able to run a JSP file in Tomcat 5.5

13271 byte By Abhishek-Dhara at 2007-11-27 7:16:29
Hello friends i am new to JSP programming.I recently designed a application to enter values of certain field in a database (Using SQL Server Database)i used a file name Register.jsp, so when the action is performed by clicking submit button it use to call another file named Register_DB.jsp in ...

URL Masking

525 byte By sabian131a at 2007-11-27 7:16:30
Hello.I have a website using servlets that is working great! I can access the site using an ugly url: http://0.0.0.0/myWebsite/servlet/srvltLogin (as an example). I registered a domain name with goDaddy and have it pointing to the login servlet as a mask. I have a login script that, on a ...

Regarding <h:outputText ...>

276 byte By Doga at 2007-11-27 7:16:35
Can I use < h:outputText value="#{name}" />Where the name is the id of inputText component on the page.If I am missing some thing then please help me as I am not able to display the value using component id. I have not to use any bean.Thanks.

To display the current week's date's

321 byte By shinystara at 2007-11-27 7:16:36
I want to display the current week's date's in my jsp using a servlet.. how do i implement this?the out put will be something like this...sunday 01/01/07 monday 01/02/07 ............saturday 01/06/07and the date should change for the nxt week....is it possible? and how please ...

Dynamic List from Database

445 byte By nishitta at 2007-11-27 7:21:09
Hi,I have JSP Page with two date fields From Date and To Date. I submit the JSP page when user changes the date. I also have 6 list fields as query criteria. I would like to refresh this list dynamically from the database depending on the date range selected.Result data based on the given ...

JSF due diligence

1455 byte By exception512a at 2007-11-27 7:27:03
Hello,I am investigating web frameworks suitable for the new project that I am going to undertake. I read a lot of pros and cons about JSF and I am wondering how much of it really matters in real world usage. Our product has Swing based UI. The new project I am looking into will be a web based ...

XML Validation in java for SQL injects and scripts

329 byte By satisataa at 2007-11-27 7:27:14
I have an input coming from xml file.I have to read that input and validate the input against sql injections and scripts.I require help now how to read this xml data and validate against the above two options.I am a java developer.in this context what is marshelling?plz provide the ...

Problem with JasperReports

2777 byte By Tensitaa at 2007-11-27 7:27:21
Hi, im followed all the steps from this site: http://developers.sun.com/jsenterprise/reference/techart/jse8/jasper_reports.html#1 And now Im trying the firts example, I've changed the path of reportSource and ReportDest but I get this error message: net.sf.jasperreports.engine.JRException: ...

jsp and javascript

2672 byte By pompeighuIIa at 2007-11-27 7:27:32
i want a table and i want to add rows to that table. I can do it but what i don't know is that instead of adding input text i want to add select list (drop down list) and i want to populate that drop down list with data from a database. So far my javascript for adding rows with input fields is ...

nested dataTables

585 byte By syllepsaa at 2007-11-27 7:27:40
Hi,I have JSF page with the following structure:JScookMenuparentTablechildTable1childTable2/parentTableThe parent table serves as an iterator for internal dataTables. Unfortunatelly parent table takes some space on the screen thus there is a gap between JScookMenu and childTable1. I tried to ...

Very Urgent !.......... jsp login program connected with database !

419 byte By khan_vu2007a at 2007-11-27 7:27:42
hi, i am working on my web site , and i want to write the code for multiple users they want to login to web site.i want some help regarding how to write code for multiple users, and their id and password are in the database table .suppose i have a table named Login and has to feilds (1) id and ...

Message bundle Please help !

299 byte By jbayugaa at 2007-11-27 7:27:44
Hey Im trying to make the message bundle <application><message-bundle>webadmin.MyErrors</message-bundle></application>I would like to make another file "MyErrors2 and have it switch based on a variable in the controller.. is that

JSP Tomcat - Confused

1401 byte By jspvoipa at 2007-11-27 7:27:48
Hello, Let me start off by saying, I know nothing about programming in any language or Tomcat or Java. I downloaded a program called speeddials.jsp from Cisco in order to get speeddials working on Cisco phones. I've tried to follow their documentation on setting up Java and Tomcat on a Windows ...

[ADF] Having Difficult Time Figuring Out Using the af:selectInputText Tag

2884 byte By jiapei_jena at 2007-11-27 7:28:23
This is my first time using the ADF tags.The <af:selectInputText> is an input component that can launch a dialog and automatically accept its return value.My pop-up is a data table that provides "code" and "description". And the selection made will be return to the parent page and the ...

Running javac from a servlet

915 byte By weezeegeea at 2007-11-27 7:28:48
I'm using a servlet to collect information from a user via the web, and then putting that data into a .java file. The files are stored in /webapps/root/temp.The files get written properly, but when I use Runtime.exec to call javac to compile the files that are in the temp folder, I get an ...

Remove cache

713 byte By nagaraja at 2007-11-27 7:28:50
Sir To remove browser cache i have used this is in my jsp fileas from the java forums post i saw this http://forum.java.sun.com/thread.jspa?threadID=757124&messageID=4325719response.setHeader("Cache-Control", "no-cache"); //Forces caches to obtain a new copy of the page from the origin ...

Strut with MS Access

7400 byte By prashantjangamea at 2007-11-27 7:29:12
Hi,I am trying to connect MS Access using strut framework.But when I deploy application and start the tomcat server I get followiing Exception. Do anybody know why this is takeing place?/Here is my strut-config.xml<data-sources><data-source><set-property property="driverClass" ...

Upload and scale image

459 byte By winedza at 2007-11-27 7:29:20
Hi,I'm fairly new to jspI need to upload an image file (.jpg or .gif) using<INPUT TYPE='file' NAME='test'> inside the form tag (action to upload.jsp)my question, what should i do inside my upload.jsp.. I just need to save it in a directory at the serverMoreover, I should also scale ...

How to unsubscribe some topic in the forum

626 byte By Devemora at 2007-11-27 7:29:38
Hello,everybody.I have subscribed the discussion topic of this forum,I am delight that the other users would response for the topic which I have posted to help me.But I found that the forum have send many topics to my email box everyday,and most of these topics are not relative with the ...

Creating a blog from scratch

284 byte By sas0rizaa at 2007-11-27 7:29:42
Hi, im new at JSP and servlet so im still a little bit confuse on where to start. im suppose to create a blog from scratch (something like blogger.com) using JSP and servlet. could somebody give me some idea on where to start or some reference?thx in advanceRgds,

how to create a blog from scratch?

284 byte By sas0rizaa at 2007-11-27 7:29:43
Hi, im new at JSP and servlet so im still a little bit confuse on where to start. im suppose to create a blog from scratch (something like blogger.com) using JSP and servlet. could somebody give me some idea on where to start or some reference?thx in advanceRgds,

JSF-1.2 and JBoss without facelet

398 byte By HaroonAnwarPADHYARa at 2007-11-27 7:29:44
i want to use JSF1.2 with JBoss server. but i think it is need to server support for JSP 2.1 and servlet 2.5.i m testing it on JBoss-4.0.5 GA, but JSF 1.2 is not running on that.if any one has idea plz tell me. is JBoss-4.0.5 GA support JSF 1.2 if not tell me any other version of JBoss that ...

how can i collect values from database using OR condition?

3757 byte By senthil_yogaa at 2007-11-27 7:30:10
i have a table containing employee and language ...I have a select box containing languages and if i select two languages and click on submit.it should do collect all employees having either of the languages using OR condition..how can i do this out..i have written some code and i will show ...

Ajax help!!!

191 byte By java@mania at 2007-11-27 7:30:11
Can any one please tell me some site for using ajax with database connectivity.I want to implement the ajax for check avaliability.Please provide some gud sites to study.

how can i collect values from database using OR condition?

3757 byte By senthil_yogaa at 2007-11-27 7:30:12
i have a table containing employee and language ...I have a select box containing languages and if i select two languages and click on submit.it should do collect all employees having either of the languages using OR condition..how can i do this out..i have written some code and i will show ...

restoring values from managed bean

3553 byte By h0rn3ta at 2007-11-27 7:30:17
i have a page with the list of all rows that i want to display as a dataTable.After the user clicks on the commandlink in the specified row, he gets redirected to a new page with detail information. On this second page there are two selectOneMenu components. The first one changes the values for ...

How To create a custom tag in jsf

154 byte By Priyoa at 2007-11-27 7:30:32
I'm trying to create a custom tag in jsf.what should be the approach to create it.it would be better if somebody will explain me from the skretch.

tomcat performence issues..Urgent

2186 byte By newwavea at 2007-11-27 7:30:37
Hi all,iam facing performence issues with tomcat 5.5.9.i have developed one webapllication which uses 20,000 employees...problem is tomcat not releasing the memory ...memory is growing up to some peek stage then it is not allowed any requests and it going down..plz see below cofigurations what ...

tomcat memory performence issues

2193 byte By newwavea at 2007-11-27 7:30:38
Hi all,iam facing performence issues with tomcat 5.5.9.i have developed one webapllication which uses 20,000 employees...problem is tomcat not releasing the memory ...memory is growing up to some peek stage then it is not allowed any requests and it going down..plz see below cofigurations what ...

mail in jsp

298 byte By anshu_it_surata at 2007-11-27 7:30:42
Hi,i m using javamail in my project....using local host i cud easily do it but i wanna use gmail as my ...so can any one help me in doing it.....i want simple code without using java beans...just in jsp n servletthank u in advance who ever helps me

How do I send SMS thru servlet? How do I receive SMS in my servlet?

172 byte By Swordslya at 2007-11-27 7:30:47
Help pls, really need someone to tell me what ways I can use to allow my servlet to be able to receive an SMS and also to send an SMS back (as a reply).Thanks

URL Masking

398 byte By ojhaa at 2007-11-27 7:31:07
HeyI want to make my web pages SEO(Search Engine optimized), for that I want to change the URLs based on the products .. like if its showing information abt Motorola cell phone it should show..abc.com/Motorolathe content of the pages are not static. So the url should change according to the ...

Is Java leaving JSFand moving towards Java FX?

239 byte By gunnerForevera at 2007-11-27 7:31:18
Hey all, I was doing some R&D and I have to find out whether JAVA will be continuing its interest in JSF or will they be more interested in enhancing Java FX. I hope some one can answer this question in detail.Thank you !

how save sending messages to access later

2280 byte By bassbakia at 2007-11-27 7:31:23
Hello, I have a page which makes it possible to send a message to the selected customers. Thus I have a text to write the message, a multi-choice to choose to which I send and a button of validation of sending. And it goes very well. My question is: how I can make to save the last sending ...

JSF Validations

555 byte By vasudevda at 2007-11-27 7:31:24
Hi!I am using f:validateDoubleRange for validating the number typed in a text field.I have specified the' minimum' attribute of this tag as 0.0001.If I enter a value less than this it displays the error message Value is less than allowable minimum of 0However when I change 0.0001 to 0.001 (3 ...

MDB to listen external destination

365 byte By Ovea at 2007-11-27 7:31:26
two weblogic servers (WL1 & WL2). MDB deployed in WL1. Mesaages will be posted in JMS server of WL2. My requirement is MDB will listen to these messages posted in WL2. How can i implement this using foreign JMS server? or any other idea? or online sample application or materials or ...

Help needed in facelets with frames

2658 byte By skumar_tvma at 2007-11-27 7:31:28
Hi,I have one sample facelet appln, but i am trying to implement using frames. In the listing jsp i am calling two jsp thru frames but when i access the listing jsp, content of the two jsp's are not getting displayed in the UI, I mean if give anthing outside the frameset, it is getting ...

How to dispaly a value set in session scope using JSF tag

296 byte By Ananth.duraia at 2007-11-27 7:31:37
Hi Guys,is it possible to display a session value using a JSF tag? for instance i have session.setattribute("user""myname");we can easily get this value using JSTL. But is there any way to get using any JSF tag like <h:outputText>?Regards,A.

Default URL problem

2465 byte By monowaralama at 2007-11-27 7:31:45
I have a web application project named "Myproject". For this project i have used latest tomcat.When i run the project through this" http://localhost:8080/Myproject/index.faces" url it runs ok .but if i use" http://localhost:8080/Myproject/" urland pres login button it causes an exception given ...

Problem with Java Mail Program

2903 byte By solve_my_buga at 2007-11-27 7:31:47
Hi Everyone...Please help me to sort out this problem...I am getting this Exception while executing the code pasted below...javax.mail.AuthenticationFailedExceptionat javax.mail.Service.connect(Service.java:306)at javax.mail.Service.connect(Service.java:156)at ...

How to make EJB client without Web Start?

393 byte By mbazsa at 2007-11-27 7:32:11
Hi,I've written a client that uses Web Start, but Web Start technology doesn't fit my needs (it's hard to write console appclient as I see)I'd like to know how could I access my EJB's from a simple client application. How can I address them, through JNDI? Does it need programming ...

How can i add my organization Name

331 byte By muthu2007a at 2007-11-27 7:32:15
Hi i had one quick questions in java mailI had sucessfully sent E-Mail but i need to display my organization name in the from Address instead of my from-email ide.g., instead of display aa@yahoo.co.in -- AA EnterprisesWhether it is possbileHlp meVery urgentRegardsMarimuthu ...

How to customermize the

223 byte By RajeevSahu_Sahua at 2007-11-27 7:32:21
I'm using Java mail API to send mails to our customers.My problem is that i don't want to display the Name in received header or it should display of my choice.Please help me out.Thanks.