Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet URI

 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay,
I have an application with one servlet as the controller. I want I have a main.jsp which has a menu of links to other pages. When one of these links are clicked, I want the control to go to the servlet and have the servlet determine which page to forward to. My question is how do I write the link so it goes to the servlet with a particular parameter? I know how to do this with <form></form> but I'm not sure how to do it with
<ahref="http://server/examples/servlet?someparamter>
Any help would be greatly appreciated.
Thanks,
Sean.
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out. I was using == insted of equals(). It was driving me crazy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic