This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Websphere and the fly likes /WEB-INF/test.zip Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "/WEB-INF/test.zip" Watch "/WEB-INF/test.zip" New topic
Author

/WEB-INF/test.zip

grace smith
Greenhorn

Joined: Jun 14, 2005
Posts: 23
Hello,

in my jsp page I have a link which should linke to one secure zip file, we'd like to put under the /WEB-INF/ since the webuser can't directly access them by typing the file URL.

but the authorized user should still be able to access it, so I tried to make the access link to call a Struts action, which forward back the zip file. somehow, it does not work. I am wondering does Websphere container suport server side redirect files which are put under /WEB-INF?


here is the struts action mapping I used (which is not working, the web page display HTTP 403 forbidden error) :
<action <br /> path="/download"<br /> type="org.apache.struts.actions.ForwardAction"<br /> parameter="/WEB-INF/downlaod/my.zip" />


Can someone shed me some light on this?

thanks
 
 
subject: /WEB-INF/test.zip