I have create the following jsp page, and bean. When I set the scope to session, the
getproperty jsp tag doesn't seem to work. If I change the scope to request or page,
there is no problems. Thanks for any help.
JSP page:
<%@page contentType="text/html"%>
<html>
<head><title>JSP Page</title></head>
<body>
<jsp:useBean id="te" scope="session" class="testBean" >
<jsp:setProperty name="te" property="*" />
</jsp:useBean>
<FORM action="test.jsp" name="newtest" method="post" >
<TABLE>
<TR><TD>Title:</TD>
<TD><INPUT type="text" name="title" value='<jsp:getProperty name="te"
property="title" />'></TD>
</TR>
<TR><TD><INPUT type="SUBMIT" ></TD></TR>
</TABLE>
</body>
</html>
BEAN CODE:
import java.beans.*;
/**
*
* @author ejantk_a
* @version
*/
public class testBean extends Object implements java.io.Serializable {
private String title;
/** Creates new testBean */
public testBean() {
title = "";
}
public String getTitle () {
return title;
}
public void setTitle (String value) {
title = value;
}
}
___________________________________________________________________________
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