File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Result Dispatcher not forwarding 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 "Result Dispatcher not forwarding" Watch "Result Dispatcher not forwarding" New topic

Result Dispatcher not forwarding

Monica Salvador

Joined: Feb 24, 2011
Posts: 23
Hi. I'm using Struts 2 and the @Action and @Result annotations. I'm trying to get the "selected" value from a form in one of the pages. To do that, I have to pass it to an action and then to a jsp or else, it will display some sort of error. This is my code:

Now, it doesn't forwart to /request.jsp, although it shows a url like this: /setSelected.action. If it doesn't forward the "selected" value, then the grid at /request.jsp will not be rendered at all. And also, if it stays as /setSelected.action, the "selected" value is not included in the ServletActionContext request's paramaters..

Please help me.
jaladhi dave

Joined: Apr 26, 2011
Posts: 3
hello in the annotations you can replace your type with type="redirect" and you can pass this action to other jsp page.
Monica Salvador

Joined: Feb 24, 2011
Posts: 23
wouldn't that take away the passed parameters?
I agree. Here's the link:
subject: Result Dispatcher not forwarding
Similar Threads
Struts2: No configuration found for the specified action
Beginner Struts Problem (Solved)
are these both root tags
Issue with Struts 2 Dispatcher Result
How to invoke default and root namespaces?