This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to attach a request parameter in a jsp page  RSS feed

 
Babu Singh
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i have a jsp page which have a some school names link. when i click to link of a school name, school name are appended to a link that will go to a second page.
in this second page have same item which i will use same for all school. i want to know how to attach a request parameter in a link which appended from first page so that i can access navigate the data based on school name.

please suggest.
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just so I understand:

on one page, you want a link containing the name of a school:

on next page, you want to change behavior based on the value of that parameter?

the link is constructed as above. In the servlet you will access that parameter with


create a school object in the servlet: schoolObject



and use tags in the next jsp to display the school information from the school object.

Is this what you were thinking of?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!