Re: sessions

2006-06-13 Thread Dave Newton
Abhimanyu Koul wrote: > are there any benefits of using custom tags over filters. > If you don't like your page designer it makes them type more, or if you like repeating yourself. I like the filter solution the best because the session attribute lookup is handled in one place only and it's no

Re: sessions

2006-06-13 Thread Abhimanyu Koul
are there any benefits of using custom tags over filters. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 - Original Message - From: "The Jasper" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, June 13, 2006 4:4

Re: sessions

2006-06-13 Thread The Jasper
hi, I would suggest a filter. You won't have to tag each page that needs to be in session. mvg, Jasper On 6/13/06, Abhimanyu Koul <[EMAIL PROTECTED]> wrote: hi all! can anyone tell me which approach is better for session validation in a struts application creating a custom jsp tag and using

Re: sessions

2006-06-12 Thread Thomas Joseph
asper" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, June 12, 2006 3:25 PM Subject: Re: sessions > hi, > > You could use a login filter. Have the filter check if they are logged > in via a session attribute. If the person is logged, then fine.

Re: sessions

2006-06-12 Thread basudeb . acharya
" To "Struts Users Mailing List" , <[EMAIL PROTECTED]> cc Subject Re: sessions but the problem with that approach would be that i would have to write same code for every action or call the same method for each action. i want that it should be automatically done for ea

Re: sessions

2006-06-12 Thread Gareth Evans
lutions (P) Ltd. Mobile : +91 9819510090 - Original Message - From: "Mukta" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Monday, June 12, 2006 3:28 PM Subject: RE: sessions If you have some session attributes in your application,

Re: sessions

2006-06-12 Thread Abhimanyu Koul
gards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 - Original Message - From: "Mukta" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Monday, June 12, 2006 3:28 PM Subject: RE: sessions > If you have some session att

RE: sessions

2006-06-12 Thread Mukta
If you have some session attributes in your application, then it is very easy to do so. Whenever a user directly tries to access any action, first try to get that session attribute. If it is null, redirect to login page. -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]

Re: sessions

2006-06-12 Thread The Jasper
hi, You could use a login filter. Have the filter check if they are logged in via a session attribute. If the person is logged, then fine. Otherwise redirect to the login page. On logging in you set the session attribute. Now just set the web.xml so that everything has to go through the login fil

Re: Sessions and keep-alives

2005-05-13 Thread Frank W. Zammetti
me interval less than your timeout >> >> period. You'll have to ensure all pages of app A have that refresh >> >> function in page-scope, and that all pages in B set that timer and >> make >> >> the call. >> >> >> >> If a full-page ref

Re: Sessions and keep-alives

2005-05-13 Thread Frank W. Zammetti
d it well) >> >> Frank W. Zammetti >> >> -Original Message- >> From: "Patrick Lacson"<[EMAIL PROTECTED]> >> Sent: 5/13/05 12:56:43 AM >> To: "Tomcat Users List" >> Subject: Re: Sessions and keep-alives