((YourApplication)getApplication()).getServletContext().getAttribute(attrName);

Bilgin


On Wed, Jul 14, 2010 at 1:58 PM, Madhan <[email protected]> wrote:

>
>  I am new to wicket.
>
>  I have created a simple web-app which displays my name in a label.
>
>  However, when I wanted to extend the web app by fetching my name from
> web.xml, though I was able to get the context parameters in the init method
> of the application class, I am not sure how to send the value to the
> webpage.
>
>  Kindly let me know how to pass the context parameter from the application
> class to the webpage class.
>
>  My development environment for Wicket 1.4.9 is as follows,
>
> OS : Windows XP SP3
> App Server : apache-tomcat-6.0.26
> JDK : 1.6.0_17
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288699.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to