• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dropdown

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic