• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can there be more than one form in a JSP in struts

 
Krishnan Dhamodharan
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can there be more than one form in a JSP in struts. If so, how to provide the mappings for each of them in the struts-config.xml
 
Ludovic Leb�gue
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it's possible. I'm not even sure why you need to do that.
If you want to process different datas you need different struts actions and thus different mappings in Struts-config.
 
Sheldon Fernandes
Ranch Hand
Posts: 157
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Krishnan Dhamodharan:
Hi,
Can there be more than one form in a JSP in struts. If so, how to provide the mappings for each of them in the struts-config.xml


You can actually access or work with more than one form bean in a view (JSP), one would be the form associated with the action being processed and the others could be any other form bean in session scope. However when specifying the action mapping, you only specify one form bean which will be mapped to your view (JSP).

You would not normally need to access data from multiple forms in a single view, your design usually decides that.

Sheldon Fernandes
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic