| | |
images not displaying in JSP pages!
Thread Solved |
•
•
Join Date: Nov 2007
Posts: 2
Reputation:
Solved Threads: 0
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?!?!
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?!?!
Java Syntax (Toggle Plain Text)
<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.
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Nov 2007
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
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
Last edited by smacklby; Nov 10th, 2007 at 3:46 pm.
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.
It is better to learn from other people mistakes but sometimes we can not avoid to do some stupid things by ourselfs.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- I have an internet connection but cannot access web pages!!! HELP!!! (Web Browsers)
- IE problem with displaying some web pages (Viruses, Spyware and other Nasties)
- How to store images in oracle using JSP (Java)
- JSP pages not showing up (JSP)
- Can't run JSP in Browser (JSP)
- Dynamic web pages? Which will exist? (IT Professionals' Lounge)
- Can't run JSP in Browser (Web Browsers)
- IE 5.0 not displaying pages properly (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: Resize
- Next Thread: Random Number Java Code
| Thread Tools | Search this Thread |
6 @param actuate android api applet application arc array arrays automation balls binary bluetooth bold business byte c++ chat class client code codesnippet collections compare component coordinates database defaultmethod detection doctype dragging ebook eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework hql html ide ideas image ingres input integer internet intersect invokingapacheantprogrammatically j2me java javaexcel javaprojects jni jpanel jtextarea julia linux list map method methods mobile mysql netbeans newbie nextline parameter php pong problem program programming project recursion recursive scanner sell server set sms sort sql string sun swing swt terminal threads tree web websites windows






