aspose file tools*
The moose likes Struts and the fly likes Struts 2 - Struts.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Struts.xml " Watch "Struts 2 - Struts.xml " New topic
Author

Struts 2 - Struts.xml

Preet Dhillon
Greenhorn

Joined: May 20, 2008
Posts: 24


I am following this sample from Struts 2 Design and Programming: A Tutorial by Budi Kurniawan.

I get an error "description The requested resource (/app10a/Employee_list.action) is not available." When I take out the following line, List action works


but the create action gives me a similar error.

"The requested resource (/app10a/Employee_create.action) is not available."

I can't seem to figure out how to correct this - any ideas?

Thank you in advance.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

I think result should have a name parameter. That's the value you return from the action to determine which result to forward/redirect to. If there's more than one result for an action, how does it know which one to take?
Check the web site for the book. If it's an error, they usually have a correction on the site.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Preet Dhillon
Greenhorn

Joined: May 20, 2008
Posts: 24


resolved - apparently, "redirect-action" is "redirectAction" in struts 2.3.X.X
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 2 - Struts.xml
 
Similar Threads
The Struts dispatcher cannot be found
newbie, execute method not working
struts2: howto correctly deligate actions on the struts.xml's include files
how to fire struts2 action from tiles2 definition
Interceptor messes up action class in Struts2