I'm trying to use jsp:setProperty to set a bean's properties from a
request stream.
I've tried: (straight from JSP spec 1.0, example on page 62)
<jsp:useBean id="country" scope="request" class="SqlUtilities.SqlQuery"
>
<jsp:setProperty name="country" property="*" />
</jsp:useBean>
and
<jsp:useBean id="country" scope="request" class="SqlUtilities.SqlQuery"
>
<jsp:setProperty name="country" property="database" param="database"
/>
</jsp:useBean>
The data/value pair exists in the request stream since:
<%= "request.getParameter("database") %>
prints out a value.
I can set properties from a value, but trying to set it from the request
stream results in null.
In fact the setProperty lines generate no code at all. (looking in
pagecompile generated code)
I can add the setProperty lines and diff the new generated java file and
they are identical.
(setProperty that set from value do generate code and work)
Am I making an obvious mistake.
(I've searched archives and faq's with no luck)
Has this worked for anyone?
Thanks - Rich
___________________________________________________________________________
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