facebook

Cannot edit MyEclipse-Struts Web Context Entry [Closed]

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

    Hello,

    I am using Eclipse 3.0 M6 and MyEclipse 3.7RC2

    I am unable to edit the Web Context entry for the myeclipse struts properties, it is set to /Web Root, i use /deploy. My struts wizards will not work. I can’t seem to find any properties file that it is pulling this from, i would like to know so i can change it.

    Thanks

    Cam

    #203975 Reply

    Went back to 2.1.2, same thing, you cannot edit the Web Context field, it is stuck at /Web Root.

    #203976 Reply

    Mac OS X 10.3, both 3.0 and 2.1.2 were clean intalls of Eclipse.

    #203985 Reply

    Riyad Kalla
    Member

    Cam, the web context can be changed by right clicking on the project’s root node, going down to “Properties” then selectin gthe “MyEclipse-web” node.

    #203991 Reply

    Right, I understand, and in the MyEclipse-Web, i have my web root set to /deploy, that works great. But in the MyEclipse-Struts, it is set to /WebRoot, which may or may not be ok, i guess the main problem is, when i right click in the outline view of the struts-config, and select “Add New Form” or “Add new anything”, the wizard window does not appear, nothing happens. I have another project in which the web root is /WebRoot, and everything is good, so i am presuming (perhaps incorrectly) that my web root being set to /deploy is the problem.

    This is a project checked out of cvs with this structure already set up, and a number of developers working on it who will not switch the structure to be /WebRoot just because my wizards arent working. There are a number of build scripts relying on it being /deploy also (i personally would have this in props file, but not my call). So, is there anyway to edit the web root in the MyEclipse-Struts properties gui? It will not let me edit that field. If not, then please direct me to wherever the config file i need to edit is. Thanks.

    #203993 Reply

    Riyad Kalla
    Member

    Cam,
    You have discovered a bug, I just reproduced it here on my end. What happens is just waht you said, the MyEclipse-web root folder was changed, but the MyEclipse-Struts didn’t pick it up, so the wizards all fail. The fastest way to fix this now is to recreate the project and setup the directories the same on teh first try.

    #203994 Reply

    Riyad Kalla
    Member

    Cam,
    Also you can adjust a new project’s default webroot by going to, Window>Preferences>MyEclipse>J2EE>Project Templates

    #204054 Reply

    Thanks, a clean install and setting up the project again from scratch worked.

    #204060 Reply

    Riyad Kalla
    Member

    I’m glad it worked, and thanks again for helping find this problem for us.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Cannot edit MyEclipse-Struts Web Context Entry [Closed]

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