What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Releasing connection: Connection can be kept alive indefinitely in tomcat while sending request from one form to another

    Asked by guysyml on February 04, 2015 at 12:37 AM

    Hi,

    I am using 2 forms in my application. From my first form I am taking form data to servlet class and from this servlet by passing url of second from I am redirecting to my second form.

    I am using this in my code

    response.sendRedirect("[next form url]");

    My application is web application written in java. I have deployed my application in tomcat running locally.Everything is fine till here.I am getting response as expected.

    But, the problem is when I am deploying my application on tomcat running on an AWS machine. It is able to fetch data from form1 to servlet and redirect to next form say "form2". But after the redirect it is closing connection giving this message .

    015-02-03 08:06:01 DEBUG BasicClientConnectionManager:196 - Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@1a419e99 2015-02-03 08:06:01 DEBUG BasicClientConnectionManager:221 - Connection can be kept alive indefinitely

    With that message, the application is not accepting any data from second "form2" into a 2nd servlet. Do you have any insight around how I can solve this?

    Thanks and Regards,

    Deepali singh

    one form problem message next form data
  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 04, 2015 at 08:55 AM

    Hello Deepali,

    Please share the web page URL where you have embedded your form and we will take a look. Since the issue is not related to form, I am not sure how much we will be able to help but we would actually like to take a look your web page to understand the issue better. 

    Are you closing the connection explicitly in your servlet or data access layer code? You may also like to explain your requirement a bit more in details. If your requirement is to redirect your users from one form to another form, it is possible to achieve your requirement within the form and the following guide should help you: http://www.jotform.com/help/38-Redirecting-Users-to-a-Different-Page 

    We will wait for your response.

    Thank you!