At 4:03 PM +0100 11/9/04, Peter Neu wrote:
Hello,

How can I manipulate the URL-Mapping in the
web.xml /struts-config.xml in order to hide
the filenames when I use the ActionForward in an ActionServlet?
Currently the URL displays all the files which I forward to.

Before I posted this message I looked through the mail archieve
but I only found some suggestions using JScript which I would like
to keep out of my application as much as possible.

Are you returning an ActionForward which has a 'true' value for its redirect property? In this case, the answer is "no."


Otherwise, you could have a Struts action read the file from the filesystem and write the bytes to the response. This would hide the true file name.

Joe

--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place."
- Carlos Santana

Reply via email to