Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

one jsp to another

 
pratapsiva sivakumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the different ways of passing from one jsp page to another jsp page?Please help with examples.
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pratapsiva sivakumar wrote:What are the different ways of passing from one jsp page to another jsp page?Please help with examples.

What's your requirement? Do you want to pass some parameters or pass the request to a jsp or ... ?
 
pratapsiva sivakumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the different ways of passing from one jsp page to another jsp page?Please help with examples.i want to pass either request of parameter.please help
 
chun wang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<form action="test.jsp">

try it again
<input type="submit" name="submit" value="submit"/>
</form>
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chun wang wrote:<form action="test.jsp">

try it again
<input type="submit" name="submit" value="submit"/>
</form>



Add a form element (text box) say "textBoxName" as text box name and submit to test.jsp. This passes the text box value as request parameter to submitted JSP. In test.jsp use EL ${param.textBoxName} to get the text box value.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!