Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Ben Souther
s > Duncan > > -Original Message- > From: engp0510 [mailto:[EMAIL PROTECTED] > Sent: 04 September 2003 09:43 > To: Tomcat Users List > Subject: Re: How to cache the user's input in a jsp page? > > > Thanks > But it is nothing with "form" and &qu

RE: How to cache the user's input in a jsp page?

2003-09-04 Thread Geiglein, Gary
the rest of the data included into the request so that the next page has the data to work with. -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 4:43 AM To: Tomcat Users List Subject: Re: How to cache the user's input in a jsp page? Thank

Re: Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread Ben Souther
Ahh, The problem is that you're not submitting the form. You're making a new request via Javascript. Instead, do this: Give the form an id: Then in your select box use javascript to subit the form. Then you'll be able to read the submitted form information from the request object. You a

Re: Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread Jon Wingfield
If you want to "remember" the subject when changing the dropdown: Change the definition of your subject text field to: <% String subject = request.getParameter("subject")==null ? "" : request.getParameter("subject");%> And the defintion of your dropdown to: It basically tags the value in th

Re: Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread Tim Funk
<% for(int ii=0; ii if (project_detail==null) project_detail = ""; if (quantity==null) quantity = ""; if (unit_price==null) unit_price = ""; %> <%=ii+1%>       <%}%> -Tim engp0510 wrote: Hi , ALL, The following is

Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Hi , ALL, The following is my jsp page, store it into a file named "MyQUESTION.jsp" , pay attention for the "Subjuect" while u choosing the select. <% int item_num = 5; int row_num = 1; if(request.getParameter("_rows")!=null){ String rowstr = (request.getParameter("_rows"));

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread bsouther
rows ? > > Cheers > Duncan > > -Original Message- > From: engp0510 [mailto:[EMAIL PROTECTED] > Sent: 04 September 2003 09:43 > To: Tomcat Users List > Subject: Re: How to cache the user's input in a jsp page? > > > Thanks > But it is nothing with &

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Tim Funk
You need to populate the value field as appropraite for text boxes based on what the user submnitted... for example: name='cowbell' value='<%=request.getParameter("cowbell")%>' /> For radios, checkboxes, and selects, you'll need to do the same thing. There are probably custom tags

RE: How to cache the user's input in a jsp page?

2003-09-04 Thread Duncan Strang
en the JSP was reloaded, all filled fields ahould be cached, is it possible? - Original Message - From: "Kwok Peng Tuck" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 4:31 PM Subject: Re: How to c

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
e cached, is it possible? - Original Message - From: "Kwok Peng Tuck" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 4:31 PM Subject: Re: How to cache the user's input in a jsp page? >

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Mario Moroni
- Original Message - From: "engp0510" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 10:28 AM Subject: Re: How to cache the user's input in a jsp page? > Thanks > I know maybe I should use ses

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Kwok Peng Tuck
quot;" into session, that after reloaded the value should be the same as user input previously? - Original Message - From: "Duncan Strang" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 4:15 PM Subject: RE:

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Strang" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 4:15 PM Subject: RE: How to cache the user's input in a jsp page? Check out JSP's implicit object collection For example, if you are using user sessi

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Mario Moroni
gt;; <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 9:59 AM Subject: How to cache the user's input in a jsp page? Hi How to cache the user's input in a jsp page? The following is some code of my JSP: <% int item_num = 5; int row_num = 1; if(request.getParamet

RE: How to cache the user's input in a jsp page?

2003-09-04 Thread Duncan Strang
[EMAIL PROTECTED] Subject: How to cache the user's input in a jsp page? Hi How to cache the user's input in a jsp page? The following is some code of my JSP: <% int item_num = 5; int row_num = 1; if(request.getParameter("row_num")!=null){ String rowstr =

How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Hi How to cache the user's input in a jsp page? The following is some code of my JSP: <% int item_num = 5; int row_num = 1; if(request.getParameter("row_num")!=null){ String rowstr = (request.getParameter("row_num")); try{ row_n