wood burning stoves 2.0*
The moose likes Web Services and the fly likes web service that displays jpg files on html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service that displays jpg files on html" Watch "web service that displays jpg files on html" New topic
Author

web service that displays jpg files on html

feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
I would like to create a web service that takes numbers from client that corresponds to jpg files and returns html page that contains the chosen jpg's . What is the best way to depelop it ?thankyou
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
An HTML page doesn't "contain" images - it has links to them. If it's just HTML that's returned, do you really need a web service for this? Of would a standard servlet/JSP web app do as well?


Ping & DNS - updated with new look and Ping home screen widget
feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
I need to practice web service . How it can be done?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
This isn't good practice. For generating HTML, use a web app, not a web service.
feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
The scienaro is changed as follows :
client send numbers from 1-5 it can be one number or 2 or three choices
server send the pictures corresponding to the chosen numbers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web service that displays jpg files on html
 
Similar Threads
Unable to load static members while testing
question on part 2 submission format
Caching static files
Writing dynamically inside the web application
Get the temp file(css and image) from the response