• 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

JSP page display without Form Bean

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to display a jsp page which has some header fields and a number of line fields (eg : order detail).
There is no form in this page as there are no user input fields in this page.All the data displayed come from database.I am thinking of building a class for this page and fill data for an object and then put it in request scope. I do not have any get and set methods to populate the object.
Will my approach work ?
Or is there any other better approach ?
Any good example out there ?
Thanks in advance.
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Bean taglib has custom tags specifically for this functionality. It will allow you to cleaning write your bean properties to the output.
reply
    Bookmark Topic Watch Topic
  • New Topic