Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Stefaan Huysentruyt

Greenhorn
+ Follow
since Dec 16, 2005
Stefaan likes ...
Mac OS X Eclipse IDE Java
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 Stefaan Huysentruyt

Tim-Ting Chang wrote:Original error output from netBean output window:

[code]Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.18
Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.18
Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.18\temp
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.18\conf\tomcat-users.xml.new (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
...
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



The user running Tomcat has no create nor write permissions to the conf, log and mayby work or temp directories.
9 years ago
You put an actionmessage on the request scope and forward it to your login page using a specific key, and without a redirect.
Then if your page sees there exists a message with that specific key, you show it.
[ December 17, 2005: Message edited by: Stefaan Huysentruyt ]
14 years ago
Just subclass both PropertyMessageResources and PropertyMessageResourceFactory. Name them something like ReloadablePropertyMessageResources and ReloadablePropertyMessageResourcesFactory and configure them like this:


The sources:

ReloadablePropertyMessageResources.java



ReloadablePropertyMessageResourcesFactory.java


Just put some statement like this in an Action:


and voil´┐Ż...
[ December 16, 2005: Message edited by: Stefaan Huysentruyt ]
14 years ago