wood burning stoves 2.0*
The moose likes JSP and the fly likes multiple textboxentries .....How-to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "multiple textboxentries .....How-to" Watch "multiple textboxentries .....How-to" New topic
Author

multiple textboxentries .....How-to

Sanjay Deshpande
Ranch Hand

Joined: May 22, 2001
Posts: 111
I ve a check box with textbox.
anything entered in textbox and a checkbox checked should be had on next page....
The code goes like this
------------------TO DISPLAY----------------
<td width="100"><font color="000000" face="Book Antiqua"> 
<%=rs.getString("pub_name")%>
 </font></td>
<td><font color="000000" face="Book Antiqua"> 
<input name="nam" >
</td>
--------------------------------------------
--------NEXT SAVE PAGE:---------------------
String[] p = request.getParameterValues("Check");
String[] np = request.getParameterValues("nam");
count=p.length;
out.println(count);
for(int i=0;i<count; i++)
{


//stmt1.executeUpdate("Update publishers set pub_name='sanjay' where pub_id="+p[i]);
//out.println(p[i]+np[i]+"<br>");
out.println(p[i]+np[i]+"<br>");
}
===============================================
I M GETTING ONLY THE FIRST VALUE OF TEXT ..NO NEXT VALUES R COMING TO NEXT PAGE
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple textboxentries .....How-to