• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

redirect to an url from struts action class

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic