Probably because they have different class names.  The first is
learnjsp.Status, the second is learn.Status.
    (*Chris*)

----- Original Message -----
From: "Isak Rickyanto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 21, 2002 6:05 AM
Subject: [JSP-INTEREST] using getProperty with session scope


> Please help me learn about getProperty ...
>
> My first page is :
>
> <%@ page language="java" session="true" %>
> <jsp:useBean id="status" class="learnjsp.Status" scope="session" />
> Set The property
> <jsp:setProperty name="status" property="name" value="Isak Rickyanto" />
> <jsp:setProperty name="status" property="married" value="true" />
>
> View name and status<hr>
> Name : <jsp:getProperty name="status" property="name" /><br>
> Has Married ? : <jsp:getProperty name="status" property="married" />
>
> Then the second page :
> <%@ page language="java" session="true" %>
> <jsp:useBean id="status" class="learn.Status" scope="session" />
>
> View name and status<hr>
> Name : <jsp:getProperty name="status" property="nama" /><br>
> Has Married ? : <jsp:getProperty name="status" property="married" />
>
> I found that in the second page, property name and married can't get the
> properti from the first page.....
> Why? Anybody can explain this ??
> The bean is saved in the session in the first page and in the second page
I
> have defined in the <jsp:useBean> that the scope is session.
> Why the getProperty view the empty value ??
>
>
===========================================================================
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to