Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we have more than one action file for single Jsp?

 
Siva gurun
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm new to Struts frame work.
In my project, lot of events are happening in a single JSP page. Can i have more than One Action file for that? Is it like violating Struts standard rule? Please help me in this.... Thanks in advance...
 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can but it were ideal if you would use DispatchAction or MappingDispatchAction or LookupDispatchAction for a single jsp. Thats why struts has created many actions. And also that would depend on which version of struts you are using. (I assume struts 1). If you want more details use the link provided.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic