Hi
I've been searching HOWTO and mailing list to find example of file
download.
The example app has upload, but download is just plain missing !
I found this code (below), but the useful bit is missing (ie. what goes
at ***1 and ***2)
If there's another source of documentation I'd be grateful for a
pointer.
Is there an example app available with working/configured download ?
Sorry for the newbie questions !
Any help appreciated.
Peter
[ snippet ]
public class Download extends RawScreen
{
public void doOutput(RunData data) throws Exception
{
if (!isAuthorized(data))
{
// ***1 do something to tell the user they don't have
permission
}
else
{
// ***2 do the download stuff
}
}
protected boolean isAuthorized(RunData data)
{
// do the security check here. Get whatever info you need
// about the user from RunData
}
}
[ end snippet ]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>