Building JSP page from parameter in URL
843833Jul 9 2001 — edited Jul 9 2001Hey 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