facebook

problem with struts editor [Closed]

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

    kkarank
    Member

    Hi ,

    I am trying to create a simple struts application ( as outlined in the BasicAction struts demo ) but i am not able to open the struts-congig.xml with the struts editor…it just opens up a blank page.I am however able to open it up with the MyEclipse browser…

    where could i be going wrong ..

    cheers

    #234680 Reply

    Brian Fernandes
    Moderator

    kkarank,

    What do you mean by “blank page”? Do you get a multi-page editor with 2 pages, Design and Source? The Design page will be initially empty, the Source page should contain some XML.

    Can you open the file with our XML Editor – (right click > Open With > MyEclipse XML Editor) and see if it contains any XML code?

    Please state your MyEclipse, Eclipse and JDK versions and paste ay errors you might see in the log, that’ll help us with your issue.

    Best,
    Brian.

    #234681 Reply

    kkarank
    Member

    Hi Brian,

    No i do not get the two pages for Design and source .When i try to open up the file with Struts editor it just says ‘An error has occured , see error log for more details’

    The first time i tried to open the struts-config.xml file after installing the workbench , i got a message ‘Unable to create editor,no editor found with id = … name=struts-config.xml’
    ( sorry i cannt remember the exact message )

    I am using
    MyEclipse 4.0
    Eclipse 3.1 M6
    JDK 1.4.02

    Please advise.

    #234682 Reply

    kkarank
    Member

    And yes – i am able to open the file with the XML editor – here is the content

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE struts-config PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.1//EN” “http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”&gt;

    <struts-config>
    <data-sources />
    <form-beans />
    <global-exceptions />
    <global-forwards />
    <action-mappings />
    <message-resources parameter=”com.yourcompany.struts.ApplicationResources” />
    </struts-config>

    #234683 Reply

    Brian Fernandes
    Moderator

    kkrank,

    I would strongly advise you to move to using Eclipse 3.1 Final instead of M6 which you are using now.

    This could very likely be a problem caused because you’re using a milestone build of Eclipse. If you still see the problem after installing ME with Eclipse 3.1, please paste the stack traces from your Error log here.

    Best,
    Brian.

    #234713 Reply

    kkarank
    Member

    Hi Brian,

    Yes the problem was that I was using a milestone version of Eclipse . I have now installed 3.1 and the problem has gone.

    Cheers
    kkarank

    #234717 Reply

    Brian Fernandes
    Moderator

    kkarank,

    Glad to hear it. Enjoy 🙂

    Best,
    Brian.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: problem with struts editor [Closed]

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