aspose file tools*
The moose likes Struts and the fly likes getting the image alone in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting the image alone in jsp" Watch "getting the image alone in jsp" New topic
Author

getting the image alone in jsp

derick nial
Greenhorn

Joined: Sep 26, 2013
Posts: 16

im trying to display image and other contents in jsp page, however i keep on getting the image alone.and i dont know why

here is the code from my servlet:


and here is from my jsp:


please help me on this, hope to receive reply from you all ASAP.

thanks in advance (:
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

In future, while posting code, please UseCodeTags I have added them this time for you. As you can see the tags make the code much more easier to read and understand

please help me on this, hope to receive reply from you all ASAP.

No such thing Please EaseUp

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18659
    
    8

Okay. So in your JSP you're generating an <input> element which links to an image. And then you've got this unnamed servlet which apparently serves an image from somewhere. Is there supposed to be some relationship between those two things?
derick nial
Greenhorn

Joined: Sep 26, 2013
Posts: 16
Yes. The <input> is basically for the frame where i want the image to be displayed at. And no, there are no other servlet. Just one.
 
wood burning stoves
 
subject: getting the image alone in jsp