facebook

JSP or web root issue

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

    bossfan2000
    Member

    Hey,

    I am having a problem that I cant quite figure out. Basically, when I open a jsp using ctrl-shift-r and make a change, the change doesnt seem to be made in my project directory. Obviously, cvs also doesnt detect the change. If i open the file in the package explorer, i dont see the change either. However, if i open the file first in the package explorer and make the change, then the change is reflected in my project directory correctly. So it appears that ctrl-shft-r opens a file from a different location then the package explorer (which is correct)..

    Does that explanation make any sense? I’m guessing i must have set up my project incorrectly somehow….

    here is my project structure
    ->projectroot
    –>src (java classes)
    –>web (directories containing jsp)
    –>webroot (a dir i created that is linked to tomcat5 for the web root for myeclipse..this causes an error when opening jsp’s, also. when i open a jsp from the package explorer it complains that the web dir is not in the web root)

    the src dir is part of the project source dir. At first i had /web as a source dir too, but then it put all my classes in the WEB_INF/classes dir, which i didnt want. So i removed the web dir from the source and build paths. Could it be that since i made that change after project creation, it has and old reference that hasnt been updated?

    Sorry about the long and confusing post. I cant seem to figure out what to do next.

    I have the debugging with tomcat 5 and all the other good stuff working correctly. I just cant figure out the goofy jsp issue.

    any help would be greatly appreciated…

    thanks,
    jeff

    #197616 Reply

    Scott Anderson
    Participant

    Ctrl+Shift+R

    This Open Resource key sequence is base Eclipse functionality. We don’t do anything to augment or change it. Additionally, I was unable to replicate your findings. What I would guess though is that you have multiple projects that contain resources with the same name. When you choose Ctrl+Shift+R, it’s opening the resource from another location than you expect it too.

    here is my project structure…

    Your JSP’s and all web content need to be contained somewhere within the webroot directory. Your web directory is outside it, thus causing the error.

    The easiest way to correct this is just to move the hierarchy under web into webroot and delete the now-empty web directory.

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP or web root issue

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