Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 17 characters in body
Source Link
Jigar Joshi
  • 241.4k
  • 42
  • 409
  • 446

Check HTML rendered on browser check for img tag whats its src attribute?? , and what it should be ??

Update:

Your dir structure should be like this

jsp file at

--web-apps | |--your application | | ---images C:\Program Files\Apache Software Foundation\Tomcat |5.5\webapps\SampleApp\1.jsp  

image file at

C:\Program Files\Apache Software Foundation\Tomcat --------someImage5.5\webapps\SampleApp\images\1.jpg  

in my browser address bar

http://localhost:8080/SampleApp/1.jsp 

and make itHTML code

<img  border="2" src=imagessrc="images/<%= pic1.item(0).getFirstChild()1.getNodeValue() %> width="137" height="140"><jpg"/td>> 

Check HTML rendered on browser check for img tag whats its src attribute?? , and what it should be ??

Update:

Your dir structure should be like this

--web-apps | |--your application | | ---images  |   --------someImage.jpg   

and make it

<img  border="2" src=images/<%= pic1.item(0).getFirstChild().getNodeValue() %> width="137" height="140"></td> 

Check HTML rendered on browser check for img tag whats its src attribute?? , and what it should be ??

Update:

Your dir structure should be like this

jsp file at

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\SampleApp\1.jsp 

image file at

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\SampleApp\images\1.jpg 

in my browser address bar

http://localhost:8080/SampleApp/1.jsp 

HTML code

<img src="images/1.jpg"/> 
added 382 characters in body
Source Link
Jigar Joshi
  • 241.4k
  • 42
  • 409
  • 446

Check HTML rendered on browser check for img tag whats its src attribute?? , and what it should be ??

Update:

Your dir structure should be like this

--web-apps | |--your application | | ---images | --------someImage.jpg 

and make it

<img border="2" src=images/<%= pic1.item(0).getFirstChild().getNodeValue() %> width="137" height="140"></td> 

Check HTML rendered on browser check for img tag whats its src attribute?? , and what it should be ??

Check HTML rendered on browser check for img tag whats its src attribute?? , and what it should be ??

Update:

Your dir structure should be like this

--web-apps | |--your application | | ---images | --------someImage.jpg 

and make it

<img border="2" src=images/<%= pic1.item(0).getFirstChild().getNodeValue() %> width="137" height="140"></td> 
Source Link
Jigar Joshi
  • 241.4k
  • 42
  • 409
  • 446

Check HTML rendered on browser check for img tag whats its src attribute?? , and what it should be ??