How to use a servlet to repsond to a request for an object

Posted by Rick on Stack Overflow See other posts from Stack Overflow or by Rick
Published on 2010-04-20T09:48:33Z Indexed on 2010/04/20 9:53 UTC
Read the original article Hit count: 233

Filed under:
|

I'm sure this is easy, but I don't work with website development very often and I'm lost on this one.

I have a web application that needs to support multiple clients with different settings, icons and other content. The contents of these files are in separate directories for each client.

What I would like to do is respond to a request sent to a jsp/java servlet. The servlet will look up the proper folder location in a database (I have the database stuff working) and send the actual object to the requesting page whether it is xml, graphic or video.

How do I do that? What methods should I be using. Help I'm lost! :(

© Stack Overflow or respective owner

Related posts about jsp

Related posts about servlets