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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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, ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
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,
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,
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 ...
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 ...
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.
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 ...
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 ...
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.
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 ...
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 ...
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
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
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 ...
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 !
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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.