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. copy of image url should not work after logout. how can done tomcat/jsp?

i not want store blobs in database.

you can use servlet filters. let's have url /images/ images stored, using filters can check whether session user alive or not.

some examples: example 1 example 2


Popular posts from this blog