ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Two Servlet Filters Every Web Application Should Have
Subject:   MIME types and Servlets that generate binary data
Date:   2003-12-12 14:58:19
From:   jfalkner
Response to: MIME types and Servlets that generate binary data

True, but a good point is that you can map your servlet to both "MyServlet.jpg" and "MyServlet.png", then use the correct URL based on if you want a JPG or a PNG -- same for other extensions and MIME types. I'd argue this is the way you should do dynamic images/content unless you really must do it a different way.

1 to 1 of 1
  1. MIME types and Servlets that generate binary data
    2004-01-26 21:45:24  jleech [View]

1 to 1 of 1