((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getServletPath()

hth,
 gerolf

On 7/8/07, Alexander Lohse <[EMAIL PROTECTED]> wrote:

Hi,

I guess this has been asked several times, but I was unable to find a
hint:

From within a component I need to create a absolute url to static
files located in my "webapp" directory.
How do I retrieve the servlets path?

Thank you for any help.

Best regards,

Alex

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to