Re: Can't access Javascript/CSS when in servletMode

2007-09-28 Thread Martijn Dashorst
Read this: http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-WicketServletMapping There you can read that if you use the servlet mapping, you need to do it on a subpath, i.e. /app *and* add the asterisk: servlet-mapping

Re: Can't access Javascript/CSS when in servletMode

2007-09-27 Thread Adam A. Koch
Here's the URL I'm trying: http://localhost/mre/resources/com.*.webapp.wicket.BasePage/mre.css This (part of) the web.xml that works: filter filter-nameMreWicketApplication/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param

Re: Can't access Javascript/CSS when in servletMode

2007-09-26 Thread Adam A. Koch
It is mapped to an app and not to the root. The directories I listed are in the war file, but I tried to access them with http://localhost/myapp/... Kent Tong wrote: Adam Koch wrote: In fact, I couldn't get the JS/CSS in any way when using the servlet. I tried putting the JS in

Re: Can't access Javascript/CSS when in servletMode

2007-09-26 Thread Kent Tong
Adam Koch wrote: It is mapped to an app and not to the root. The directories I listed are in the war file, but I tried to access them with http://localhost/myapp/ ... Then I'd suggest you: 1) deploy your app in Tomcat to see if it works. 2) file a jira issue and upload a bare minimal

Re: Can't access Javascript/CSS when in servletMode

2007-09-26 Thread Martijn Dashorst
And perhaps post the contents of your web.xml? Did you map to /app or /app/* ? Martijn On 9/27/07, Adam A. Koch [EMAIL PROTECTED] wrote: It is mapped to an app and not to the root. The directories I listed are in the war file, but I tried to access them with http://localhost/myapp/...

Re: Can't access Javascript/CSS when in servletMode

2007-09-21 Thread Kent Tong
Adam Koch wrote: In fact, I couldn't get the JS/CSS in any way when using the servlet. I tried putting the JS in my app.war in these directories: / (root) /classes/com/.../someJS.js /WEB-INF/classes/com/.../someJS.js (same directory as Class and html) Are you mapping the Wicket servlet