Re: [S2] Parameterized File Downloading

2007-08-02 Thread Grish
there. -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Parameterized-File-Downloading-tf4191759.html#a11976775

Re: [S2] Parameterized File Downloading

2007-08-01 Thread Grish
] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Parameterized-File-Downloading-tf4191759.html#a11957463 Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] Parameterized File Downloading

2007-08-01 Thread Dale Newfield
Grish wrote: s:url id=downloadUrl action=download namespace=/filedownload s:param name=inputPath value=/images/test.gif / /s:url s:a href=%{downloadUrl}Get image/s:a So does this generate a link relative to your webapp of filedownload/download.action?inputPath=/images/test.gif ? ( note,

[S2] Parameterized File Downloading

2007-07-31 Thread Grish
] in the invocation stack Is there another way i should be setting my inputPath parameter for my File or do I just have to make a lot of actions for each of my download? -- View this message in context: http://www.nabble.com/-S2--Parameterized-File-Downloading-tf4191759.html#a11920666 Sent from the Struts

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Nuwan Chandrasoma
Hi, Is it a typo, I dont see a /s:param tag in ur code? Thanks, Nuwan Grish wrote: I studied the struts showcase sample of file downloading. I wanted to do something similar but instead of setting the inputPath paremeter in struts.xml I wanted to pass it in the url. I was thinking of using

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Dale Newfield
Grish wrote: I studied the struts showcase sample of file downloading. I wanted to do something similar but instead of setting the inputPath paremeter in struts.xml I wanted to pass it in the url. Sounds like you're opening a very large security hole here... -Dale

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Grish
-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Parameterized-File-Downloading-tf4191759.html#a11938299 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Grish
? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Parameterized-File-Downloading-tf4191759.html#a11938302 Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Dale Newfield
Grish wrote: Hmmm good point. So does this mean that the only secure way of having downloads is to have specific actions for each download? Or is there a better approach? I don't claim to know what the best approach is. As long as your action does sufficient validation of the specified input