hi edi,
typically, you would subclass from WebSession and provide your own typesafe
getters and setters:
public class MySession extends WebSession {
private String myString;
public String getMyString() { return myString; }
public void setMyString(String myString) { this.myString = myString; }
}
in your page you would do something like this:
String myString = ((MySession)Session.get()).getMyString();
that's it...
hth,
gerolf
On 9/17/07, Edi <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I am the newbie of wicket. I want to store some string in session. And i
> want to get that session and display into another page. How?
>
>
> in jsp,
> I can set session like
> session.setAttribute("session","session");
>
> and easily get
> session.getAttribute("session");
>
> Using the above getAttribute method. In wicket How can I do this?
>
> Please explain.
> --
> View this message in context:
> http://www.nabble.com/Regarding-Wicket-Session-tf4466808.html#a12736184
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>