Hi Eelco, I think "getContextPath" is what I need. I am trying to port my app to wicket 1.3 where "getContextPath" is no longer present in ApplicationSettings. If I just add a relative path, I get problems when I have a manually edited mountPath like mountBookmarkablePage("/some/other/strange/ dir", Page.class), right?
I guess it gets even more confusing when I use Apache to tunnel the requests from, let's say http://myipaddress:8080/project-name/app/somePage to http://www.project-domain.xy/somePage right? How does anyone else solve user-image-uploads ? I would not want wicket to handle all the images displayed, because I think this adds unnecessary overhead as my application has a whole lot of read-only users. Best regards, Alex Am 08.07.2007 um 19:37 schrieb Eelco Hillenius: >> ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest >> ().getServletPath() > > Doesn't he need getContextPath? > > Or you can do WebApplication#getServletContext(). > > I don't think you typically need it though. If you let a component > print out "subdir/foo.jpg" for the source attribute, it will pick that > up relatively to your web app context. > > Eelco > > ---------------------------------------------------------------------- > --- > 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 ______________________________________________________________ Alexander Lohse • Entwicklungsleitung & Projektmanagement Tel +49 38374 752 11 • Fax +49 38374 752 23 http://www.humantouch.de Human Touch Medienproduktion GmbH Am See 1 • 17440 Klein Jasedow • Deutschland Geschäftsführung: Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior) Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684 ------------------------------------------------------------------------- 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