You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anibal Constante Brito <ac...@hotmail.com> on 2002/06/04 08:43:13 UTC
Session variables?
How can I put o retrieve a variable session like in ASP Session('text') =
"text"?
in JSP or JavaBeans?
Best Regards.
Owen.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Session variables?
Posted by "Power-Netz (Schwarz)" <sc...@power-netz.de>.
> 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>