struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Johansson <>
Subject RE: Download a Java ME application to mobile using StreamResult
Date Sun, 03 May 2009 19:16:58 GMT


Thank's for your reply Dave.

I named it to interceptor when I thought i had to do an interceptor class, didn't change it
while getting more clever. 

Well, I did just a form and which used an action to retreive the application. It doesn't work
though and I am pretty
sure the reason is because the .jad file contains information about where to get the .jar

I.e., I have to in some way use a url and not a pointing to the file in the file system to
a .jad in the same directory
as the .jar.  I think...

So, I have to 

1. Protect the file(s) from unauthorized access
2. Be able to verify the "ordernumber" in order to allow access to the files. 
3. The client (mobile) must be able to use the inforamtion in the .jad file in order to download
the .jar file. 

Hmmm...still stuck. Any suggestions?

Appreciate your help!


> Date: Sun, 3 May 2009 14:12:56 -0400
> From:
> To:
> Subject: Re: Download a Java ME application to mobile using StreamResult
> Niklas Johansson wrote:
>> I guess the link you sent is pointing to a similar way of doing it as I did. This
>> is my reference:
> Oh; the "interceptor" part in the class name made me think you were
> trying to make an interceptor. Not sure where the "interceptor" part
> comes from; it's a result class.
>> The reason why I am doing like this is because I don't want it to be possible to
>> download the file without entering some kind of "ordernumber". I.e. the file must
>> protected. The reason why I chosed this solution is simply because that is the solution
>> I found while googleing.
>> Is there perhaps a better way of doing this?
> If you're trying to "protect" the file download then you just need to
> create a form that verifies the rights of the user to access the file:
> if they have access then use a normal stream result to send it to them.
> The link you point to is solving a completely different problem, and
> seems unnecessary since result parameters can be set from action properties.
> Dave
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message