> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to