关于maxPostSize的问题
我在将数据拼接成XML作为参数传给SQL的时候,在TOMCAT中报下面的错误,应该是因为XML字符串太长的原因,请问该怎么解决呢
=== 2011-08-15 14:45:17,596 [sor6] INFO [/] - Parameters were not parsed becaus
e the size of the posted data was too big. Use the maxPostSize attribute of the
connector to resolve this if the application should accept large POSTs.
=== 2011-08-15 14:45:17,606 [sor6] ERROR IDACall - Top-level servlet error:
java.lang.IllegalStateException: Post too large
------解决方案--------------------
java.lang.
IllegalStateException原因是在程序中两次调用response.sendRedirect("")方法
在response.sendRedirect("")方法后加return语句即可:
------解决方案--------------------不懂,帮顶。
------解决方案--------------------ls正解