Re: Can i assign parameters while calling the application?

2008-02-07 Thread djo.mos

Hi,
  I am not sure I understood why you are using filters ... anyway, it is
perfectly possible to pass parameters to a Wicket page via URLs by providing
a constructor taking a PageParameters as an argument + configuring the
adequate URL encoding strategy.

  Look  http://cwiki.apache.org/WICKET/passing-parameters-to-pages.html here 
and  http://cwiki.apache.org/WICKET/stateless-pages.html here  for more
details (Wicket wiki).

Regards

-- 
View this message in context: 
http://www.nabble.com/Can-i-assign-parameters-while-calling-the-application--tp15321764p15331875.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]



Can i assign parameters while calling the application?

2008-02-06 Thread Per Newgro
Hi *,

i use an application. This will be called by different urls via filters in 
web.xml I set a custom init-param for every filter. I can access the
parameter and thus load my data based on the value. So far all ok.

But i'm tired of adding always a new filter and the definition to the web.xml
I would be glad if i could assign my parameter as a url-parameter.
Something like http://localhost:8080/myappl?myparam=2

Is this possible? If it is - how can i access myparam?

Thanks
Per

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]