Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-10-2007, 12:26 PM
Member
 
Join Date: Dec 2007
Posts: 9
priyanka_t is on a distinguished road
session handling
Hello,
Plz tell me how to do session handling for evry field in the form...i already did this for the complete frm but its not working for particular fields.plz help
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-10-2007, 12:27 PM
Member
 
Join Date: Dec 2007
Posts: 12
Abdul Ajis is on a distinguished road
Can u explain in detail
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-10-2007, 12:36 PM
Member
 
Join Date: Dec 2007
Posts: 9
priyanka_t is on a distinguished road
Actually, i have a JSp page,wherein i'm doin session handling.So,i want my page to return to sessionexpired.jsp page after an idletiem for example 1min.
So, if i click any radiobutton or try enter any field after idle tiem i need to get the mesg as sessionexpired.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-10-2007, 01:19 PM
Member
 
Join Date: Dec 2007
Posts: 12
Abdul Ajis is on a distinguished road
I think , that needs lot of validation . U can do this way , while submitting that from do the validation.

else{
Actually session exp is a server level value , u cant take easily that values using java script function means , atleast u have to do a submit to check the expiration
}
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 12-10-2007, 01:57 PM
Member
 
Join Date: Dec 2007
Posts: 9
priyanka_t is on a distinguished road
can u explain me clearly please....
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 12-10-2007, 02:14 PM
Member
 
Join Date: Dec 2007
Posts: 12
Abdul Ajis is on a distinguished road
U are trying to get session exp using java script means , while clicking radio button and all related to java script things.Session exp is maintained by the server.So i think there is no method available to call server function from the jav a script.So better while submitting the form check that server exp


1) Search if there is a method to call server functions from the java script
2) while clicking radio buttion u must have to call a java script function
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 12-10-2007, 07:18 PM
Member
 
Join Date: Dec 2007
Posts: 9
priyanka_t is on a distinguished road
thnx Mr.Abdul
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 12-11-2007, 05:33 PM
Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 90
wsaryada is on a distinguished road
You can add some attribute to the session object. And then every time you process a user request you need to validate if this session attribute is available on not. If it is not available that redirect it to session expired notification page.
__________________
Website:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 12-14-2007, 12:09 PM
Member
 
Join Date: Dec 2007
Posts: 32
felixtfelix is on a distinguished road
It is better to write one custom tag which we can include in the top of the each and every page.So before evaluating the page it will process the custom tag where we have to check whether the session variable is avialble or not. If not then you can redirect to your sessionexpired.jsp page by something like this
HttpSession session = this.pageContext().getSession();
if(session.getAttribute("userSyscode")==null)
{
this.pageContext.forward("/jsp/rightsPag.jsp");
}
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 12-17-2007, 10:11 AM
Member
 
Join Date: Dec 2007
Posts: 9
priyanka_t is on a distinguished road
thnx members, i have fixed the issue...
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling Cookies in JSP (II) JavaForums Java Blogs 0 03-31-2008 05:50 PM
Handling Cookies in JSP (I) JavaForums Java Blogs 0 03-31-2008 05:50 PM
Exception Handling... focus_nitin New To Java 1 02-16-2008 04:13 AM
SWT Event Handling Java Tip Java Tips 0 12-30-2007 01:21 PM
Event Handling luisarca Sun Java Wireless Toolkit 5 05-07-2007 07:05 PM


All times are GMT +3. The time now is 07:36 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org