tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Power-Netz \(Schwarz\)" <schw...@power-netz.de>
Subject AW: Session variables?
Date Tue, 04 Jun 2002 08:33:14 GMT
 
> in JSP or JavaBeans?

In JSP with JavaBeans :-)

<JSP:usebean id="yourname" class="web.whatever" scope="session" />
<% 
	int X;
	yourname.setValue(X);
	X = yourname.getValueX();
%>

public class whatever {

	private int x = 0;

	void setValue(int value) {
		x = value;
	}

	int getValueX() {
		return x;
	}
}



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message