• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dropdown

 
Andy Morgan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I was browsing desperately on the internet and I found this nice website. I am doing some basic coding in Struts, Websphere, J2EE.

I have to design a dropdown on a JSP page, which should contain the list of 10 most recently used customers. I have created the history dropdown in the JSP page, but I'd like to know how to populate the history dropdown. I have tied it to the appropriate action class, but I dont know what to code in the Action class to populate the history drop down. Also, I would like to have the list (of 10 most recently used customers) available in session. I am not very familiar with persistent maps. Could someone explain how to go about it?

I'd really appreciate a quick response.
Thanks a lot.

-Andy.
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andy:


You don't need to populate the dropdown in the Action class. Instead, it should be done by a jsp file using the data in "request" or "session" scope.

Dan
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35728
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Action class would need to go to the database (or where ever it is you store the recent customers)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!