This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing dynamically inside the web application

 
Mishra Anshu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose, I have a web application deployed.
The application uses a map service, to generate new maps for each request.
Can the map service, write its output to a directory (Say it "output") which is parallel to WEB-INF ?

Will that (output dir) be not writable? If yes, is there any way to show the dynamically generated map (the jpg files), in the application using some url ?

Thanks
[ April 18, 2006: Message edited by: Mishra Anshu ]
 
Stefan Evans
Bartender
Posts: 1691
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>Can the map service, write its output to a directory (Say it "output") which is parallel to WEB-INF ?

Yes.

Will that (output dir) be not writable?

That depends upon the server setup. You need to grant permissions so that your server can write to that directory.

You could also just send the requested image to the client without saving it to disk.
Either way, to load an image onto the page, you use the <img> tag as normal in HTML.
<img src="<%= imageFileName %>">
or
<img src="ImageServlet?imageid=42">

Using a Servlet to send the image back via an output stream is a good option.
Cheers,
evnafets
 
Mishra Anshu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

I had tried yesterday, to change the permission on the server and it worked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic