Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need some advice for a good methodology to build my application

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
0
0
FR
hi all,

I'm making my first web app under websphere + visual age.
my web app is really simple : i have currencies and i must update the
currency change rate each month. so i have 2 specific functions in my
servlet :

- search function: search for the good currency in the database
- apply function : apply the changes and refresh the web page with the new values.

I've done almost all work except something.
here is my question : i don't know what is the best way to do, maybe you
could help me :

when I've executed the search function, how should i load the results of
my search in the web page ?
should i use variables in the jsp, call the search function in my servlet
, put the values found in the variables of the jsp and then call the jsp
to be refreshed from the servlet with the variables ? or is there a
"cleaner" method to do ?

I'm sorry for my coarse English,
Best regards X-),
Elise
 

hi,

1) your servlet do the work

2) put your results in a object that can wrap your results

3) put this object in the request scope container

4) call your jsp page

5) use the object you pass in the request context using useBean

6) call the object'methods you designed to retrieve the results

best regards :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top