hi everyone,i m using an applet(running on client side) which communicates with servlet for executing sql queries.the servlet executes the sql query on the server side and gets the results and stores it in a resultset...NOW... can i pass this whole result set to that applet on client side..if ...
Hello, first time posting here =)I have a JSP app in wich i have some session variables i declare after you authenticate, wich contains several information (catalogs and access) used during the life of the session, and my question is...How can i update these variables, in case that something ...
4408 byte By
ip_VTa at 2007-11-27 11:59:48
hi all, is there someone knowledgeable who could help with the following:problem summary: when info submitted from JSP to Struts action, Struts form info dropped before struts action can process infoseeking solution: info submitted from JSP to Struts action would remain in Struts form for action to ...
<p>what is the difference between ejbLoad() & ejbStore()?</p>
<p>what is use of ejbPostCreate(), what it returns, where exactly can it be in</p>
644 byte By
Annua at 2007-11-27 11:59:30
Hello friends,Here is my problem...... I created a jsp page in Studio Creator, having some fields and 2 buttons (for processing). This example was working fine.As I wanted to pass values to my jsp page from DOS(or browser's address bar directly),, I changed jsp coding a bit. I used ...
I have a select control with an onclick event. This event fires a js function that gets the selected value as a js var. Now i want to set the value of this js var into my jsp as say a page scoped property so that it can be used in the page after the selection is made.I've tried setting the value ...
1060 byte By
alex-gera at 2007-11-27 11:59:20
[nobr]Hello,i've got a little problem.i developed a test-application with page where you can fill in an e-mail address.<h:form> <h:inputText id="email" value="#{selberValidierenBean.email}" required="true" maxlength="50"> <f:validator validatorId="MailValidator"/> </h:inputText> ...
When i use f:converDateTime with pattern MM/dd/yy and if user entersdate as '01/01/07', converter is converting it to 01/01/0007. While expected behaviour is '01/01/2007'.Can some body please give solution on it?Thanks.Vipul Dave.Cignex Tech Inc,San Jose, ...
436 byte By
rxalexaa at 2007-11-27 11:58:58
Hi,I'm new to JSF.I have a JSF file that opens a second window by using the target="newWindow" option on a h:commandLink tag. The problem is that I need to send an error message to the first window but both windows are backed by the same bean and once the second widow is open, that bean only talks ...
Hi!A Netbeans web application use some servlets, not jsp, and tomcat, and postgre sql.The big problem is executing some querry after the jdbc connection was closed, or can't open a new jdbc connection because too many are open, for example. And the session in some situations lost who is the ...
248 byte By
Doga at 2007-11-27 11:58:42
<p>Hello friends,</p><p>I want to know whether the Bea Weblogic 8.1support Sun RI 1.1 or above.</p><p>It will really appriciated If you can provide me the information, where I can find this, as I could not find it through the net.</p><p>Thanks.</p>
I am trying to Validate a Date entered by the user in JSP. the code that I already have has a checkform function where I am not able to put my piece of java code. My question is,1. Where can I place my Java code that return a boolean in the JSP2. How do I retrieve this boolean value to use it in my ...
2692 byte By
Me_mea at 2007-11-27 11:58:14
Hi I have uploaded images to my server using common.FileUpload. Which works fine, I m uploading multiple images. My code is below.1) Can anyone post some code snipets or where by I can change the name of images before it gets saved to the server? So that I could add that to my code.2) in my form ...
Part of the benefit of JAXB is that a schema is not required; annotating Java classes alone allows for XML serialization/deserialization. With the deprecation of the Unmarshaller.setValidating() in favor of the unmarshaller.setSchema() method, however, it seems that validation is only available ...
Greetings,My xml file contains special chars such as '\r'.JAXB converts \'r' chars into '\n' while reading xml file.I am reading the values into String variables.How can Prevent that.Do I need to change the variable type in my XSD.Your help is ...
Hello. I have a servlet that must send an email after some data has been processed.I'm my method sendMail(....) i send this mail.The method sendMail works perfectly. If I test the method in isolation everything works fine and the mail is sent.The problem that, in the servlet, the method simply ...
How to display a substring in UIColumn of datatable component that expands the string on click. For example, in a datatable column there is only 20 characters space reserved for a particular column. If my data is longer than that, I'd like to show the first 20 characters and allow the user to ...
Hi,I have to save a string with UTF-8 encoding (using the sax handler ContentHandler.characters()) method. This takes a char array as a parameter. If I have a string and get the characters from it using:str.toCharArray()this won't return a UTF-8 encoded char array, will it? And how do I get a ...
226 byte By
Husama at 2007-11-27 11:57:14
<p>where i can Find Open Source MIS Application like Task Sheets human resource or any simple application that are not so sophisticated and based on servlet technology</p><p>Thanks</p><p>Message was edited by: </p><p>Husam</p>
public class Test extends HttpServlet {private static final long serialVersionUID = -1L;@EJBprivate T2Facade t2fl;public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {T2 t2 = new T2("hello");t2fl.save(t2);LogUtil.log("t2.getId() = ...
Hi,i want to closed jsf page on button clicked, i am using the that code in javabean my code is like this.public void closeWindowClicked(ActionEvent event) {try{FacesContext facesContext = FacesContext.getCurrentInstance();String javaScriptText = "window.close();";// Add the Javascript to the ...
<p>Hi,</p><p>please tell me whether jsf1.2 is working fine with jboss4.0.4GA or not?</p><p>how to integrate jsf1.2 with jboss4.0.4GA & Tomcat5.0</p><p>thanks</p><p>Message was edited by: </p><p>SoftwareSolutions</p>
1794 byte By
TouDicka at 2007-11-27 11:56:18
Hi, I need to put some formatted html string into jsp. But everything I tried was not working. Have anyone some ideas?Details:I have following jsf code...:in place of [?] I want to "inject" content of variable #{model} (which is html string i.e. "<div id="1"> some text</div>")<t:dataTable ...
hi , I have written a jsp which will paint the data from the database and gives the option to download the file in xls format. I need ur help to do the same for csv format , currently if i view the downloaded file using notepad it shows all the html coding , but i need to view all the data in csv ...
587 byte By
lgmana at 2007-11-27 11:56:12
Hello,imagine we have page1.jsp, in which we save a name in the session:session.setAttribute("theName", "Abel");now we move to page2.jsp and print it outout.println("The name is:"+(String)session.getAttribute("theName"));this works fine, the output is 'The name is: Abel'.BUT:what, if page1.jsp is ...
Ok, I am writing a filter to intercept all request to jsp, servlets to check if the user has login.But I have a problem, I wanted a better control like if this user is not allow to go servlet A. the filter will intercept him. But based on /* mapping. I can't control which servlet the user wish to ...
<p>as</p>
Hi,i am working with tabbedpane control of tomahawk, when i am including a plain jsp page like ....<t:panelTabbedPane serverSideTabSwitch="false"><t:panelTab id="tab1" label="TabbedPanel1"> <f:verbatim><jsp:include page="profile.jsp"/> </f:verbatim></t:panelTab> it is working ...
hi,I have a data table which displays the employee list .the table contains 4 columns which represents the employee code,address,status like that.when we click on particular row,the row must be selected and the total details of the employee will be displayed on the same page below the datatable.how ...
<p>Hi All</p><p>i am working on Struts frame work..</p><p>i want to get Grip on servlets and jsp concepts in deep.</p><p>Can any one help me.</p><p>Thanks in Advance..</p><p>Message was edited by: </p><p>venkat2007</p>
Hi,I have some problems with refreshing my forms. I'm using the tag <h:dataTable> to show the entries of my list in <h:inputText> and <h:inputTextarea>-fields. The special situation is now, that you may change the entries and save them.In the backing-bean this functionality works fine - ...
Hi guys. Currently I work on JSF project. I use tomcat web server and everything works fine. When I deploy my project to sun java system application server version 8, in one page, my save button doesn't work. Can anybody help me.Below is the code for button may be somebody can help me. I try to ...
99 byte By
sid25a at 2007-11-27 11:54:58
<p>i m new to servlets. can any body plz tell me what and how to do configurations for servlets</p>
Hello, I return a xhtml web page as a response of a servlet request. However, due to client issues I need that for some clients the header type is text/xhtml and for others is application/xhtml+xml. I make a response.setContentType(type) and then I do a dispatcher.forward to the xhtml page. ...
Hi,Is there any option to Pre-Compile JSP files?In my project, i am using struts-tiles. Each page contains five distinct JSPs. When first request made to the page, it will take too much time to display, because it will compile all the five JSPs and generate class files.. Is there any way to compile ...
hi everyone...i m very new servlet and applet programming and i have come accross a problem....i m using a applet which establishes connection with the servlet(residing on server)..i want to use few of the methods of the servlet....now is it possible tfor me to call the methods of this servlet ...
Hi All,This problem has been discussed earlier as well but since I did not get any concrete answer of resolving it, hence am posting the same expecting a solution to this from you all.I have a <h:selectBooleanCheckBox> component on my page whose value is backed as :<h:selectBooleanCheckbox ...
Hi,I have a JSF application (1.2), hibernate 3, tomcat 6.0.13, MySQL5 application.All my decimals are seperated with a point (123.45), is there an easy way to change them in a comma like (123,45). I know it can be done with converter on each form field, but this is a huge job.Btw, my locale on my ...
573 byte By
JaganMa at 2007-11-27 11:53:47
Hi everyone... am having a servlet appliaction which is running under tomcat 5.0.28 and its working fine.. but now my problem is while the page hits increases i mean while the users increased then the performance decreased a lot and the system become very very slow... so only one thing i need to ...
Hi,I have a JSF application (1.2), hibernate 3, tomcat 6.0.13, MySQL5 application.All my decimals are seperated with a point (123.45), is there an easy way to change them in a comma like (123,45). I know it can be done with converter on each form field, but this is a huge job.Btw, my locale on my ...
<p>hi..</p><p>may i know ,how to use java thin drive,then how to create database connection in oracle..</p><p>reply me..</p><p>sathishkuamr.vasu@yahoo.co.in</p>
129 byte By
pratqba at 2007-11-27 11:53:41
<p>Is it possible to fetch the number of unread messages from the gmail server? If yes kindly tell how? Expect fast responses</p>
I've stored info in cookie at JSPs, and i found that if i set one minute like cookie.setMaxAge(60); it will be expired less than a minute, that's at Internet explorer, but when i do the same thing at Firefox, it is still valid until a minute.any idea why is that? did anyone experience ...
i am new to javamail.....this is my first application in javamail....sendingmail.javaimport javax.mail.*;import javax.mail.internet.*;import java.util.*;public class sendingmail{public static void main(String s[])throws Exception{Properties p=System.getProperties();p.put("mail.smtp.host", ...
971 byte By
JK2004a at 2007-11-27 11:53:20
We have a table with export button. When user clicks on export link, we download table content as csv file. It is working correctly in IE7. In IE6, It is not working. When user clicks export button, I am gettting the folloiwng informationFile Download box reports Name: GridAction.action Type: ...
290 byte By
JayKVa at 2007-11-27 11:53:05
<p>Hi,</p><p>This is the second time iam posting this question. I didnt get satisfactory answer to my previous post..</p><p>Is there any possibility of displaying a new window on button click using only JSF and without using javascript? if yes please tell me how to do..</p><p>Thanks...</p>
<p>I use eclipse-SDK-3.2.1-win32, jdk 1.6 (J2SE). Anything need more?</p><p>Do I need to download and install J2EE (1.5)?</p><p>Do I need to download and install GEF?</p><p>Do I need to download and install EclipseHTMLEditor?</p><p>Do I need to download and install FacesIDE?</p>
474 byte By
roamera at 2007-11-27 11:52:57
I am writing a file which will be treated as Servlet or JavaBean in different situation. As a servlet we have the doPost method:doPost(HttpServletRequest request, HttpServletResponse response)so that I can get the session object in this way:HttpSession session = request.getSession();But in other ...
Could anyone suggest what would be the problem in belo code in JSP page.I am working on MVC1 JSP application.I have request processing code in jsp before <HTML> tags.I have functionality of downloading file by hyperlink "download file".In click of this file fiel is downloading without any ...