I plan to develop an intranet application (Java client, JSP, SQLite)
The purpose of this is that when the user clicks on the link, if the user has access (for a command that is processed in business logic), the file must be provided for download
There is a table in db that contains the information, and below is an example of a line
ID | file | team | md5 1 | D:\test\output_20140915_100012.zip | Falcon | 5cceaf4cc400fd8f5c7fb4b2af754f4093369f59
where MD5 is the MD% checksum of the line "D: \ test \ output.zip", and not the file itself
I create MD5 just for the sake of random number. The reason I don't use RAND is to avoid a collision (this part is trivial)
I want my url to look like this
http://mywebserver:8080/<appname>/5cceaf4cc400fd8f5c7fb4b2af754f4093369f59
What needs to be done for
http://mywebserver:8080/<appname>/download.jsp?id=5cceaf4cc400fd8f5c7fb4b2af754f4093369f59
I am using Tomcat and I am wondering how we can rewrite the URLs for this scenario
source share