Sudhir Howale

Greenhorn
+ Follow
since Aug 18, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sudhir Howale

Extending MessageResource in struts 1.2.9.
I have a requirement of fetching the content from DB instead of storing the name value pair in application.properties. I already have a working version of this feature which works with struts 1.0 but when I tried the same version with strus 1.2.9, the latest version, application doesnt read the extended MessageResource and MessageResourceFactory classes. In short I am not able to trigger the exteded MessageResource and MessageResoruceFactory class with Struts 1.2.9.

You can find working version of this feature, which works with Struts 1.0 and doest work with Struts 1.2.9 at http://www.samspublishing.com/articles/printerfriendly.asp?p=101174&rl=1


Sudhir
17 years ago

Originally posted by Arvind Shukla:
I think you need to check whether reloading is enabled or not and what is the reload interval (in the same file where you have enabled file serving).
BTW does it work if you restart the application server?


Hi Aravind,
Following are the content of the file, didnt see where is the setting which you speicfied...also I am not using WAS exactly, I am using test environment which comes along with WSAD to deploy my application....
<webappext:WebAppExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:webappext="webappext.xmi" xmlns:webapplication="webapplication.xmi" xmi:id="WebApp_ID_Ext" fileServingEnabled="true">
<webApp href="WEB-INF/web.xml#WebApp_ID"/>
<mimeFilters xmi:id="MimeFilter_1" target="CompressionFilter" type="text/forGZip"/>
</webappext:WebAppExtension>
Hope this info helps

Sudhir H
20 years ago
Hi All,
I am facing one problem of serving static content.
I am using WSAD as IDE for development. There is no Web Server into the picture, so whatever content comes, it has to come from application server
I did a setting in ibm-web-ext-xmi.xml as fileservingenabled=true.
To give you more idea, following is the dir structure which we are following
projname.war
|
|--jsp
|
|-web-inf
|
|-static
|
|---css
|---Images
In WSAD, when I copy entire content of static folder to Web Content folder in WSAD images are getting loaded, when I delete the same and try to load from static folders it is not getting reflected....
Can any body tell me, what extra setting needs to be done and at where?
With Regards,
Sudhir H
20 years ago
Hi!
Cant you set the response type depending on the validity of the URL. I mean to say, if you want to throw a normal HTML error page then you can not set the repsonse type as (application/msword).
I havent seen your code, but the flow should be
if(valid(URl) then { normal processing }
else ( set the response type as html and throw html error page }
Do write me , if i have misunderstood something...
Sudhir H
20 years ago