Thanks for the super fast response! My text box was in the first jsp. There wasn't an unmentioned jsp. I made some modifications, which also are not working. The first jsp (login.jsp) contains two text boxes (loginid and loginpass) and uses a POST to submit to the second jsp (validate.jsp).
Validate.jsp looks like the following:
------
<jsp:useBean id="user" class="com.beans.UserData" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<jsp:getProperty name="user" property="userid"/>
<html>
<HEAD>
</HEAD>
<BODY>
<FORM name="validateform">
This is coming from the userid textbox on login.jsp:
<br>
<%= user.getUserid() %>
</body>
</html>
------
And here is my UserData bean:
------
package com.beans;
/**
* Created by IntelliJ IDEA.
* User: Administrator
* Date: Aug 31, 2004
* Time: 12:18:36 AM
* To change this template use File | Settings | File Templates.
*/
public class UserData {
String userid = null;
String userpass = null;
public void setUserid(String value)
{
System.out.println("Andys value is: " + value);
userid = value;
}
public void setUserpass(String value)
{
userpass = value;
}
public String getUserid() { return userid; }
public String getUserpass() { return userpass; }
}
------
The second jsp (validate.jsp) is still displaying null.
Any ideas?
Thanks!