Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to initialize a request parameter?

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Using Struts 1. I have this action in my struts-config.xml file ...

<action path="/hhFlow"
type="com.myco.regui.struts.accounts.AccountsAction"
scope="request"
name="REAccountLookUpBean"
validate="true"
input="/jsp/hhError.jsp">
</action>

Is it possible to set a default value for a request parameter if that request parameter is not passed to the action?

Thanks, - Dave
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot set a default value for a parameter that does not exist.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic