struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaman Kumar" <yam...@nous.soft.net>
Subject RE: Help needed.
Date Sun, 10 Mar 2002 19:44:18 GMT
Hi Sri,
It was implemented as you suggested but i have preferred action paths.
Just i wanted to know is there a way to change the validate value
dynamically to true/false
without creating a new one which refers to same action class.


Thanks
rayaku
-----Original Message-----
From: Sri Sankaran [mailto:Sri.Sankaran@sas.com]
Sent: Tuesday, 11 June 2002 12:57 AM
To: 'Struts Users Mailing List'
Subject: RE: Help needed.


Just add another action mapping like:

<action path = "/anotherAction"
	  type = "MyAction"
	  name = "myformbean"
	  scope= "request"
	  validate ="true" >
	<forward name="success1" path	="/wherever.jsp"/>
</action>

The 'type' attribute's value will result in the same action being
executed -- this time *with* validation.

HTH

Sri

-----Original Message-----
From: Yaman Kumar [mailto:yamank@nous.soft.net]
Sent: Sunday, March 10, 2002 2:21 PM
To: Struts Users Mailing List
Subject: Help needed.


Hi,

I have a jsp page named x.jsp with several href links and one of them
refers to myaction.do which expects a formbean and its validation is false
and that forwards to mypage.jsp.

and mypage.jsp has got same form bean and its action is again myaction.do
but this time i would like to validate the formbean, Is it possible to
do ? my struts-config.xml looks like this.
<action path = "/myaction"
	  type = "MyAction"
	  name = "myformbean"
	  scope= "request"
	  validate ="false" >
	<forward name="success1" path	="/mypage.jsp"/>
</action>
The above code is used by x.jsp and i have requirement to use same action
by mypage.jsp but this time form should be validated.

As i can't give another action with different path and same type and
validate="true".

In short can I validate the form bean in above action when it is
used by mypage.jsp. or can i change this validate value dynamically.

thanks,
rayaku


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message