Sry.. I meant of course WEB-INF/pc/images -> images. Why doesn't email clients just send what I think and not what I write ;)
Frank On Sun, 2006-07-02 at 23:23 -0700, Igor Vaynberg wrote: > afaik servlet containers do not allow direct access to WEB-INF, so if > you want to store images there youd have to map apache or something > else to do that, but be careful, you dont want people getting access > to your config/classes files that also live in WEB-INF, i wouldnt > recommend doing it that way > > -Igor > > > On 7/2/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote: > Can't you just store your images in WEB-INF/images? You don't > need to > store them in something similar to the URL mapping. > > Else take a look at the <base> HTML tag which goes into head: > > http://www.htmlhelp.com/reference/html40/head/base.html > > Regards > Frank Bille > Avaleo > > > On Sun, 2006-07-02 at 20:05 -0700, R.A wrote: > > Hi all. > > > > I have a base path question. > > I set my WebApplication class in web.xml as follows. > > > > <servlet> > > <servlet-name>MyApplication</servlet-name> > > > > > > <servlet-class>wicket.protocol.http.WicketServlet</servlet-class> > > <init-param> > > > <param-name>applicationClassName</param-name> > > > <param-value>pc.MyApplication</param-value> > > </init-param> > > <load-on-startup>2</load-on-startup> > > </servlet> > > > > <servlet-mapping> > > > <servlet-name>MyApplication</servlet-name> > > <url-pattern>/pc/*</url-pattern> > > </servlet-mapping> > > > > I store image files at "WEB-INF/pc/images". > > If I set image tag in html file, img > src="pc/images/abc.jpg", work fine. > > But I'd like to set image tag, img src="images/abc.jpg". > > Is it possible to set base path, "/pc", in wicket java > source? > > > > Regards, > > R.A > > > 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 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