Re: efficient resource downloading

2010-05-11 Thread Zilvinas Vilutis
See no problem of using spring services within a servlet, see my servlet example: http://pastebin.com/6tWstvAL http://pastebin.com/6tWstvAL Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Mon, May 10, 2010 at 8:10 PM, Joe Fawzy joewic...@gmail.com wrote: Hi dear

Re: efficient resource downloading

2010-05-11 Thread vladimir.kovalyuk
Since you wrote that you employ Spring MCV I presume you don't use any page state when constructing your dynamic resource, instead you parse URL parameters. Thus your resource seems to be shared resource. I used to extend WebResource (provide your own dynamic implementation of IResourceStream)

Re: efficient resource downloading

2010-05-11 Thread Zilvinas Vilutis
If you need to have the current session in a servlet, you may use the WicketSessionFilter which injects the wicket session into a ServletRequest. In any way you want to use it - your chosen implementation of security part will still be heavyweight. Not sure if you can submit authentification

Re: efficient resource downloading

2010-05-11 Thread Igor Vaynberg
On Tue, May 11, 2010 at 11:24 AM, Zilvinas Vilutis cika...@gmail.com wrote: If you need to have the current session in a servlet, you may use the WicketSessionFilter which injects the wicket session into a ServletRequest. rather it binds it to the threadlocal so you can say Session.get()

Re: efficient resource downloading

2010-05-10 Thread Joe Fawzy
Hi dear actually , access control and dynamic file generation requires using services which is injected by spring this cannot be easily done in pure servlet my current solution using spring @Controller and write diretly to the servlet response is somethingvery similar to writing a servlet but as

Re: efficient resource downloading

2010-05-09 Thread Igor Vaynberg
write a servlet -igor On Sun, May 9, 2010 at 6:37 PM, Joe Fawzy joewic...@gmail.com wrote: Hi i want to know if this is an efficient way to download some files i want my users to be able to download certain files just to registerd users only so i can put that logic in the page constructor