struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajat Pandit <raj...@centergroupinc.com>
Subject Re: session time-out in pop-up windows
Date Mon, 03 Nov 2003 16:13:05 GMT
hi, pls turn of the accept reciept. its damn annoying.
rajatp

chinmay.r.parikh@accenture.com wrote:

> Hubert
> 
> Thanks for this.
> 
> But how would filter recognise that the request was sent by a popup?  As
> I understand, the process is like:
> - pop-up window opens
> - Page would read global forward url from the struts config file (the
> page to display)
> - It will check filter:  if "filter pass" is true display url page else
> display error page.
> 
> So I am not sure, how Step 3 and then 4 could be implemented.
> 
> 
> -----Original Message-----
> From: Hubert Rabago [mailto:jakartauser@yahoo.com] 
> Sent: 03 November 2003 14:50
> To: Struts Users Mailing List
> Subject: Re: session time-out in pop-up windows
> 
> Another way might be:
> 1. user clicks link for pop-up window, window pops-up
> and initiates the web request
> 2. Filter intercepts the request and senses that the
> session has timed out
> 3. Before redirecting, filter recognizes that the
> request was sent by a popup, and instead redirects to
> a different pop-up page
> 4. The session-expired pop-up window shows in the
> browser with JS code to (a) redirect the parent page
> to the login window and (b) close itself.
> 
> --- chinmay.r.parikh@accenture.com wrote:
> 
>>I am using Filters to determine whether session has
>>timed out or no and
>>redirect user to login page.  The implementation
>>class extends Action
>>class so you could display appropriate messages on
>>login page when user
>>gets redirected to it due to time out.  
>>
>> 
>>
>>However this does not work well when there are
>>pop-up windows:  e.g.
>>When user clicks on a hyperlink in a parent browser
>>window, a new pop-up
>>window opens to display information.  But when the
>>session has timed
>>out, the pop-up window displays "session time out
>>error" and redirects
>>it log in page.  What I intend to achieve is that
>>when the user clicks
>>on the hyperlink and if the session has expired new
>>pop-up window does
>>not open and is the redirected to login page in the
>>parent browser
>>window itself.
>>
>> 
>>
>>One possibility is to associate the hyperlink on the
>>page with a form
>>submission and then verify session time out in
>>Action class but then how
>>to open pop-up window from within Action class?
>>
>> 
>>
>>Any other possibilities?
>>
>> 
>>
>>Any suggestions/pointers will be much appreciated.
>>
>> 
>>
>>Regards
>>
>> 
>>
>>Chinmay
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>>This message is for the designated recipient only
>>and may contain privileged, proprietary, or
>>otherwise private information.  If you have received
>>it in error, please notify the sender immediately
>>and delete the original.  Any other use of the email
>>by you is prohibited.
>>
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> This message is for the designated recipient only and may contain privileged, proprietary,
or otherwise private information.  If you have received it in error, please notify the sender
immediately and delete the original.  Any other use of the email by you is prohibited.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

-- 


Rajat Pandit | rajatp@centergroupinc.com
+91 612 3117606
[ Developer and Part Time Human Being]



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message