Jason Mihalick wrote:
> 
> However, if I try to move my pages under WEB-INF, wicket has a problem
> loading resources that are bound via the
> org.apache.wicket.markup.html.include.Include class.  In my case, I have
> several static pages that I want to load dynamically which are located in
> my 'help/' directory (see above). 
> 

Try:
        File context = new
File(((WebApplication)getApplication()).getServletContext().getRealPath("/"));
        File file = new File(context, "WEB-INF/help/Topic1.html");
        Include i = new Include("i", file.toURL().toString());

-- 
View this message in context: 
http://www.nabble.com/Using-Include-and-placing-pages-under-WEB-INF-tf4403861.html#a12569783
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to