If you *really* need to generate the files statically,
- You can simply use the session ID as identifier, you do not need the user name.
- You should take care of cleanup on session expiry/invalidation. Think "Listener" for that.
- You can store the file creation time in your HttpSession so you need not use a database for such a temporary purpose.
But...
- Is the file so "difficult" to create that you can't build it every time? IMHO, that would save you trouble.
- If it is, that's many times because of a too hard query to a database, or too many small queries. Can't you optimize that big query, or reduce the amount of them? Query optimization can lead you to really improved times. If you go this path, please let me know.
Or...
- You could use a generic caching system. Some time ago, I came across http://www.opensymphony.com/oscache/ but I have not tried it yet. I do not know if it would match your needs.
Yours,
Antonio Fiol
Rostislav Svoboda wrote:
Hi pple
I make an information system: dbase(data) + tomcat(processing in servlets) + browser(html GUI) = The COOL
I use <iframe src="path/udp.html"> where "udp.html" is dynamicaly generated in a servlet and depends on an user logged in. (it displays navigation tree)
It seems like I need to have a matrix of: udp.user_1.session_id_1.html ... udp.user_1.session_id_N.html ... udp.user_M.session_id_1.html ... udp.user_M.session_id_N.html
and I must check the time-of-change of certain tables in dbase against session-create-time under tomcat and regenerate the content of "udp.user_I.session_id_I.html" if outdated.
- principialy I doubt this is the right approach to display such kind of a page but I dunno any other :( Any ideas?
- the technical problem: I dunno how to setup/configure my tomcat to display
requested "udp.user_I.session_id_I.html". If I create a file in a servlet on a HDD (even properly located) I get an error message in the iframe:
HTTP Status 404 - /webapp/tree/index.ADMIN.html
The requested resource (/webapp/tree/index.ADMIN.html) is not available.
EOF & thx in advance
Bost
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature
