- This topic has 8 replies, 2 voices, and was last updated 20 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
Camron LevangerMemberHello,
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
Camron LevangerMemberWent back to 2.1.2, same thing, you cannot edit the Web Context field, it is stuck at /Web Root.
Camron LevangerMemberMac OS X 10.3, both 3.0 and 2.1.2 were clean intalls of Eclipse.
Riyad KallaMemberCam, 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.
Camron LevangerMemberRight, 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.
Riyad KallaMemberCam,
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.
Riyad KallaMemberCam,
Also you can adjust a new project’s default webroot by going to, Window>Preferences>MyEclipse>J2EE>Project Templates
Camron LevangerMemberThanks, a clean install and setting up the project again from scratch worked.
Riyad KallaMemberI’m glad it worked, and thanks again for helping find this problem for us.
-
AuthorPosts