Woops, that should be "static resources". That is, the way Tapestry works now, if you bind your servlet to, say "/app" (within your context), then your URLs look like:
/context/app?service=... That makes /context/ your base URL, which means that you can reference an image in static HTML as <img src="images/foo.gif"> Assuming you put your images in a subdirectory, images. If you use prettier URLs, your base URL shifts all over the place, forcing you to hard code in the name of your context into all static URLs, which means if that app is ever deployed with a different context prefix, it breaks. ----- Original Message ----- From: "Viktor Szathmary" <[EMAIL PROTECTED]> To: "Howard M. Lewis Ship" <[EMAIL PROTECTED]> Cc: "Tapestry Developer" <[EMAIL PROTECTED]> Sent: Saturday, October 19, 2002 5:34 PM Subject: Re: [Tapestry-developer] nice URLs > hi, > > Howard M. Lewis Ship wrote: > > >Tapestry has gone back and forth on this very subject. > > > >The problem is that the nice long readable URLs make it very hard to create > >relative URLs to static methods. You must have missed 2.1 where I switched > >it back and forth a few times. Tried to make up for it using the HTML > ><base> tag, but that had its own problems (for apps hosted behind a > >firewall). > > > > what do you mean by "relative URLs to static methods"? > > i understand there might not be a one-size-fits-all solution in this > case - but the ability to override the default behavior in some > organized fashion would be useful i think... > > viktor > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > Access Your PC Securely with GoToMyPC. Try Free Now > https://www.gotomypc.com/s/OSND/DD > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > ------------------------------------------------------- This sf.net email is sponsored by: Access Your PC Securely with GoToMyPC. Try Free Now https://www.gotomypc.com/s/OSND/DD _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
