- This topic has 6 replies, 2 voices, and was last updated 19 years, 4 months ago by Brian Fernandes.
-
AuthorPosts
-
kkarankMemberHi ,
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
Brian FernandesModeratorkkarank,
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.
kkarankMemberHi 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.02Please advise.
kkarankMemberAnd 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”><struts-config>
<data-sources />
<form-beans />
<global-exceptions />
<global-forwards />
<action-mappings />
<message-resources parameter=”com.yourcompany.struts.ApplicationResources” />
</struts-config>
Brian FernandesModeratorkkrank,
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.
kkarankMemberHi 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
Brian FernandesModeratorkkarank,
Glad to hear it. Enjoy 🙂
Best,
Brian. -
AuthorPosts