Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dispatch action doubt

 
amrut sabade
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi hi am new to java today i read the concept of DispatchAction class in struts.. i have one doubt that how parameters are passed to the class? please clearify my doubt
thanks in advance....
 
Sriram Ture
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Specify an attribute named parameter="method or methodName or anything" in action tag

And attach method to your url like url?method=yourmethodName in dispatch action class.


Regards,
Sriram
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're new to Java, and learning Struts? Learn Java first, *then* Struts.

They're sent to the action just like everything else, as a request parameter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic