• 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

Struts 1 form submission query

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am fetching a set of data from database and displaying in jsp. The data is of the format :

checkbox1 category1
subcategory key1 subcategory value 1
subcategory key2 subcategory value 2
subcategory key3 subcategory value 3
checkbox2 category2
subcategory key4 subcategory value 4
subcategory key5 subcategory value 5
subcategory key6 subcategory value 6

I am able to display the above data in jsp using combination of list of objects having hashmap.

The problem is occuring when user updates the above data in jsp and form is submitted.

I am at loss as to how i can get all data and also link it...

So say user updates values in jsp represented by category 2 ,subcategory key2 and subcategory value 3. How do i send this data to my action class in linkable format.

I am using struts 1.2.

Data in my jsp after logic iterate is in <html:text> format ....

Please suggest ways of doing this....

 
Ranch Hand
Posts: 55
Mac Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please reply with a portion of jsp(Covering checkbox), struts-config.xml and the Action class
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic