November 6, 2006

JSP - linking to URL with additional parameters

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 9:24 pm

Having a muck around with JSP’s with struts lead me across a scenario where multiple parameters need to be parsed through to another action. Although probably simpler to do using a manual link, using the html:link taglib is preferred so that we can change our servlet configuration/URL. When I investigated into the issue it appears that you need to parse across a HashMap in the pageContext, which involves some initial JSP tags - not very pretty. The other way of doing it is to use the c:url of the JSTL package if it is available to you.
You can read through the discussion thread here.

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Furl
  • Reddit
  • YahooMyWeb

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment