I think this is probably an implementation bug.  Currently it seems that the
SETONCREATE VALUE parameter can only be a constant.

Scott

> -----Original Message-----
> From: Shah, Mayank (RSCH) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 18, 1999 2:02 PM
> To: [EMAIL PROTECTED]
> Subject: Question about Session Variables and setoncreate
>
>
> I'm not sure if this is the correct place for technical
> questions.  If it
> isn't then, please inform me of the correct location.
>
> Can someone tell me why the following does not set the bean
> property.  I
> print out the value someone else on the page from the request
> object and
> shows that the session value is set, but the bean property is not set.
>
>
> <HTML>
>
> <USEBEAN name="user" type=beans.User lifespan=session>
> <SETONCREATE BEANPROPERTY="userId" VALUE= <%=
> Request.getSession().getValue("user_id") %> >
> </USEBEAN>
>
> ....
> Try 2
>
>
> <HTML>
>
> <USEBEAN name="user" type=beans.User lifespan=session>
> <SETONCREATE BEANPROPERTY="userId" VALUE= <%
> Request.getSession().getValue("user_id") %> >
> </USEBEAN>
>
> ....
> Try 3
>
>
> <HTML>
>
> <USEBEAN name="user" type=beans.User lifespan=session>
> <SETONCREATE BEANPROPERTY="userId" VALUE= "<%
> Request.getSession().getValue("user_id") %>" >
> </USEBEAN>
>
>
>
> Mayank Shah
> Research Technology
> 212.449.0463
>
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff JSP-INTEREST".  For general help,
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to