Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect to an url from struts action class

 
bubu lina
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
bubu lina
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic