How to keep a parameter from page to page
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Charlotte_Endresen
Posted On:   Monday, April 2, 2001 07:34 AM

Hi,
Her is what i want to do: Costumer enter his costumernumber on one html page. I want this number to be displayed in another html page, where the customer can UPDATE his data and send this to the database for UPDATING in Oracle using JSP. The important thing is how to keep the customernumber, if posible i want this number to be displayed false so you cant change the value on the second html page. Hope some one understand what i mean! Thanks

Re: How to keep a parameter from page to page

Posted By:   benna_9  
Posted On:   Monday, April 2, 2001 08:33 AM

Keep the customer number in the session.

Do something like:

session.putAttribute('customerID',request.getParameter('customerID');


then when you need to get id just call


session.getAttribute('customerID');

Hope it helps
About | Sitemap | Contact