- This topic has 28 replies, 4 voices, and was last updated 18 years, 9 months ago by
ethomp01.
-
AuthorPosts
-
ethomp01MemberRiyad,
I sent you a better project example. I have two JSP, both of which compile with no problems. If I include one JSP inside of another, the validation (and code assist) no longer work in the “outer” JSP.
Renaming the inner JSP to .jspf does not help.
Thanks,
Rob
Riyad KallaMemberRob,
I got your project, thanks for doing that. I opened it up and saw exactly what you are describing. Then I tried to CTRL-Click the include link in the first TestJSP.jsp page and noticed there was no underline marking the reference… that is a red light in my head meaning MyEclipse cannot resolve the page locations correctly. So I checked the MyEclipse > Web project properties and sure enough, there is no WEbRoot dir set.So I created a brand new Web Project using the default wizard and copied your JSP pages into it, uncommented the problomatic lines, renamed the fragment to end in .jspf and viola, all the errors were marked. I also tried with just .jsp and the errors were still marked. So it seems there is something wonky with that other project setup, I’m not exactly sure what.
I don’t know if this helps though for your current project. Can you duplicate my steps on your end (or just use the project I sent you back?)
ethomp01MemberRiyad,
This is due to the way that the code is stored in our source control. Rather than “no web root,” the project was created to have the “WEB-INF” folder in the project root, thus the web root was “/”
I inserted a “dummy” directory in front of it, and that seems to have resolved the problem for the time being.
I was thinking that this might be the case after creating the last test project…thank you very much for all of your help, a working JSP editor will be a big help for me!
Thanks,
Rob
Riyad KallaMemberWhen you said “I indersted a dummy directory infront of it” what did you mean? Move the entire project down one more level into a fake dir like:
/ProjectRoot /Dummy /<rest of dirs>
?
ethomp01MemberYeah, it used to look something like
/Project Root /WEB-INF /jsp /...
And now it looks like:
/Project Root /Directory /WEB-INF /jsp /...
valkeusMemberThis is the layout I have currently in my project, which should be legal according the help files:
/Project Root /WEB-INF /jsppages
Looking in project properties, there are no web root marked at all while, if I read on right place, help files say that in case of no explicit web root, there should be “/”. I can’t recall exactly what I did when creating this project, but in all likelihood I had just left WebRoot-field empty. 🙄
If that is the case, and I understand that
"" != "/"
, I suggest writing some help text in Web project creation screen where it says that out because it seems that Web Root cannot be changed afterwards 🙁
So I tried Rob’s way, created new project and brought source there so that new projects layout is similar:
/Project Root /Web Root /WEB-INF /jsppages
Now code assist seems to work in all of the jsp-files, but of course there is lots of hassle and tweaking to change the project. Which is not all bad, streamlining is gooood for you 😀
//S of Valkeus
ethomp01MemberGlad to hear this worked out for you too. It may not be in the documentation, but at least it will be in the forum now for the next guy that comes along.
Riyad KallaMemberGuys I’m going to file this as a bug because you should have been able to keep the layout you had previously, MyEclipse should have just treated the root as the WebRoot. So I need to file three things:
1) I WebRoot is left empty, it should be created as “/”
2) The test projects you sent me where no errors were marked, should have marked errors correctly
3) Resolving location of files (CTRL-Hover-Click) should have resolved your include path from the project you sent me, but didn’t.I’m out of town right now and away from the test projects, please ping me by Monday if I haven’t replied to this thread stating that I filed those issues.
Todd PatrickMemberRiyad: Was this bug fixed in the 5.0 release?
Just checking before purchase…
Thank you,
–Todd
Riyad KallaMemberTodd,
No, unfortunately not.
ethomp01MemberRiyad,
I’ve noticed that the JSP editor still has problems for me. It can get slow (I’ve increased the amount of memory available to eclipse and begun monitoring the heap size), and still occasionally jumbles the text around after deleting text. I also ran into one case where I think it inserted some characters in the wrong order when it was in a “slow” state (but since I haven’t been able to reproduce it, it could very well have been my typing).
If the increased memory size doesn’t help out, I will post back.
Thanks,
Rob
ethomp01MemberRiyad,
This is still an issue, the editor definitely seems to get the text “out of order” at time, and also slows to a crawl somewhat frequently. Closing and opening the JSP editor seems to help, so unless you have a easy fix for me, I will probably just try to put up with it…sooner or later I have to get some work done with this tool.
Thanks,
Rob
Riyad KallaMemberRob,
This is really frustrating for us to hear. I have filed a request to investigate long run editing sessions with the JSP editor and see if we can uncover some corruption issues. In the mean time I don’t have any work around for you, I’m sorry.
ethomp01MemberOne other thing I’ve noticed is that the syntax highlighter doesn’t change the text between /* and */ to green. I don’t think I’ve changed anything in regards to the syntax highlighting in the preferences.
-
AuthorPosts