• 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

Pre-populating a struts form

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all... Kindly someone help me. I am using the same page to display the records from a database and a form in which i can add records.


Field 1 Field 2 Actions
-----------------------------------------
Value Value View | Edit | Delete
-----------------------------------------
Value Value View | Edit | Delete

.
.
.

Add a new Value...

<here lies my form>


Here View | Edit | Delete are all links. I want when I'll click on the Edit link, the data from that row must appear in the form below. Please Help me how to do it. Its an urgency.

Thanking you all in advance.

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

what you can do when you click the Edit is (I assume you have entered the some value into some field to retrieve the record from the database) get the corresponding records from the database and populate the actionForm and return back to the jsp, your fields will be filled the values of that specific record.
 
reply
    Bookmark Topic Watch Topic
  • New Topic