• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

one jsp to another

 
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.
 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • 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
 
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>
 
Ranch Hand
Posts: 874
Android VI Editor Java
  • 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.
 
Just the other day, I was thinking ... about this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic