Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what this input attribute means in action element of struts-config.xml

 
sai prasanna
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
what this input attribute means in <action> element of struts-config.xml
action path="/Lookup"
type="ch03.LookupAction"
name="lookupForm"
input="/index.jsp"
forward name="success" path="/quote.jsp"/
forward name="failure" path="/index.jsp"/
</action>

thanks in advance
sai prasanna
 
Jorge Pinho
Greenhorn
Posts: 25
MySQL Database PHP Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The input parameter is only relevant if you set: validate="true"

This will cause ActionForm.Validate() to be executed and if you return a populated ActionErrors Object, struts will redirect to the page, action or tile defined in "input"

HTH,
Jorge
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic