My problem with using scriplets is that when the form Im submitting  fails
actionForm validation, the values for all of my form are reset except the custom
tag built form elements ( which happen to be drop downs ).  I guess I could use
bean:parameter, but how do I add a value to the requestParameter?


Pete Serafin

"Jakkampudi, ChandraseKhar" wrote:

> I think you have to use scriptlets for this. Alternatively, look at the code
> for the nested tags (available in the nightly build I believe) to achieve
> what you want.
>
> Or checkout this site
> http://www.keyboardmonkey.com/struts
>
> Hope that helps
>
> -JC
>
> -----Original Message-----
> From: Pete Serafin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 3:59 PM
> To: '[EMAIL PROTECTED]'
> Subject: Cant set custom tag attr with bean tags
>
> I am trying to set a custom tag parameter in one of my JSPs based on a
> value from an attribute set in my actionForm.  I am able to create a
> bean using bean:define no problem.  However, using bean:write from
> within the custom tag does not work.  I have also attempted to use
> bean:parameter to define the value based upon the actionForm but cant
> get that to work.  Am I going about this the right way,  or is there
> another solution to this problem?  I have included some code below ....
>
> //Retrieves the form properly
>   <bean:define id="hardwareForm" name="hardwareForm"
> type="form.HardwareForm" />
>
> //custom tag ... fails
> <abc:DropDown name="productCode" defaultValue="<bean:write
> name="hardwareForm" name="producdCode" />" collection="<%= p %>" />
>
> Thanks,
>
> Pete Serafin
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to