How can you set devMode to dynamically load struts.xml file in Struts 2?

The constant element has a name attribute and a value attribute. The struts.devMode setting determines whether or not the Struts application is in development mode. By default, the value is false, meaning the application is not in development mode.

The following constant element sets struts.devMode to true.

<struts>
<constant name="struts.devMode" value="true"/>

...
</struts>


Once you set this attribute to true Struts will check the config file for every request. This will save lot of development time as you need not restart server for struts.xml changes.

Second way of setting this attribute is struts.properties file which can overrides the value of default.properties file as below.
struts.devMode = true

Third way to do it is as a init-param to filter tag in deployment descriptor (web.xml) file as shown below

<filter>
<filter-name>struts</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
    <init-param>
        <param-name>struts.devMode</param-name>
        <param-value>true</param-value>
    </init-param>
</filter>



 



struts 2 development mode settings, struts 2 dev mode, loading struts.xml dynamically, dynamic configuration file loading struts 2, developer mode configuration setting

218 Post Comment

«Oldest   ‹Older   201 – 218 of 218   Newer›   Newest»
Roz Music said...

موزیک

صور said...

صور
https://ultraswagbouquetanchorblog.tumblr.com

sana kiran said...

Dubai Escorts

Miriam Steve said...

I am very pleased to know that there is a way in which i can set devMode to dynamically load struts.xml file in Struts 2. This is very new to me, which makes this post very exceptional and professional. I do find your writing skills very professional too, its therefore my wish that many more of this posts shall be prevailed. You should get Ghost-Writing Services to enable you create more an inclusive content for your websites.

edirne demirdöküm servisi said...

Ben bu benim için çok önemli bilgiler arasında olduğunu düşünüyorum.
Ve makale okuyanlara sevindim. Ancak birkaç temel konularda açıklamada istiyorum,
web sitesi makaleleri gerçekten mükemmel, ideal, Mükemmel bir iş, alkış

Balvinder Singh said...

SSC CGL 2018

SSC CHSL 2017

SSC Constable Recruitment 2018

SSC JE 2017


SSC MTS 2017

SSC CGL Salary

obat pembesar penis aman said...

pembesar penis vimax

Obat Pembesar Penis KLG

Alat Bantu Sex Semarang

Unknown said...

vimax

KLG

Alat Bantu

forex said...

This is a very good article material and it is very useful for us all. thank you

Quang Đào Duy said...

Chung cư Green Pearl nằm trong quần thể Dự án Green Pearl tại số 378 Minh Khai, Vĩnh Tuy, Hai Bà Trưng, Hà Nội là một vị trí đắc địa thuộc cửa ngõ phía Nam của Thủ đô, tiếp giáp với đường Minh và KĐT times city. Căn hộ chung cư cao cấp Green Pearl sẽ mở ra không gian sống xanh, trong lành, KHÔNG ồn ào, KHÔNG khói bụi ngay trong lòng đô thị.
Chung cư Green Pearl

Pooja Rao said...

Tamil Nadu Ration Card Online
Puducherry Ration Card Online
Odisha Ration Card Online
Nagaland Ration Card Online
Punjab Ration Card Online
Mizoram Ration Card Online
Telangana Ration Card Online
Sikkim Ration Card Online

ana medo said...

شركة تنظيف بالدمام
شركة تنظيف بالاحساء

Quang Đào Duy said...

Chung cư Green Pearl nằm trong quần thể Dự án Green Pearl tại số 378 Minh Khai, Vĩnh Tuy, Hai Bà Trưng, Hà Nội là một vị trí đắc địa thuộc cửa ngõ phía Nam của Thủ đô, tiếp giáp với đường Minh và KĐT times city. Căn hộ chung cư cao cấp Green Pearl sẽ mở ra không gian sống xanh, trong lành, KHÔNG ồn ào, KHÔNG khói bụi ngay trong lòng đô thị.
Chung cư Green Pearl

Dubai Escorts said...

Dubai Escorts Me


Dubai Escorts


Dubai Escort


VIP Dubai Escorts


Dubai Escorts Girls


Dubai


Escorts Dubai


Indian Escorts in Dubai


Pakistani Escorts in Dubai


Escorts


Escort


Escorts in Dubai


South Escorts in Dubai


UAE Escort Girls


Dubai Escorts Call Girls


Call Girls in Dubai


Model in Dubai


Dubai Escort VIP


Dubai Girls


UAE Girls

Hail Haiil said...

thanks for this good article
آهنگ جدید

sana kiran said...

Dubai Escorts Me


Dubai Escorts


Dubai Escort


VIP Dubai Escorts


Dubai Escorts Girls


Dubai


Escorts Dubai


Indian Escorts in Dubai


Pakistani Escorts in Dubai


Escorts


Escort


Escorts in Dubai


South Escorts in Dubai


UAE Escort Girls


Dubai Escorts Call Girls


Call Girls in Dubai


Model in Dubai


Dubai Escort VIP


Dubai Girls


UAE Girls

Dubai Escorts

Dubai Escorts

Malaysia Escorts

Dubai Escorts

Dubai Escorts

Hsmef Hddg said...


شركة كشف تسربات المياه بالاحساء

Game Mahjong Master said...

Wonԁerful аrticle! We will be linking to this's a gгeat article on our site. Keеp up the great writing.

«Oldest ‹Older   201 – 218 of 218   Newer› Newest»

Post a Comment

Search Web......