让WebLogic先识别该应用的包:
修改的方式就是在自己的应用中WEB-INF中新建weblogic.xml文件
<!--CTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dt-->
xml 代码
-
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd"
>
-
-
<
weblogic-web-app
>
-
<
jsp-descriptor
>
-
<
jsp-param
>
-
<
param-name
>
pageCheckSeconds
</
param-name
>
-
<
param-value
>
0
</
param-value
>
-
</
jsp-param
>
-
<
jsp-param
>
-
<
param-name
>
encoding
</
param-name
>
-
<
param-value
>
UTF-8
</
param-value
>
-
</
jsp-param
>
-
</
jsp-descriptor
>
-
<
container-descriptor
>
-
<
prefer-web-inf-classes
>
true
</
prefer-web-inf-classes
>
-
</
container-descriptor
>
-
</
weblogic-web-app
>
<charset-params>
<input-charset>
<resource-path>/</resource-path>
<java-charset-name>GBK</java-charset-name>
</input-charset>
</charset-params>
<jsp-descriptor>
<jsp-param>
<param-name>compilerSupportsEncoding</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>