• 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

Trying to access an arraylist or a cart object from a jsp page

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I am trying to learn the shopping cart tutorial from Murach's servlets and jsp book. I am trying to integrate MQ series with that. In this project, some products are stored in a database and every time the user clicks on some product page, it should not make a database call. The database records are fetched in a Message Driven bean and stored as an arraylist or cart object. How do I call that arraylist or cart object from a jsp page?Please help me!
Thanks in advance
Vidya
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your page controller servlet (which I assume obtains the arraylist of information from a model class) will place the list into request scope via request.setAttribute(). Then in the JSP, you will ise the EL and JSTL to access the information.
 
reply
    Bookmark Topic Watch Topic
  • New Topic