Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Building JSP page from parameter in URL

843833Jul 9 2001 — edited Jul 9 2001
Hey guys,

Just wondering how I can pass a parameter I've put in each URL so that a JSP page can act as a template, read the parameter, and then build itself (fill in parts) using a table in a database using the parameter as the key to know which field to use.

Here's more info:

For my company we have a number of branches. Rather than build an individual page for each branch I've made branch.jsp as a "template page". In the list of branch names, I've made each URL as the link to branch.jsp with a ?id=xx behind the url. I want to pass this to the jsp, have the jsp read the id=xx, and then get the data from the database using this key. The id=xx number i'm using is the unique key that Access assigns automatically.

I know this is probably one of the most elementary things to do in jsp's and servlets but this is a first for me.

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2001
Added on Jul 9 2001
3 comments
185 views