- This topic has 2 replies, 2 voices, and was last updated 18 years, 7 months ago by
Riyad Kalla.
-
AuthorPosts
-
Robin ClarkMemberThis is the template struts application that comes with the struts download. I am trying to determine how to import it into MyEclipse. What I did was to create a web project. Then I did a drag and drop from Windows Explorer into the Package Explorer.
I start my WebLogic 8.1 server and when I try to go to the web page I get this error message:
javax.servlet.jsp.JspException: Missing message for key “welcome.title” in bundle “(default bundle)” for locale en_US
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:230)
at jsp_servlet._pages.__welcome._jspService(__welcome.java:173) etc etcThere are no .tld files in the struts-blank-1.3.5.war file (which is what I think that it is complaining about). But when I place the war file in my WebLogic deployment directory it deploys the app just fine.
I am new to struts and to Eclipse. Any advice, threads, etc that you can point me towards regarding bringing existing web apps into MyEclipse would be greatly appreciated!
Robin ClarkMemberI added Struts Capability to the project and I copied the MessageResources.properties to the WEB-INF/classes directory (by running the included ant build). But adding the Struts Capability to the project seemed to add alot of extra things that I did not need.
My earlier problem was that the app was not perceiving the MessageResources.properties file. I do not know why. Any info would be appreciated!
Riyad KallaMemberThe reason for this is most likely that a WAR represents a binary-only application archive and MyEclipse will erase/clean the output dir (erasing the class and properties files) when it builds the project, so then when you go to deploy it again, you have no properties files and the struts application that is likely using message bundles to output the page title above, is failing.
-
AuthorPosts