The moose likes Struts and the fly likes Doubt with execute() method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Doubt with execute() method" Watch "Doubt with execute() method" New topic
Author

Doubt with execute() method

Rajaprabhu Aravindasamy
Greenhorn

Joined: Dec 26, 2011
Posts: 25
Hello guys..!

Can we return any other string(for example, String val="hello"; ........ return val; ) from execute method rather than success,error,input,none and login..?
If possible.., then tell me how can we map it in struts.xml , whether in normal way or any specific way to achieve that..?

Thank you..!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 7921

Yes, you can return any arbitrary string from execute, as long as you have a matching result in the struts xml file.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: Doubt with execute() method
 
Threads others viewed
1 or 2 homes - Part 2
Executing an external application
Question on REflection API
customizing RequestProcessor.
execute method in struts
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture