What about weblogic. xml?

Source: Internet
Author: User

WebLogic Server allows you to configure the JSP Container by setting the WebLogic application extension Descriptor (weblogic. XML,
This file is usually located in the Web-INF directory of the Web application. Generally, you do not need to modify the Weblogic File for direct configuration,
Configure the file in the console and in deploments --> Web Application --> defaultwebapp.
You can configure different information in the development and production environments.
Main configuration information:
Compilersupportsencoding // true -- character set is supported.
Encoding // specify the default Character Set of the JSP file, such as gb2312;
Vervose // whether to output debugging information to the browser and log;
Keepgenerated // whether the. Java file generated by the compiled JSP file persists;
Page check seconds // positive value -- check whether the JSP file has been modified at the interval of seconds. If yes, recompile the file;
0 -- check JSP in each request;
-1 -- does not check JSP files.
Precompile // true -- all JSPs are automatically compiled when the WebLogic Server is started.
Debug enable // true -- whether debugging is allowed.

Weblogic. xml

<?
XML version = "1.0" encoding = "gb2312"?>

<!
Doctype Weblogic-web-app public "-// BEA Systems, Inc. // DTD web application 8.1 //" http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd ">

<
Weblogic-web-app>

<! --

Assign values to roles defined in Web. xml
For WebLogic 8.1 SP2 or earlier versions, security-role-assignment is not defined.
If it is SP3, you must manually add all principal (role or role group );
For details, see the pafa3 development and design guide document.
-->

<
Security-role-assignment>

<! --
The role-name must be the same as the value of Role-name under the security-role tag in Web. xml -->

<
Role-Name> pafademouser
</Role-name
>
<! --
Principal-name must be a role or role group defined in Um, not a user -->

<
Principal-Name> r_usermanager_rm_user
</Principal-name
>
<
Principal-Name> p_g_rmtest03_myopr
</Principal-name
>
<
Principal-Name> Administrators
</Principal-name
>
</
Security-role-assignment>


<
JSP-Descriptor>

<
JSP-param>
<
Param-Name> pagecheckseconds
</Param-name
>
<
Param-value> 1
</Param-value>

</
JSP-param>
<
JSP-param>
<
Param-Name> compilersupportsencoding
</Param-name
>
<
Param-value> true
</Param-Value
>
</
JSP-param>
<
JSP-param>
<
Param-Name> Encoding
</Param-name
>
<
Param-value> gb2312
</Param-Value
>
</
JSP-param>
<
JSP-param>
<
Param-Name> verbose
</Param-name
>
<
Param-value> true
</Param-Value
>
</
JSP-param>
<
JSP-param>
<
Param-Name> printnulls
</Param-name
>
<
Param-value> false
</Param-Value
>
</
JSP-param>
<
JSP-param>
<
Param-Name> keepgenerated
</Param-name
>
<
Param-value> true
</Param-Value
>
</
JSP-param>
</
JSP-Descriptor>

</
Weblogic-web-app>

1. For WebLogic. xml optimization, refer to this article:

Http://blog.csdn.net/cwb1128/article/details/4319303

 

2. weblogic. XML File Syntax:

Http://edocs.weblogicfans.net/wls/docs92/webapp/weblogic_xml.html

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.