Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forumdisplay.php?f=28)
-   -   Importing class (not bean) in jsp page (http://www.go4expert.com/showthread.php?t=26264)

tushicomeng 12Jul2011 13:45

Importing class (not bean) in jsp page
 
I am importing a class using the command:
<%@ page import="user.UserLoggedIn" %>

I am able to work on the methods but my query is:
Quote:

If I have static variables inside it, do they retain the value throughout the whole session or even after closing the session?
I just want to store these variables throughout the session and then reset them

In a bean, I can use scope="session"
Is there any similar way to do it in classes?


All times are GMT +5.5. The time now is 04:14.