This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: /WEB-INF/test.zip
 
Similar Threads
A link in jsp point to another jsp without mapping
is it possible to forward back the protected zip file Behind WEB-INF in Websphere
download zip file in struts
struts 1.beginner, code not working
Access jsp file under WEB-INF directly