Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

how to group request parameters

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my view is a html form with a table.

my form fields are text boxes under each column. when i send these request data using <html:form> i need to group my request parameters (may be as a collection) under each column.

<html:form>
<table><tr> <td> author</td> <td>title</td> </tr>
<tr> <td><html:text></td> <td><html:text> </tr>
<tr> <td><html:text></td> <td><html:text> </tr>
<table>
<html:submit/>
</html:form>

when i click on submit i need my ActionForm to get a collection of these request parameters as they are under each column.

that is when i say
MyForm mfm=(MyForm)form; in my Action, MyForm should get the request parameters in
Collection author;

I need this kind of grouping, as my view is like some thing i had shown above. Is there any struts specific tag which group data like this??
:roll:

regards,
surendar prabu
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can be accomplished by using "indexed properties".

See this thread for more information on this topic.
 
Attractive, successful people love this 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!