Exactly... I have seen discussions regarding index.html and tomcat issue several times before. But, since I'm using jboss, it haven't come to my mind that jboss uses tomcat internally.
Thanks a lot :) Warm Regards, Anirban Basak Ph : 91 33 2357 7177 Extn: 277 -----Original Message----- From: Alan Romaniusc [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 8:46 PM To: [email protected] Subject: Re: wicket prepends unnecessary ../ before href/src html element attributes Could it be anything like this? http://www.nabble.com/Wicket-1.4-m3,-wicket-auth-roles-and-Context-Path-td20 249711.html On Tue, Nov 11, 2008 at 9:51 AM, Anirban Basak <[EMAIL PROTECTED]> wrote: > (replacing proprietary names/texts with xx) > > > > I'm running wicket web app with context 'xx'. > > > > As long I'm mounting pages with mountBookmarkablePage(..) or other URL > encoding strategies (http://www.test-server.com/xx/web/page/partner) or > mentioning /xx/* as the filter pattern, everything is running fine. But I > was told not to append any word after the context > (http://www.test-server.com/xx/). I tried removing URL encoding strategies, > but wicket returning wrong relative urls by prepending unnecessary '../' to > the resource uris like: > > > > <link href="xxweb/css/styles.css" rel="stylesheet" type="text/css" /> > > <link rel="stylesheet" href="xxweb/css/dhtmlwindow.css" type="text/css" /> > > <script type="text/javascript" src="xxweb/js/dhtmlwindow.js"></script> > > <script type="text/javascript" src="xxweb/js/partnerpages.js"></script> > > > > Wicket converting them into: > > > > <link href="../xxweb/css/styles.css" rel="stylesheet" type="text/css" /> > > <link rel="stylesheet" href="../xxweb/css/dhtmlwindow.css" type="text/css" > /> > > <script type="text/javascript" src="../xxweb/js/dhtmlwindow.js"></script> > > <script type="text/javascript" src="../xxweb/js/partnerpages.js"></script> > > > > This makes the browser unable to fetch the resources as > > "../xxweb/css/styles.css" == > "http://www.test-server.com/xxweb/css/styles.css" > > > > Structure of the WAR > > xx-snapshot.war > > |-- index.html (incase wicket not running) > > |-- xx-config.xml > > |-- WEB-INF > > |-- web.xml > > |-- lib > > |-- classes > > |-- xxweb > > |-- css > > |-- images > > |-- js > > > > > > Web.xml > > <filter> > > <filter-name>wicket.xx</filter-name> > > <filter-class> > > org.apache.wicket.protocol.http.WicketFilter > > </filter-class> > > <init-param> > > <param-name>applicationClassName</param-name> > > <param-value>com.xx.xx.xxWebApplication</param-value> > > </init-param> > > </filter> > > > > <filter-mapping> > > <filter-name>wicket.xx</filter-name> > > <url-pattern>/*</url-pattern> > > <dispatcher>REQUEST</dispatcher> > > <dispatcher>INCLUDE</dispatcher> > > </filter-mapping> > > > > Is this because of any wicket specific restriction or something else? > > > > Anirban > > > > > > -- Albert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.1/1781 - Release Date: 11/11/2008 8:59 AM No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.1/1781 - Release Date: 11/11/2008 8:59 AM --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
