The moose likes Struts and the fly likes Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 " Watch "Struts2 " New topic


debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188


I have use this in Struts1, I need to know how can i do this in Struts2,
any help would be appreciable.
Joe Ess

Joined: Oct 29, 2001
Posts: 8839

We don't have ActionForward's in Struts 2, so there's no reason to query the mapping. All Struts 2 actions return String instances which correspond directly to the entries in the configuration XML.
Struts 2 is very different from Struts 1 so you should have a look at our Struts 2 FAQ and read some of the tutorials.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

Hi Joe,

thank you for extending me a very good suggestion that helps me a lot.
Don't get me started about those stupid light bulbs.
subject: Struts2
Similar Threads
Struts2 java.lang.reflect.InvocationTargetException (Struts2 with Hibernate)
migration to Struts2
Interceptors in Struts2