Re: Re: image can't be seen
Anthony Eden <[email protected]> Wed, 26 May 2004 10:37:00 -0400
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
Adrian, Did you have a chance to test on 5.0.19 yet? If it proves to be a TC issue then I would suggest just going back to 5.0.19. There are other issues with 5.0.24 including a security issue I believe. -Anthony Adrian Klingel wrote: > No, I'm only talking about one page here. The first time you bring up the > page, no image. But if you right-click the image and choose "Show Picture", > the image appears. Every subsequent access to the page, the image is there. > > It's almost as if the page is delivered before the image can be rendered. > > Thanks, > Adrian Klingel > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of > Florin PATRASCU > Sent: Tuesday, May 25, 2004 6:52 PM > To: [email protected] > Subject: Re: [JPublish-developer] Re: image can't be seen > > > Adrian, > > Please check that you have a correct path reference to your images?! > > Let's say you declare the /images as a static repository (jpublish.xml), > something like: > > <?xml version="1.0"?> > <jpublish> > <name>your JPublish webapp name</name> > <static-root>/</static-root> > <action-root>.......... > ............ > </jpublish> > > *every* time you want to access your images, you have to be sure you have a > correct path reference, just like this: > > <img src="$request.ContextPath/images/your_image.jpg" border="0" > > > It should work! > > For sure is nothing related to the Servlet container nor JPublish. > > Plus, your're saying that sometimes works and sometimes not .. which makes > me think exactly to the way you refer images; I suspect you're using a > relative path ... something like: <img src="images/your_image.jpg" > border="0" > instead of the above ... which is wrong ;) > > Please let us know how it works, > > Cheers, > -Florin > > At 25/05/2004 16:29, Anthony Eden wrote: > >>Adrian, >> >>Is it possible for you to try your application in Tomcat 5.0.19? >>Additionally how long do you wait after starting Tomcat before trying to >>access the page? >> >>Sincerely, >>Anthony Eden >> >> >>>I've got a project set up in JPublish in the traditional way, by >>>adding a templates, HTML snippets, and some BeanShells to the >>>'JPublish empty' expanded war file. >>>I've got an HTML snippet for the page header, but very the first time >>>I access the page in Tomcat 5.0.24, the image is unavailable. After >>>I click around, the image is there from then on. I'd like to know >>>why it doesn't appear upon first access, and if there's anything I >>>can do to fix that. >>>One more thing... One of my pages reads values from the request. I >>>have a test form that sets the values in the request and POSTs them >>>to the page which calls the request parameter-reading BeanShell file. >>>The first time it is accessed, the values are not read. Upon >>>subsequent accesses from the same browser window, it works fine. So >>>this problem is sort of like the image problem. >>>Thanks for any help you can offer. >>>Sincerely, Adrian Klingel >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: Oracle 10g >>Get certified on the hottest thing ever to hit the market... Oracle 10g. >>Take an Oracle 10g class now, and we'll give you the exam FREE. >>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >>_______________________________________________ >>Jpublish-developer mailing list >>[email protected] >>https://lists.sourceforge.net/lists/listinfo/jpublish-developer > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Jpublish-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jpublish-developer > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Jpublish-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jpublish-developer ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click