Re: [S2] Parameterized File Downloading

2007-08-02 Thread Grish
Ok, I finally see the error of my ways: I originally defined my parameter like this: when it should be like this: now the proper string is passed. Thanks so much for the help! DNewfield wrote: > > Grish wrote: >> >> >> >> Get image > > So does this generate a link relative to your w

Re: [S2] Parameterized File Downloading

2007-08-01 Thread Dale Newfield
Grish wrote: Get image So does this generate a link relative to your webapp of filedownload/download.action?inputPath=/images/test.gif ? ( note, ".action" could be ".do", ".html" or whatever you have that extension set to, apparently even "". (I may have to try that in my app...) )

Re: [S2] Parameterized File Downloading

2007-08-01 Thread Grish
Good ideas! I try them out, my only problem now is that if i try to pass the parameter via the link, I still get the following error: Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the tag specified for this action. this is my action:

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

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Grish
Isn't it closed with the /> in the end? I just copied the examples in the tutorials and url examples: http://struts.apache.org/2.x/docs/url.html nuwan chandrasoma-2 wrote: > > Hi, > > Is it a typo, I dont see a tag in ur code? > > Thanks, > > Nuwan > > Grish wrote: >> I studied the stru

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Grish
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? DNewfield wrote: > > Grish wrote: >> I studied the struts showcase sample of file downloading. I wanted to do >> something similar but in

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 Nuwan Chandrasoma
Hi, Is it a typo, I dont see a 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 the same a