File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call a method other than execute in jsp in struts 2

 
aman thind
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an add() method in my action other than execute method. How to direct my jsp to call add() method of my action

Thanks in advance
 
Anbarasu Aladiyan
Ranch Hand
Posts: 182
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to specify it using 'method' attribute of 'action' tag in struts xml file.
 
aman thind
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anbarasu Aladiyan wrote:You need to specify it using 'method' attribute of 'action' tag in struts xml file.


I had done that.But i was not sure that's the only thing we needed to do.
I was giving wrong "action" attribute in s:form :p
Thanks a lot
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic