Tuesday, March 15, 2011

Pass parameters from one page to another

This is the issue, I have a JSP which helps me to generate a URL to change the Locale, to switch between Spanish and English, but I have a JSP (maybe more) which is displayed based on a Parameter, because shows the details for an Object based on idObject.
This is my original JSP (So each time I clicked the link, the page was refreshed, but missing the param, obviously the content was never displayed - duh!)

The fix is really simple, just add more params to each URL, by using JSTL :) Like this (creating dynamically my params)

No comments:

Post a Comment