thanks
On Thu, Apr 18, 2013 at 11:44 AM, Bob Schellink <[email protected]> wrote: > There isn't a progress bar in Click, but HTML5 did add it, although alot > of browsers don't support it yet. > > XmlHttpRequest version 2 (aalso in HTML5) supports progress of file > uploads so one could use this information to update the progress bar... > > Wrt session usage, most servers will fall back to URL rewriting to add > JSessionID to the url if cookies aren't supported: > > http://stackoverflow.com/questions/436752/supporting-sessions-without-cookies-in-tomcat > > Kind regards > > Bob > > > On 2013/04/16 12:39, Rahul Khandelwal wrote: > > Thanks for your reply Bob . > I want to know few more things , Is there any thing in click by which we > can display a file upload progress bar . > Is there any way by which we can store some information in session > regardless of browser cookie settings . > It will be really good if you can give some example. > > Thank you > > > On Tue, Apr 16, 2013 at 11:02 AM, Bob Schellink <[email protected]> wrote: > >> Hi Rahul, >> >> Click doesn't generally create a session. The one area where it will >> create a session is if you use the "Form.onSubmitCheck" check in your >> code, eg: >> >> public boolean onSecurityCheck() { >> return form.onSubmitCheck(this, "/invalid-submit.html"); >> } >> >> That check needs to store a value in the Session in order to work. The >> other area where a session is created is if you use stateful controls. Bar >> that I don't think Click creates sessions. >> >> If you log into your application that will also create a session, but >> that isn't Click specific, but rather your server or security framework eg. >> Spring Security etc. >> >> You should also check that Firefox cookies is not disabled perhaps? >> >> Kind regards >> >> Bob >> >> >> >> On Tue, Apr 16, 2013 at 6:13 AM, Rahul Khandelwal >> <[email protected]>wrote: >> >>> >>> >>> Forwarded conversation >>> Subject: Session Management in Click >>> ------------------------ >>> >>> : >>> >>> >>> Please somebody tell me how click manages the session internally . >>> I am working on a click application and I am getting a problem. >>> When I load a click page (any.htm) then in chrome a JSESSIONID cookie >>> gets set but in firefox it is not getting set. >>> So , in firefox new session get created at subsequent requests. >>> I am using click and servlet together to display an upload progress bar >>> and I am doing following from .htm page :- >>> first posting a form containing file to be upload to servlet doPost >>> method >>> then , making ajax request to servlet doGet for upload status. >>> >>> But , in every new request new session getting created . >>> So , please tell me a way where I don't need to use cookie to store >>> JSESSIONID like we do in URL Re-writing . >>> How we do URL Rewriting in click framework. >>> >>> Please reply soon. >>> >>> Thanks. >>> >>> >>> >>> >>> >> > >
