facebook

JSP path incorrect in struts-config.xm from wizard

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

    Cameron Lauseng
    Participant

    When I use the wizard “Struts 1.2 Form, Action & JSP” to construct a new page with a form, the wizard defaults the path for the form be /forms/xxx.jsp, but I don’t want my jsp to be in a path under the /forms folder, so I change the path in the wizard to /xxx.jsp, to put the jsp in the root folder of the site. When I do this, the JSP is placed in the correct location, but the struts-config.xml generated still has the path as /forms/xxx.jsp and I have to manually correct it.

    #254075 Reply

    Scott Anderson
    Participant

    We’re looking into this internally and I’ll post a reply with what we find out.

    #254079 Reply

    support-jed
    Keymaster

    You are right, this IS frustrating. I have opened a problem report for it.

    As a workaround, you can follow these steps. I admit, these are only a little easier than editing the struts-config.xml. 🙂

    1. After you modify the New JSP Path field of the JSP tab of the first page of the editor select Next instead of Finish.
    2. In the Input Source field of the Form tab delete the “/form” from the front of the path.

    #254089 Reply

    Scott Anderson
    Participant

    I just checked bugzilla and this will be fixed in 5.0M2. Thanks for taking the time to report it and your patience while we fixed it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP path incorrect in struts-config.xm from wizard

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