aspose file tools*
The moose likes Struts and the fly likes redirect to an url from struts action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "redirect to an url from struts action class" Watch "redirect to an url from struts action class" New topic
Author

redirect to an url from struts action class

bubu lina
Greenhorn

Joined: Aug 11, 2008
Posts: 28
i wanna redirect from an action class to a jsp from the project:


i have declared in the struts config :



But i keep getting this error:



I don't understand why is this about Validator..i don't need to validate no form. i just want to redirect from a class(struts action class) to a jsp.
Any ideas ?
thank you
Khairul Ikhwan
Greenhorn

Joined: Oct 01, 2009
Posts: 4
Im not too good in this forward method. But i think i also receive this error before when i work on struts project. Try using mapping and set find forward to the action name.



Help me..
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Bubu,
test-test isn't a JSP. It's another action. You can forward to another action by pointing to a forward in the struts config.

Don't use response.sendRedirect in a Struts app. That's like trying to work around the framework.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
bubu lina
Greenhorn

Joined: Aug 11, 2008
Posts: 28
hey.
my problem came from the fact the i declared a bean whose class was a form. this i did not need. there go the validating error. deleted that line and i was home free. hope it helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: redirect to an url from struts action class