Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » images
images [message #161556] Wed, 22 February 2006 07:53 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Hi,
I have a servlet that does some XSLT to produce an HTML. This HTML document
contains references to images. I tried putting the images in the WebContent
directory, but they could not be loaded with the HTML. I then tried loading
them explicitly (http://myserver/context/image.gif), but instead of getting
them, the servlet was invoked (it's doGet method).
What should I do to be able to use images?
Thanks,
Zohar.
Re: images [message #161670 is a reply to message #161556] Wed, 22 February 2006 20:58 Go to previous messageGo to next message
Kaj Kandler is currently offline Kaj KandlerFriend
Messages: 36
Registered: July 2009
Location: Berlin, Germany
Member

Zohar wrote:
> Hi,
> I have a servlet that does some XSLT to produce an HTML. This HTML document
> contains references to images. I tried putting the images in the WebContent
> directory, but they could not be loaded with the HTML. I then tried loading
> them explicitly (http://myserver/context/image.gif), but instead of getting
> them, the servlet was invoked (it's doGet method).
> What should I do to be able to use images?
> Thanks,
> Zohar.
>
>
This sounds like a tomcat/web-server configuration problem (most likely
nothing to do with Eclipse).

You need to put your images outside the context you serve your JSP from,
for example

http://myserver/images/image.gif
http://myserver/context/mypage

good luck

K<o>


Re: images [message #161720 is a reply to message #161670] Thu, 23 February 2006 07:23 Go to previous message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Using WTP, how do I put the images in http://myserver/images/image.gif ?

"Kaj Kandler" <KajKandler@conficio.com> wrote in message
news:dtij9s$i97$1@utils.eclipse.org...
> Zohar wrote:
>> Hi,
>> I have a servlet that does some XSLT to produce an HTML. This HTML
>> document
>> contains references to images. I tried putting the images in the
>> WebContent
>> directory, but they could not be loaded with the HTML. I then tried
>> loading
>> them explicitly (http://myserver/context/image.gif), but instead of
>> getting
>> them, the servlet was invoked (it's doGet method).
>> What should I do to be able to use images?
>> Thanks,
>> Zohar.
>>
>>
> This sounds like a tomcat/web-server configuration problem (most likely
> nothing to do with Eclipse).
>
> You need to put your images outside the context you serve your JSP from,
> for example
>
> http://myserver/images/image.gif
> http://myserver/context/mypage
>
> good luck
>
> K<o>
Previous Topic:Publishing to Tomcat .. keeps on running
Next Topic:Classpath Compile problem
Goto Forum:
  


Current Time: Thu Jul 25 20:31:20 GMT 2024

Powered by FUDForum. Page generated in 0.03517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top