• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is there anything like formpost in jsp?

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an jsp page with 3 textboxes and 2 listboxes.on clicking the first listbox the form is been submitted and is returned to the same jsp page with the values that has to be displayed in the second listbox.The problem that i face is when the page is loaded the second time the values which are there in the 3 textboxes get vanished...
Can any one help me to find a solution for it..
i want the values of the text box to be there when the jsp page is loaded the second time.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if i have understood ur problem.......
when u submit the form and u come back to the same page then the already existing values for the 3 textboxes will also be passed to that page as parameters u can use request.getParameter
i am showing only a single text box as an example............


<html>
<body>
<form name="myform" action="temp1.jsp">
<input type="text" name="t1" value='<%=request.getParameter("t1") %>' >
<input type="submit" value="submit">

</form>
</body>
</html>

check out
on submit the value remains.....
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

Either you have to use request.getParameter of each value or use have to set the value of each in the Bean and get the value from the bean in the page when the page loaded second time


Warm Regards
Pankaj
reply
    Bookmark Topic Watch Topic
  • New Topic