top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why Ajax calls don't renew session timeout on Tomcat server?

+1 vote
597 views

I have a web application which is deployed on a Tomcat server (version 7). I have set the session timeout value as 10 minutes in the web.xml file. In pages with no Ajax call, the session time out value is reset promptly. But it is not renewed on pages with Ajax calls. Web application is taking user back to Login screen even though some activity is happening on the page (with Ajax).

Can anyone help me?

posted May 15, 2013 by Sudheendra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

You dont give enough information to diagnose the problem, but I imagine youre not passing the session information (e.g., jsessionid cookie) back to the server.

answer May 15, 2013 by anonymous
Similar Questions
+1 vote

I have a problem/doubt and describing here.I am using struts1.1(no plain jsp's only struts tags) and needs to implement ajax in that.Q-1) With out giving "action" property can't we write ?. If no I am using ajax in that
form(now my form having button to submit form data). Could any one please help how to add my response back to form variable in same page.

Login Success

my action class is

package app;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class DetailsAction extends Action {    
 public ActionForward execute (ActionMapping mapping, ActionForm  form, HttpServletRequest request,HttpServletResponse  response) throws Exception    
 {
 RegisterForm detailsForm = (RegisterForm)form;
 detailsForm.setUsername("Struts");
 System.out.println("inr"+detailsForm.getUsername());
 return mapping.findForward("success");
 }    
} 
+3 votes

I am planning to use JFree Charts for my web application. I have a requirement to place multiple Charts (say multiple pie charts) on a single JSP page. How can I achieve using JFree Charts?

I am using Struts2 for building this web application.

...