i had spent a lot of time for uploading an image in jsp page.so to help you guys i am writing this blog.
the way to upload the desired image is as below(neteans project)
1. Put the image file in web folder(where all the web pages are placed.)
2. Wright the code
<%String s=request.getContextPath() + "/abc.JPG";%>
<img src="<%=s%>" width = "500" hight = "600" aligh = "center" />
3. Mention the extensions of image carefully i.e(.jpeg, jpg are not treated as same)
for any other query keep posting.
Good Luck!!!
Earn upto Rs. 9,000 pm checking Emails. Join now!
the way to upload the desired image is as below(neteans project)
1. Put the image file in web folder(where all the web pages are placed.)
2. Wright the code
<%String s=request.getContextPath() + "/abc.JPG";%>
<img src="<%=s%>" width = "500" hight = "600" aligh = "center" />
3. Mention the extensions of image carefully i.e(.jpeg, jpg are not treated as same)
for any other query keep posting.
Good Luck!!!
Earn upto Rs. 9,000 pm checking Emails. Join now!
this is very informative. Thanks..
ReplyDeletethanks a lot..
ReplyDeleteit's working thank you very much....
ReplyDeletethanx a lot sir. this is very informative.
ReplyDeletewaste not wrking at all.... can u tell me hw to use it
ReplyDelete