In websphere, after modifying the JSP page, refresh does not take effect. solution:

Source: Internet
Author: User
Tags xmi file

In websphere, after modifying the JSP page, refresh does not take effect. solution:

 

Every time the JSP file modified in WebSphere is refreshed on the front-end page, it still does not take effect, or the previous status is not changed. Even clearing the. Class file in the cache and refreshing it again does not respond. As a result, each time you delete the cache and restart Websphere to take effect, it is a headache.

 

Solution:

Open the WEB-INF file under/ibm-web-ext.xmi/, the original ibm-web-ext.xmi file content is as follows:

 

<? XML version = "1.0" encoding = "UTF-8"?>

<Webappext: webappextension XMI: version = "2.0" xmlns: XMI = "http://www.omg.org/XMI" xmlns: webappext = "webappext. XMI "xmlns: webapplication =" webapplication. XMI "XMI: Id =" webappextension_1 "reloadinterval =" 5 "reloadingenabled =" false "defaulterrorpage =" error. JSP "additionalclasspath =" "fileservingenabled =" false "directorybrowsingenabled =" false "enabled =" true "autorequestencoding =" true "autoresponseencoding =" false ">

<Webapp href = "WEB-INF/Web. xml # webapp_id"/>

<Jspattributes XMI: Id = "jspattribute_1" name = "reloadenabled" value = "true"/>

</Webappext: webappextension>

 

The red part is added, and the reloadenabled attribute is set to true. After the setting, you must restart Websphere to take effect.

 

Other configurable attributes include:

<Jspattributes XMI: Id = "jspattribute_1" name = "usethreadtagpool" value = "true"/>

<Jspattributes XMI: Id = "jspattribute_2" name = "disablejspruntimecompilation" value = "true"/>

<Jspattributes XMI: Id = "jspattribute_3" name = "usefullpackagenames" value = "true"/>

 

For specific attributes, refer to the IBM Website:

Http://publib.boulder.ibm.com/infocenter/wsdoc400/v6r0/index.jsp? Topic =/com.ibm.websphere.iseries.doc/INFO/AE/rweb_jspreloading.html

 

Related Article

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.