Re: How to prevent access to pdf files
I am on a page. There are a list of pdf files on the page. If a user clicks on a pdf file, I want him to be redirected to a login page if he is not logged in. However this doesnt seem to be happening even with filters. Does the click on a pdf file not recognized as a request? Verify that the PDF is part of the webapp, and is being served by Tomcat. Also verify that the web.xml file specifies that the filter should be processing requests for the .pdf suffix. Often filters are configured to only process requests routed to servlets or JSP's. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Advice on File Uplaod
I am somewhat of a Struts newbie, and I could use some advice on implementing a component of an application. I have a form that allows a user to upload a file, along with associated meta-data. If the form's validate() method returns ActionErrors, the form will keep the originally entered fields as default values so that the user can just fix his or her errors and continue. Is there a facility to do something similar with a file? I don't really want to have the file transmitted back and forth in the case of a form validation error, and there does not seem to be a mechanism in HTML for including an entire file as a default value anyway. But I do not want the user to need to re-select the file from the file system just because one or more of the meta-data fields has a validation error. Any thoughts on how to go about this? Thanks! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Internal-only paths
I am trying to find a way to specify that an Action can only be accessed as a forward from another action. I want to avoid web clients access those actions directly. Does anyone know of a way to do this from, say, the struts-config.xml file? John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]