Session in Java.

Hi every body:
Who can tell me how to disconnect Session, when I close IE?
If you have code, that will be more better .

This is the code from the LogoutServlet of my current project.
     public void service(
          HttpServletRequest request,
          HttpServletResponse response)
          throws ServletException, IOException {
          String errorLevel = (String) request.getAttribute("errorLevel") ;
          String sysMessage = (String) request.getAttribute("sysMessage") ;
          String target = "/web/ITELLogin.jsp" ;
          try{               
               if( request.getSession(false).getAttribute( "theUser" ) != null ){
                    request.getSession(false).removeAttribute( "theUser" ) ;
               request.getSession(false).invalidate() ; // Here's the line that actually does the work. 
          catch(Exception theException){
               errorLevel = "99" ;
               sysMessage = theException.toString() ;
               target = "/web/errorPage.jsp" ;
               request.setAttribute("applicationMessage", "Exception thrown while attempting to log out from ITEL") ;
               request.setAttribute("sourceProgram", getClass().getName()) ;
          finally{
               request.setAttribute("errorLevel", errorLevel) ;
               request.setAttribute("sysMessage", sysMessage) ;
               request.getRequestDispatcher( target ).forward( request, response ) ;
     }     By invalidating the Session object, all of the objects that it's holding are removed and the user can no longer use the application. However, they still have a session, it's just invalid. It will have to timeout and then be quiesced by the Application Server.
Regards,

Similar Messages

  • Could not deserialize session data, java.io.InvalidClassException

    Whenever I click on logout link from Liferay(Which deployed as application on Weblogic 10.3),It shows below Exception in the console however i am able to logout sucessfully.
    Could not deserialize session data.
    java.io.InvalidClassException: org.hibernate.proxy.pojo.javassist.SerializableProxy; local class incompatible: stream classdesc serialVersionUID = 1180036893511205383, local class serialVersionUID = -2265249369383210104 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560)
    It seems to be Classpath polluted with different hibernate jars.But still not able to figure it out.Below is the jar files which i have in classpath.
    hibernate-annotations.jar
    hibernate-commons-annotations.jar
    hibernate-core.jar
    hibernate3.jar
    Application Server: Weblogic 10.3
    Any Help would be much appreciated.

    Sounds like you have two different versions of a class in the two applications.
              If you change a class implementation and recompile - the updated class gets a new UID. Looks like maybe one app has a jar with the older class and the other app has a jar with the new class.

  • Session in java swing??

    Hi friends,
    I need to create session in java swing...
    I have a client running in swing and can access resources in multi-threaded server. I need to validate user using session. But i don't know how to use session.
    User has to login with username & password (authentication verified at server using socket communication).
    If successful the login frame vanishes and other options are displayed. user has a feature that he can send files to other
    user. so i need to use session for security purpose.
    Anyone help me with code
    Edited by: sathya_vn on Apr 20, 2008 5:41 PM

    Anyone help me with the code-----> u got tat wrong..
    I need to know how to use session with java swing. I requested if anyone has such code....
    This is a part of my project .
    Am using MySQL Database to store username and password.
    Cleint side interface has a frame (first frame--frame1) requesting client to provide login information. The login details <username and password> are sent to server. server validates whether the login info are correct or not and return true or false .
    If false the frame1 will show a JOptionPane ... message stating that wrong username or password specified.
    If true i need to create a session and other operations are done after session validation. I am using ssl socket.
    If u want the code then i have post around 300 or more lines..

  • Session block java.lang.IllegalStateException

    hello all
    i had developed a jsp but it gives the following error
    session block java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
    shd i paste code here?
    regards and tanks in advance
    hema

    The error is fairly self explanatory.
    "Cannot call sendRedirect() after the response has been committed "
    Once you start sending a response, you can't suddenly change your mind. JSP pages have a "buffer" to give you some leeway. The default buffer size is 8kb.
    The response is committed when the buffer is flushed. This happens when:
    - the buffer gets full
    - you explicitly call flush()
    There are two possible solutions
    1 - Make sure all forward/redirects happen as close to the top of the page as possible. This means they have a good chance of happening before the buffer gets full
    2 - make the buffer larger <%@ page buffer="16kb" %>
    Also after you do a forward/redirect, then make sure you return directly after it. Just because you call redirect, doesn't mean the page stops executing.
    Cheers,
    evnafets

  • How manage timeout Session using java SDK?

    Hi everyone !
    I'm working with BO 4.1 and the Java SDK. I'm refreshing and exporting webi reports in my code. But it happens, sometimes, the report takes longer to refresh (when calling "setPrompts") and the session is over (timeout like when you're connected in the Launchpad).
    Is there any specific way for me to test if the call to setPrompts ends without timeout? Because, now, if it ends by a timeout, I do not see anything and I'm exporting a blank document. No error or exception :-/
    Do I have to use de EnterpriseSession?
    Thanks in advance !

    Hi Jerome,
    To understand BO session management, refer to the below document.
    http://scn.sap.com/community/bi-platform/blog/2013/11/27/session-management-bible
    How do you specify that there is a timeout? Do you get timeout errors in web intelligence server logs?
    Check whether enterprise session is still valid.
    What is the approximate time delay you observe for setPrompts when you observe the timeout?
    -Prithvi

  • Users are not displaying in Management Console's Sessions (AS Java)

    Hi,
    Recently we upgraded our Development Server to EHP 7.11.
    In SAP Management Console, inside AS Java, when we are trying to view the Sessions, in the User Column the user names are not displaying.
    Those users are authenticated through UME.
    Before upgrading users logins were displaying.
    Please help us to rectify this problem.
    Thanks and Regards
    Ravi Shankar K

    Did you try to run the MMC on url. http://hostname:5xx13.
    where xx denotes the instance no of thet host.
    Thanks
    Rishi Abrol

  • Failed session with Java Thread error message

    Hi:
    We are using Oracle Forms 10g (application server 10.1.2.0.2).
    One of our users sessions just went unresponsive and when we took a look at the Java Console we captured the following:
    Exception in thread "AWT-EventQueue-2" java.lang.IllegalStateException: cannot open system clipboard
    at sun.awt.windows.WClipboard.openClipboard(Native Method)
    at sun.awt.datatransfer.ClipboardTransferable.<init>(Unknown Source)
    at sun.awt.datatransfer.SunClipboard.getContents(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent._pasteImpl(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.paste(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.processKeyEvent(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWCommonText.processKeyEvent(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField.processKeyEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.processEventImpl(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField.processEventImpl(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Has anybody seen this before and found a solution for it?
    I searched the forum and found nothing that seems to apply.
    Thanks,
    USA

    Bug 4520121 is about a java.lang.OutOfMemoryError or performance degradation when large amounts of data (megabytes) is on the system clipboard. Not sure if that's related to your problem as the call stack seems to indicate you're getting this when pasting information from the clipboard to an item
    Update: searching on metalink quickly reveals Note 301618.1 which refers to the bug Jan mentions and also to "Bug 4290580 JAVA.LANG.ILLEGALSTATEEXCEPTION: CANNOT OPEN SYSTEM CLIPBOARD"
    From the metalink Note:
    The both bugs are fixed in 10.1.2.2 of Forms. In order to implement the full fix for Bug 4290580 / 4170518, the following modifications must be made:
    1. formsweb.cfg:
    a. Locate forms90/server (9.0.4) or forms/server (10.1.2)
    b. Add allowAlertClipboard=true
    2. Add the "allowAlertClipboard" to the following HTML templates used by Forms:
    base.htm
    baseie.htm
    basejini.htm
    basejpi.htm
    * Syntax for the <OBJECT> </OBJECT> and <APPLET> </APPLET>
    <PARAM NAME="allowAlertClipboard" VALUE="%allowAlertClipboard%">
    * Syntax for the <OBJECT> </OBJECT>
    allowAlertClipboard="%allowAlertClipboard%"
    This paramter is added so that user has a choice of disabling the Clipboard alert Dialog is added so that user has a choice of disabling the alert Dialog by setting this parameter value to false in case of System Clipboard is used by some other Application.

  • Urgent:Issue with HashMap while creating session in Java Embedding Activity

    Hi,
    I am unable to createsession() with the values from HashMap. following is the code in JEA
    IAgileSession m_session=null;
              IAdmin admin = null;
              IAgileClass cls = null;
              IAutoNumber[] numSources;
              String nextAutoNumber = null;
    try {
                   HashMap params = new HashMap();
                   params.put(AgileSessionFactory.USERNAME, "*********");
                   params.put(AgileSessionFactory.PASSWORD, "*******");
    int s= params.size();
    String y= (String)params.get(AgileSessionFactory.USERNAME);
    String z= (String)params.get(AgileSessionFactory.PASSWORD);
    addAuditTrailEntry("UserName " +y);  
    addAuditTrailEntry("Password " +z);  
    addAuditTrailEntry("Size is " +s);   
                   AgileSessionFactory instance = AgileSessionFactory.getInstance("******************************");
    addAuditTrailEntry("After instance object" +instance);
    m_session = instance.createSession(params);
    addAuditTrailEntry("" +m_session);
    addAuditTrailEntry("After instance object_Session");
                   admin = m_session.getAdminInstance();
                   cls = admin.getAgileClass( "ProblemReport" );
                   IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", "PR-9989909");     
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   m_session.close();
    In the above code it is working perfectly up to AgilSessionFactory instance, but after that when I am printing m_session ( i.e. addAuditTrailEntry("" +m_session);) it is returning null values instead of some session ID. I am also able to print AgilesessionFactoy instance ID correctly inside JEA, but only problem is with m_session. I tried with the same code in java client and it is working perfectly. Please some one help me in this issue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I am unable to createsession() with the values from HashMap. following is the code in JEA
    IAgileSession m_session=null;
              IAdmin admin = null;
              IAgileClass cls = null;
              IAutoNumber[] numSources;
              String nextAutoNumber = null;
    try {
                   HashMap params = new HashMap();
                   params.put(AgileSessionFactory.USERNAME, "*********");
                   params.put(AgileSessionFactory.PASSWORD, "*******");
    int s= params.size();
    String y= (String)params.get(AgileSessionFactory.USERNAME);
    String z= (String)params.get(AgileSessionFactory.PASSWORD);
    addAuditTrailEntry("UserName " +y);  
    addAuditTrailEntry("Password " +z);  
    addAuditTrailEntry("Size is " +s);   
                   AgileSessionFactory instance = AgileSessionFactory.getInstance("******************************");
    addAuditTrailEntry("After instance object" +instance);
    m_session = instance.createSession(params);
    addAuditTrailEntry("" +m_session);
    addAuditTrailEntry("After instance object_Session");
                   admin = m_session.getAdminInstance();
                   cls = admin.getAgileClass( "ProblemReport" );
                   IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", "PR-9989909");     
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   m_session.close();
    In the above code it is working perfectly up to AgilSessionFactory instance, but after that when I am printing m_session ( i.e. addAuditTrailEntry("" +m_session);) it is returning null values instead of some session ID. I am also able to print AgilesessionFactoy instance ID correctly inside JEA, but only problem is with m_session. I tried with the same code in java client and it is working perfectly. Please some one help me in this issue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to clear sessions in java while closing the window

    Dear all,
    When I am closing the window if I click 'x' on window how to handle that event in java script , or any other way for this event handling.
    Sudheendra.

    Thank you very much ,
    In my application for each login i am using different sessions.
    In one login if a user navigating then there is no chance of opening different windows.
    So when the user without clicking logout button , if he closes the window by clicking 'x' , then the session allocated for this login is retaining until the session time out.
    so i want to invalidate the session for this particular login .
    Thank you,
    Sudheendra.

  • Session in java file

    How should i set session in a Java file, not a servlet. Had it been jsp I could have used the implicit object, What should I do?.
    Please help,
    Thanks
    Message was edited by:
    Zoram

    You need the HttpServletRequest object which is passed to JSPs and Servlets when they are invoked. How you are going to get it depends how the methods of your class are invoked. You probably need to pass it as a parameter from the JSP or Servlet that invokes the method.

  • Is there Session in java's webservice?

    I wanna store my database connection in a global variable,
    for example, a Session or an Application,
    what can I do?

    Thank you very much!
    I search a java file named DBConnectionManager.java which could do the job.
    The source code is below:
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.util.Date;
    //����DBConnectionManager
    public class DBConnectionManager {
    static private DBConnectionManager instance;
    static private int clients;
    private Vector drivers = new Vector();
    private PrintWriter log;
    private Hashtable pools = new Hashtable();
    //��������������
    static synchronized public DBConnectionManager getInstance() {
    if (instance == null) {
    instance = new DBConnectionManager();
    clients++;
    return instance;
    //����������
    private DBConnectionManager() {
    init();
    //������������
    //������������
    public void freeConnection(String name, Connection con) {
    DBConnectionPool pool = (DBConnectionPool) pools.get(name);
    if (pool != null) {
    pool.freeConnection(con);
    //����������������
    //������������
    public Connection getConnection(String name) {
    DBConnectionPool pool = (DBConnectionPool) pools.get(name);
    if (pool != null) {
    return pool.getConnection();
    return null;
    public Connection getConnection(String name, long time) {
    DBConnectionPool pool = (DBConnectionPool) pools.get(name);
    if (pool != null) {
    return pool.getConnection(time);
    return null;
    //����getconnection
    //������������
    public synchronized void release() {
    if (--clients != 0)
    return;
    Enumeration allPools = pools.elements();
    while (allPools.hasMoreElements()) {
    DBConnectionPool pool = (DBConnectionPool) allPools.nextElement();
    pool.release();
    Enumeration allDrivers = drivers.elements();
    while (allDrivers.hasMoreElements()) {
    Driver driver = (Driver) allDrivers.nextElement();
    try {
    DriverManager.deregisterDriver(driver);
    log("����JDBC��������" + driver.getClass().getName());
    catch (SQLException e) {
    log(e, "��������JDBC��������������" + driver.getClass().getName());
    private void createPools(Properties props) {
    Enumeration propNames = props.propertyNames();
    while (propNames.hasMoreElements()) {
    String name = (String) propNames.nextElement();
    if (name.endsWith(".url")) {
    String poolName = name.substring(0, name.lastIndexOf("."));
    String url = props.getProperty(poolName + ".url");
    if (url == null) {
    log("����������" + poolName + "������URL");
    continue;
    String user = props.getProperty(poolName + ".user");
    String password = props.getProperty(poolName + ".password");
    String maxconn = props.getProperty(poolName + ".maxconn", "0");
    int max;
    try {
    max = Integer.valueOf(maxconn).intValue();
    catch (NumberFormatException e) {
    log("������������������" + maxconn + ".������" + poolName);
    max = 0;
    DBConnectionPool pool = new DBConnectionPool(poolName, url, user,
    password, max);
    pools.put(poolName, pool);
    log("��������������" + poolName);
    private void init() {
    InputStream is = getClass().getResourceAsStream("/db.properties");
    Properties dbProps = new Properties();
    try {
    dbProps.load(is);
    catch (Exception e) {
    System.err.println("������������������������db.properties������CLASSPATH��");
    return;
    String logFile = dbProps.getProperty("logfile", "DBConnectionManager.log");
    try {
    log = new PrintWriter(new FileWriter(logFile, true), true);
    catch (IOException e) {
    System.err.println("������������������" + logFile);
    log = new PrintWriter(System.err);
    loadDriver(dbProps);
    createPools(dbProps);
    private void loadDriver(Properties props) {
    String driverClasses = props.getProperty("drivers");
    StringTokenizer st = new StringTokenizer(driverClasses);
    while (st.hasMoreElements()) {
    String driverClassName = st.nextToken().trim();
    try {
    Driver driver = (Driver) Class.forName(driverClassName).newInstance();
    DriverManager.registerDriver(driver);
    drivers.addElement(driver);
    log("����������������" + driverClassName);
    catch (Exception e) {
    log("����������������:" + driverClassName + ",����" + e);
    private void log(String msg) {
    log.println(new Date() + ":" + msg);
    private void log(Throwable e, String msg) {
    log.println(new Date() + ":" + msg);
    e.printStackTrace(log);
    class DBConnectionPool {
    private int checkOut;
    private Vector freeConnections = new Vector();
    private int maxconn;
    private String name;
    private String password;
    private String URL;
    private String user;
    public DBConnectionPool(String name, String URL, String user,
    String password, int maxconn) {
    this.name = name;
    this.URL = URL;
    this.password = password;
    this.user = user;
    this.maxconn = maxconn;
    public synchronized void freeConnection(Connection con) {
    freeConnections.addElement(con);
    checkOut--;
    notifyAll();
    public synchronized Connection getConnection() {
    Connection con = null;
    if (freeConnections.size() > 0) {
    con = (Connection) freeConnections.firstElement();
    freeConnections.removeElementAt(0);
    try {
    if (con.isClosed()) {
    log("��������" + name + "������������");
    con = getConnection();
    catch (SQLException e) {
    log("��������" + name + "������������");
    con = getConnection();
    else if (maxconn == 0 || checkOut < maxconn) {
    con = newConnection();
    if (con != null) {
    checkOut++;
    return con;
    public synchronized Connection getConnection(long timeout) {
    long startTime = new Date().getTime();
    Connection con;
    while ( (con = getConnection()) == null) {
    try {
    wait(timeout);
    catch (InterruptedException e) {}
    if ( (new Date().getTime() - startTime) >= timeout) {
    return null;
    return con;
    public void release() {
    Enumeration allConnections = freeConnections.elements();
    while (allConnections.hasMoreElements()) {
    Connection con = (Connection) allConnections.nextElement();
    try {
    con.close();
    log("����������" + name + "��������");
    catch (SQLException e) {
    log(e, "��������������" + name + "��������");
    freeConnections.removeAllElements();
    private Connection newConnection() {
    Connection con = null;
    try {
    con = DriverManager.getConnection(URL, user, password);
    log("������" + name + "����������������");
    catch (SQLException e) {
    log(e, "������������URL������" + URL);
    return null;
    return con;
    }

  • Invalidating a session in Java Bean

    Hi,
    I need to write a logout() method in my Java Bean to invalidate
    the current session upon logout.
    But i keep getting error when i try to access the session.
    bu using
    session.invalidate();
    Does anyone know how to retrieve the current session in a Java Bean??
    Thanks..

    Hi,
    You can pass the session from the JSP to the Javabean method for invalidating it. For example, in your JSP you can have:
    <%-- instantiate your bean --%>
    <jsp:useBean id="bean" class="YourJavaBean" scope="page" />
    <%-- call the method with the session parametere --%>
    bean.logout(session);
    And then in your bean, have:
    public void logout(HttpSession session) {
    //Any processing...
    //invalidate the session
    session.invalidate();
    Hope that helps,
    Srinivas

  • Retain session in java client , which invokes a dotnet webservice

    Hello Forum,
    I am invoking a dotnet webservice using a java client. But I am not able to maintain session in this java client. I googled this, I got many links for the above. But none of the solution was using pure sun api's. My need is to do the same only using sun api's. Please guide. Any help will be appreciated.
    Best Regards,
    Tejal Khatri

    Apache HttpClient can do that.

  • How to pass session from Java to Perl

    Hi,
    I need to pass a session value from Java to Perl, does anyone knows how can I do it?
    Thanks

    If you want to run java code from Perl, and have it return a single value, that's one thing: but having Perl interact with java code - calling methods, returning values - that may not be possible.
    Look into python to see if it may be what you're looking for. It's a scripting language that allows real interaction with java.
    If all you want to do is run java code and have it return some data, that would be trivial, so I assume that's not what you mean. But in case it is heres an idea:
    Set up a network connection between them with your own protocol, seeing as both languages are good at networking.

  • SMD agents occupying too many session in java system

    Hello All,
    I can see SMD agent occupying too many sessions in the Java instance.
    Due to this all the available sessions are getting occupied and system performance is degrading

    Hi Rajesh,
    Please increase the sessions and share more details on the performance so as to provide guidelines.
    Regards,
    Deepak Kori

  • IdM Session and java

    Hi all,
    I use the following java code to create session:
      public static Session createLHSession(String host, String user, String password) throws WavesetException {
            String url = "http://" + host + "/idm/servlet/rpcrouter2";
            EncryptedData passwd = new EncryptedData(password);
            Session ses = SessionFactory.getSession(url, user, passwd);
            return ses;
        }1) Is it the best way to create a session ?
    2) If I use this code with the same user and same password, will it create a new session each time or only get the one I created before (didn't find the javadoc of SessionFactory)?
    Thanks for your help,
    Ben

    Hi. What channel/endpoint are you using to connect to the server? If it's RTMP or a streaming or polling channel that uses the NIO server there may not be an easy way to get at the HTTP session.
    In general, I don't think it's a good idea to store stuff in the HTTPSession because it may not be available from all channels/endpoints.
    If you do need to store stuff in the session though, I'd try using a HTTP (non NIO) streaming or polling channel. I am guessing using those channels' FlexContext.getServletContext() will work to get you the HTTP session.
    -Alex

Maybe you are looking for

  • Swf does not load flv on server

    This has been asked before but it doesn't appear to have been answered... On my local workstations the swf loads and runs the flv fine. They are both in the same directory. When I upload the pair to a server (windows 2003) the swf no longer loads the

  • Can't get external editor to work

    Using LTR 3.6 on iMac, external editor PSE 10.  I choose option to open in the external editor after applying any LTR changes.  File is created in LTR, external editor is opened, but image file is not opened.  It used to work fine.  I had a hard disk

  • New tab won't open

    I have one open tab and a tab to the right with at plus sign. I use to be able to click the unused tab to open it up. For some reason now it will not open. I have settings for it to open when I click link etc and it won't do that either anymore.

  • Exporting to Vimeo with Compressor 4.1.2

    I have created a custom setting to export to Vimeo, including my email and password. However when applying the setting to the films to be compressed, the password information is missing and it seems like I have to input it manually for each file. Wha

  • Changing Stage Color

    Can the background color of the stage be changed from an external XML file? Any info greatly appreciated. Thanks!