A Java Web project that deploys Tomcat on Linux will show the value of the post submission Request.request.getParameter ()

Source: Internet
Author: User

Sometimes obviously on Windows is very normal, and on Linux is not normal, on the Windows post Submission Request.request.getParameter () has a value, and on the liunx there is no value.

I started thinking it was my Tomcat version and found that it wasn't, and Tomcat was basically the same on Linux and Windows.

This way I suspect that it is not my configuration file error, the Conf server.xml file configuration error under Tomcat. Decided to look for this file, I took a try to hold a state of mind a place

<connector port= "protocol=" http/1.1 "
connectiontimeout= "20000"
Redirectport= "8443" uriencoding= "UTF-8" maxpostsize= "0"/>

That's how I configured it on Windows.

The last parameter maxpostsize= "0", is to the long-passing data infinite, because I think that may appear because of the larger picture and cannot upload, of course, has not appeared because the file is too large to upload.

I have removed the maxpostsize= "0" parameter on the Linux configuration.

A Java Web project that deploys Tomcat on Linux will show the value of the post submission Request.request.getParameter ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.