• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Struts 1 form submission query

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Please reply with a portion of jsp(Covering checkbox), struts-config.xml and the Action class
 
Everyone is a villain in someone else's story. Especially this devious tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!