Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1 form submission query

 
zaxxon25
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....

 
Sandy Chatterjee
Ranch Hand
Posts: 55
Hibernate Java Mac
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic