facebook

how to add forms, actions into struts-config-module.xml

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #204856 Reply

    jeffhoran
    Member

    after creating a module, open the struts.config.module.xml and use the outline view right click to add form, action. It installs the form and actions into the original struts-config.xml, not into the module. Is there something else i need to config? I’ve tried adding:
    <strutsConfig>/WEB-INF/modules/struts-config-module.xml</strutsConfig>

    to the .mystrutsdata file. Nothing. (aside: what is that file used for?)

    #204858

    nosrema
    Member

    When you right-click the outline view and add a form,action make sure that your struts-config-module.xml file is selected in the first field of the form,action wizard.

    Config/Module Path:/projectname/WebRoot/WEB-INF/struts-config-module.xml

    I believe the main struts-config.xml is in this field by default, so you must change it clicking the browse button and selecting your struts-config-module.xml file.

    #204863

    jeffhoran
    Member

    the struts-config-module.xml is the only file open. When the wizard opens, the first line: Module name: module is displayed. Yet any changes go into the file struts-config.xml. Is it a bug or user error?

    Also, what does myeclipse do with the .mystrutsdata file?

    Also, why is boudrants bug of the closing <body> tag still wrong? When the jsp is created he still incorrectly closes with <body>, not </body>.

    Also, when you create the jsp when using a module you need to precede the action path with the module name. action = “module/myjsp.do”

    Sorry, for ranting. I’ve just had a lot of problems trying to get your struts implementation to work for me.

    #204868

    Riyad Kalla
    Member

    Jeff,
    Can you post the information we ask for in the posting guidelines so we can run down your problem more effectively? A quick way to do this is to click Post Reply, then hit the Insert button.

    The reason I ask is because we were aware of this problem in the RC2 release, and I believe we fixed it in the GA release.

    #204877

    jeffhoran
    Member

    😳 I downloaded and installed. Things are looking better. However, the generated jsp file STILL has the closing <body> tag wrong. It is missing the slash.

    #204882

    Riyad Kalla
    Member

    Jeff,
    How are you creating your JSP pages? What wizard are you using? I’ve just run all 4 of our New->JSP wizards and all of them created valid HTML with closed body tags… can you explain what you are doing so I can reproduce it here?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: how to add forms, actions into struts-config-module.xml

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