Dear all,

I am using the jakarta-taglibs 'random' taglib to generate a 10
character-long session id:

<rand:string id="r" charset="a-zA-Z0-9" length="10"/>

I would like to be able to use this session id within the SESSION, so
naturally i want to try this:

session.setAttribute("id", r.getRandom() );

Unfortunately, the only way to access the random number, is via:

<jsp:getProperty id="r" property="random"/>

so i would then try and write this:
session.setAttribute("id",  %> <jsp:getProperty id="r" property="random"/>
<% );

But this doesn't work either.  So my question is, how do I pass a taglib
property into a session attribute in the FIRST PAGE.

(I have worked out how to use a hidden form field to pass the number BACK
into the page, or into another page, but I need to access the number WITHIN
the first page.

Any suggestions?
S

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Reply via email to