facebook

[Closed] how to "import" struts-blank

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #259389 Reply

    Robin Clark
    Member

    This 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 etc

    There 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!

    #259395 Reply

    Robin Clark
    Member

    I 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!

    #259729 Reply

    Riyad Kalla
    Member

    The 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.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] how to "import" struts-blank

You must be logged in to post in the forum log in