Forum Moderators: phranque
I know there is a way to configure Tomcat so that every request on a specific directory would be forwarded through a servlet or jsp page.
This way I could check for a session variable for a specific request to download an executable, and forward them to a login page if said session does not exist.
Muchos Gracias in advance.
Zuko
There is also
[jakarta.apache.org...]
which may have the answer in the docs somewhere
"servlet filters" is the best approach, but this can also be done using a mapping of /* to a servlet that acts as a dispatcher (i.e., sends back the right page info, or does the redirect).
Hope that's at least a clue for you.
and then have a servlet that is linked to from a protected page that would serve the file after it checked for the presence of a session that was created previously from a login page.
If anyone has experience in servlet file serving, please let me know if this is possible.
Thanks in advance.
Zuko