Serve files privately with JSP/Tomcat? -
Serve files privately with JSP/Tomcat? -
i writing jsp app should allow users log in (authenticate against postgresql database simple username , password check), , upload photos. images should private in can accessed user while logged in. re-create of image url should not work after logout. how can done tomcat/jsp?
i not want store blobs in database.
you can utilize servlet filters. let's have url /images/ images stored, using filters can check whether session user live or not.
some examples: example 1 example 2
file jsp tomcat private
Comments
Post a Comment