Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

help on forward on actionForm's validation fail  RSS feed

ashutosh dhiman
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using struts... i am validating my data in ActionForm's validate method..on validation fail it will by default "forward" to input page. now the url in browser will become the one which is my action's url to which i posted the content. i want it to change back to the page from which i posted the content....
for example:

from my / page i posted to / if validation fails... then browser will display url / i know this is happening because of forward. but i want to redirect.

this was the same case when i do it from My Action class by mapping.findforward(). this i was able to change by changing the <forward> tag i put one redirect='true there.. but i don't think so there is such option with forms...
help me..
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!