- guysymlAsked on February 04, 2015 at 12:37 AM
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,
- JotForm Supportashwin_dAnswered on February 04, 2015 at 08:55 AM
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.