the rootpath if it isn't calculated yet.
That is because of the servlet spec. You can't for example ask or get the context path
in your Servlet.init method.. That is just not possible. (they solve this in the next spec i believe)
So a full rootpath that includes servletpath and contextpath can only be calculated in the first request..
So i don't know what to return there if there is no request...
I can't just return "" because that is a lie..
johan
On 9/27/06, Stefan Lindner
<[EMAIL PROTECTED]> wrote:
When I call getRootPath() in the init method of the application I run
into a
java.lang.NullPointerException at
wicket.protocol.http.WebApplication.getRootPath(WebApplication.java:708)
Stefan Lindner
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop