Keep data in HTML-JSP

Hi there,

I have a page to get 3 input text fields, this information will populate a table. my question is related with keep my typed information on the page, just one I have clicked my Update or submitte button all the information is cleared,Anybody know Who can Keep my data on my page, just my user needs take a look to the changes made...

[355 byte] By [RIMA33a] at [2007-11-26 15:08:14]
# 1

first your question is not clear....

pls make it more clear what u want to do....

If i am taking as per your language... You are trying to get the input from user and when user saves that info .... it should be displayed again in the same page ....

Use a model object to store the info and when you are saving the info populate the model object and using scriplet you show the values of model object.

krish1315a at 2007-7-8 8:58:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
yes, I need to show the information typed, where can I get samples related with models?
RIMA33a at 2007-7-8 8:58:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
You need to keep data in JSP. Do u have any action page ?if Not then change the type of button from submit to buttonRegards
rengaraja at 2007-7-8 8:58:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Model is nothing but POJO( Plain Object Java Classes) .. your simple java class.....

Create one Simple class with say 2 fields and put getters and setters for that ...

then in Your JSP import that class and and you can create Object of that and set as session.setAttribute()

so that you can use across the pages.

and you can call the getters and setters and any other method you can call in JSP. in the same way......as you are calling in Java

and Done....

Howz that

krish1315a at 2007-7-8 8:58:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...