Help!

I am losing my mind trying to display images in my JSP pages -- something that is rather simple, otherwise complicatied in JSP!

Here is the code, what am I doing wrong?!?!

<img src"../images/situations/pic.gif" alt="pic" />

you're doing nothing wrong per se, except that most likely the actual location of the image in your web app is different from where you tell the browser it is.

Check the real URL created for the image, and compare that with the location it exists on your application.
Most likely there's a discrepancy there.

you're doing nothing wrong per se, except that most likely the actual location of the image in your web app is different from where you tell the browser it is.

Check the real URL created for the image, and compare that with the location it exists on your application.
Most likely there's a discrepancy there.

I already figured it out!

Look at my code again, and see if maybe I am missing an equals sign (=) somewhere, like after the src attribute!

I have lost hours on this (havent written in JSp in a while, and thought there was something else happening, like a problem with the servlet finding my images folder)

Thanks.... I feel stupid, but I know this (something simple causing a problem taking a while to figure out) happens -- well, at least it has happened to me before :)

Everybody have to learn somewhere...
It is better to learn from other people mistakes but sometimes we can not avoid to do some stupid things by ourselfs.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.