This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1 form submission query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1 form submission query " Watch "Struts 1 form submission query " New topic
Author

Struts 1 form submission query

zaxxon25
Ranch Hand

Joined: Feb 26, 2005
Posts: 35
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

Joined: Jun 27, 2012
Posts: 55

Please reply with a portion of jsp(Covering checkbox), struts-config.xml and the Action class


Take up one idea. Make that one idea your life; dream of it; think of it; live on that idea. Let the brain, the body, muscles, nerves, every part of your body be full of that idea, and just leave every other idea alone. This is the way to success.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1 form submission query
 
Similar Threads
3 - level folder display in struts
Skip validation when form not submitted
Struts & Tiles frame work issue
How to display only selected amount of data from database in two dropdown lists?
Struts 1.1: Help needed with retreiving values from formbean