Hello Atilo,
I have just recently joined this list but for some reason my posts keep
getting returned to me.  Would you please let me know if you could assist me
with my problem below and even post it to the list.

Thank you,

Robin Porter

I have been trying to autoset the properties of a bean within a JSP but have
not been having any luck.

The line I was trying to use is:

<jsp:setProperty name="Book" property="*"/>

Since this hasn't worked I have had to explicitly set the parameters
individually with lines like:

Book.setUsername(request.getParameter("Username"));

Could you please make any suggestions as to what I may be doing wrong with
the autosetting of these properties.  My understanding is that if I pass in
the parameters as part of the request object and then use the property="*",
this should cause any properties of the Book bean that match a request
parameter to be set as long as there was a set method for this property in
the bean (which there was).
These properties were not getting set with:

<jsp:setProperty name="Book" property="*"/>

They were always NULL, so this is why I had to revert to setting each one
individually.  Please tell me why this autoset is not working for me.

Thank you.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to