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
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
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
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
<%
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
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"));
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 &
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
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
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?
>
- 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
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:
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
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
[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 =
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
16 matches
Mail list logo