Wei Qin wrote:
>
Hi!
> Hi,
>
> When I submit a form, and retrive username from the form, I have Bean class,
> in it, setUsername, getUsername, but I don't see how the username is passed
> into the Bean class.
>
> public class NameHandler {
>
> private String username;
>
> public NameHandler()
>
> username = null; }
>
> public void setUser( String name ) {
> username =name;}
>
> public String getUser()
>
> return username; }
> }
>
> <jsp:getProperty name="mybean" property="username" />
>
use <jsp:setProperty ... > tag
--
Regards,
Sergey Vorobiev
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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