• 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

Hibernate and Struts: Displaying default values in html:text tags

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Hibernate, Struts 1.1 and JSP's to build an application. I'm stumped on an easy question: how do I display the default value for an <html:text/> tag? Here is the situation:

- A user wants to edit an entry in the database
- She enters the key to locate the entry
- The search action find the entry, creates an object and sticks it in the session
- On my JSP page, I want to display the content of the object with text inputs, which contain the current values for the object.

I'm using a <html:form> to display the contents., however, I haven't figured out how to initialise the values properly. I'm sure this is a very basic question, but for the life of me, I can't figure out how to do it correctly.

Can anyone nudge (or push or shove) me in the right direction?

Thanks,

L
[ September 23, 2004: Message edited by: Laurent Duperval ]
 
L Duperval
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And of course, as soon as I asked the qestion, I saw the light...

L
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic