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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -