Sorry I should be more clear. I know how to use mounts. What I need to
lookup the Class associated to a particular mount point. Please see my code
below:
return new WebRequestCycle(this, (WebRequest) request, response)
{
@Override
protected void onBeginRequest()
{
super.onBeginRequest();
HttpServletRequest req=(HttpServletRequest)request;
String path=req.getServletPath();
// I need to lookup the Page or Class from this path
...
}
}
martin-g wrote:
>
> http://wicketstuff.org/wicket13/niceurl/the/homepage/path
>
> Browse the source code of NiceUrlApplication.java to see how to use
> mounts
>
> On Sat, 2008-05-03 at 18:35 +0200, Johan Compagner wrote:
>> Use mounts
>>
>> On 5/2/08, Chris Lintz <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi,
>> > Any one know how I can directly lookup a Page or the Page Class from a
>> URI
>> > path? For example, say I have "/pic/convert" . How can I get the
>> > associated Page or Page class that path?
>> >
>> > thanks for any help
>> >
>> > chris
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/How-to-lookup-Page-or-Class-from-a-URI-path---tp17020708p17020708.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]
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/How-to-lookup-Page-or-Class-from-a-URI-path---tp17020708p17048153.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]