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
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
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
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
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/...
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