Hi all,
Here is the deal: I have a registration page which the user has to fill out -
http://localhost/registration.jsp . The user may �arrive� from a different URL to this page (example user clicks the link:
http://localhost/registration.jsp?id=996 The id is the value I would like to retrieve in order to show different values on the registration.jsp page. For example, with id 996 � show a truck and title, with 443 � show an SUV and info.
Question: how can I construct the page based on the id values? The problem I�ve encounter is that the page is processed (Action) only after the user has clicked submit.
With the given id (before reaching the registration.jsp) , I will have to go to the db fetch some info and plug it back to the registration page. I don�t wish to do that (action) in the
jsp because I wish to keep the MVC
pattern.
One thought I had in mind is to use an intermediate page / intermediate.jsp?id=996
that will be redirected to the registration.jsp with the id value and beans (but I wonder if there�s a better way to do that)
thanks for any thought