• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Image display problem

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
we are using rmi and web server in our application. Flow of the application is :-

client requests web application(tomcat)
web application requests rmi server.

i have a combobox on jsp page containing name of the images, stored on rmi server. I want to display the selected image on jsp. For this client requests the web server and web server requests rmi server. rmi server contains a folder images in which all the images are stored.

How i can get the selected image and display on jsp?
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where is the problem?

- In getting the name of selected image from JSP?
- In passing the name to RMI Server?
- In receiving the image from RMI Server?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

How i can get the selected image and display on jsp?


Please remember that JSP is for writing text to a response, NOT binary image data. Your jsp is going to have to write a normal HTML IMG tag with a SRC URL that contains enough information for a servlet to recover the image, properly format the response headers and send the binary content.
Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic