You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/09/29 17:54:47 UTC

DO NOT REPLY [Bug 31468] New: - Wrong code in struts-blank example with struts1.2.4

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31468>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31468

Wrong code in struts-blank example with struts1.2.4

           Summary: Wrong code in struts-blank example with struts1.2.4
           Product: Struts
           Version: 1.2.4
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Example
        AssignedTo: dev@struts.apache.org
        ReportedBy: ap_singh1980@yahoo.com


Hello

I downloaded the struts 1.2.4 from location

http://mirrors.isc.org/pub/apache/struts/binaries/jakarta-struts-1.2.4.zip

I tried to run the struts-blank application in tomcat by just copying the war 
file in Tomcat and it worked fine.
Then i made a project and compiled the Java classes and it throws an 
exception. 

While investigating the bug, I found that 
in struts-config.xml,
we have entry of Message Resources as

<message-resources parameter="MessageResources" />

but in src folder, the resources file is kept at
src\java\resources\application.properties

and in classes folder The resources file is named as
classes\resources\MessageResources.properties

So when i was running the struts-blank application in tomcat by just copying 
the war file in Tomcat and it was working file... but when i compiled 
the 'src', it overwrite the MessageResources file by application.properties 
and it started giving error on Welcome.jsp page.

I think we should either modify the struts-config.xml file as
<message-resources parameter="resources.application" /> 

or 
1. change in src with application.properties being renamed as 
MessageResources.properties.
2. modify the struts-config.xml file as
<message-resources parameter="resources.MessageResources" /> 
===============================================================================

I want to participate in struts development and bug fixing.
Please let me know some of the assignments, incase possible as i have great 
interest in development of open-source projects.

Thanks
Amanpreet

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org