In my application a jsp A interact post some parameters(a form) to Servlet B. Normally B's doPost method can handle it properly. However, when one of the parameter from A to B becomes longer(eg. 2000 characters), an crazy error occurs: "The page cannot be displayed". I did some tests regarding this problem. It seems that 1. If A sends the form to a jsp page C, C can receive it and display the parameters correctly. 2. Even if after I rewrite the content inside B's doPost method to be empty, B still cannot be found by the server. 3. I hosted the application in 2 different PCs. I got the same errorfrom both of them.
Does anyone encounter this kind of thing before? what might be the solution?
This error does not relate to any content written by me in the servlet, coz in one of my test the doPost method is empty but I still get the same problem. [ December 22, 2005: Message edited by: Baijun Jiang ]
Joined: Aug 15, 2004
Which servlet container you are using? Any other apps are running or not?
Joined: Oct 13, 2005
Of course... I use a tomcat server. and Yes, I have many applications running in the same server.But I do not think it is a problem coz I also tested the application in a server which has no other app running on it.
subject: servlet cannot be found if one parameter is too long