Craig,
Try using the alternate JSP expression <%= bean1.getUserId() %> instead of
the jsp:getProperty tag. This may help debug it further. Stylistically,
you should have a field called userID instead of fieldUserID in your bean.
The bean should also be in a package. Sudheendra was also correct in that
the property should be "userId".
Regards,
Richard
-----Original Message-----
From: Siegel, Craig [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: HELP with jsp:useBean
It still does not work.
I cannot fathom what is wrong with this code.
>
>
>Hi,
>I think ur set property should look like this
>
>......
><hr>before ==
><jsp:getProperty name="bean1" property="userId" />
>
><jsp:setProperty name="bean1" property="userId" value="boo" />
>
><hr>after ==
><jsp:getProperty name="bean1" property="userId" />
>......
>
>The property should be userId not UserId (note the case of u)
===========================================================================
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
===========================================================================
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