hmm, it is set in the same manner but isn't available in the Form-Bean. For
testing I have printed out all Request-Attributes in the Form-Bean in this
way:
------------------------------
Enumeration e = request.getAttributeNames();
while (e.hasMoreElements()) {
System.out.println(e.nextElement());
}
--------------------
but there is no "userDetail".
Hafeez-ur Rehman wrote:
>
> Hi,
>
> Set the userDetail as the same manner in validate as you set it in action.
>
> -----Original Message-----
> From: zuban [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 25, 2007 7:50 PM
> To: [email protected]
> Subject: RE: Newbie. validate Inputs. Request-Attribute lost
>
>
> thanks for answer
>
> I have the same issue with another request-object and I' have done your
> sugestion:
>
> In the form-jsp-page a have put this scripplet:
> <% request.setAttribute("userDetail", request.getAttribute("userDetail"));
> %>
>
> Now, the form-bean shoult access the object "detailUser" in this way:
> request.getAttribute("userDetail");
> but the return of this methode is null ??
>
>
> Hafeez-ur Rehman wrote:
>>
>> Hi,
>>
>> Your previous request is finished and the request level optionsCollection
>> attribute also washed out. After the failure of validate method, you need
>> to
>> set it again "optionsCollection" as request attribute if you don't want
>> to
>> make is session level attribute.
>>
>> Hafeez
>>
>> -----Original Message-----
>> From: zuban [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, April 25, 2007 5:50 PM
>> To: [email protected]
>> Subject: Newbie. validate Inputs. Request-Attribute lost
>>
>>
>> Hi,
>> I have in a form a list of Options (optionsCollection). The object (a
>> java.util.List) which holts the values for the optionsCollection is in
>> the
>> request-scope.
>> When submitting the form and an error occurs in the validate-methode of
>> the
>> Form-Bean, the form-jsp-page appears again (of course), but there isn't
>> the
>> object to fill the optionsCollection any more.
>> What coult I do? I don't want to set the object in der session-scope.
>> --
>> View this message in context:
>>
> http://www.nabble.com/Newbie.-validate-Inputs.-Request-Attribute-lost-tf3645
>> 135.html#a10180005
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Newbie.-validate-Inputs.-Request-Attribute-lost-tf3645
> 135.html#a10182050
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Newbie.-validate-Inputs.-Request-Attribute-lost-tf3645135.html#a10187097
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]