DefaultRequestTargetResolverStrategy

protected IRequestTarget resolveExternalResource(RequestCycle requestCycle)
   {
       // Get the relative URL we need for loading the resource from
       // the servlet context
       // NOTE: we NEED to put the '/' in front as otherwise some versions
       // of application servers (e.g. Jetty 5.1.x) will fail for requests
       // like '/mysubdir/myfile.css'
       final String url = '/' + requestCycle.getRequest().getRelativeURL();
       return new WebExternalResourceRequestTarget(url);
   }



On 2/13/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:

* Martijn Dashorst:

> We don't  recommend putting  the Wicket servlet  at /*,  you can
> find  it all  over  the  mailinglist and  on  the WIKI. This  is
> because  the servlet  then  has  to serve  *ALL*  things in  the
> application context, provided you don't  tweak the web.xml to do
> otherwise.

Does  it mean  in Wicket  1.x there  is code  that streams  static
resources?  That's interesting.  Can you  point me to the relevant
class or method?
--
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to