Hi,

On Sat, Mar 5, 2011 at 4:03 PM, devush <[email protected]> wrote:

> Hi,
>  I have following settings in web.xml
>
>   <servlet-mapping>
>    <servlet-name>myserv</servlet-name>
>    <url-pattern>/app/*</url-pattern>
>  </servlet-mapping>
>
>
> I expect that all requests such as:
> /app
> /app/abc
> /app/xyz
>

should come to the servlet. But only /app currently works.
>
> They actually come but since you don't have mounts at /abc or /xyz Wicket
decides there is nothing to do for them.
/app matches on the App's home page.


> Moreover, I want to access the getRequestURL part from the servlet API
> also, so that i can use the  information in the application logic.
>
> I am able to do this in the normal servlet and then forward the
> request to the wicket but in that case the URL at the client remains
> the same and causes problems later in the application.
>
> See if Wicket's Request#getPath() (Wicket 1.4.x) or #getUrl() (Wicket
1.5.x) returns what you need.
Otherwise you can always use the underlying HttpServletRequest:
- 1.4.x - WebRequest#getHttpServletRequest()
- 1.5.x - (HttpServletRequest) Request#getContainerRequest()

>
> thanks
> devush
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to