- This topic has 6 replies, 4 voices, and was last updated 20 years ago by Geodin.
-
AuthorPosts
-
davewoodMemberI’m trying out MyEclipse (and Eclipse) for the first time…setting up a simple prototype. I placed my first JSP in /web/WEB-INF/jsp/index.jsp and went nuts trying to figure out why my JSF tags were showing as unknown tags.
Finally, I tried copying my index.jsp to /web. It worked in that location. I tried copying it to /web/WEB-INF and that worked too. But when I put it in /web/WEB-INF/jsp, it suddenly can’t fine the TLD (presumably) for some reason.
…additional detail: I have the JSF TLDs sittiing in /web/WEB-INF; I tried this with and without the <jsp-config> stuff in my web.xml file; I’m using the MyEclipse JSF template, so my imports look like this:
<%@ taglib uri=”http://java.sun.com/jsf/html” prefix=”h” %>
<%@ taglib uri=”http://java.sun.com/jsf/core” prefix=”f” %>Seems like a bug. ?
Thanks.
But why do you want to even place the jsp in that directory? Why can’t you just put it in /web/jsp?
Riyad KallaMembergnwau,
This is a typical practice to ‘protect’ JSP pages from direct access, since nothing can be directly accessed with a browser that’s under WEB-INF.davewood,
Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
davewoodMemberFirst, gnwau, rkalla’s response is consistent with my reasoning. I’m actually surprised that putting your jsp pages in WEB-INF isn’t more commonly preached than it is. Leaving them out for all the world to see seems a bit like making internal methods public. When you’re running an application through a controller, you don’t generally want people typing specific JSP pages into their browser…they may be side-stepping things that you want your servlet to be doing before redirecting to the JSP.
As for my original problem, it seems to have vanished. I copied my files back into WEB-INF/jsp and now they seem to be just fine. There was definitely SOMETHING going on yesterday. I copied the same file to the 3 locations and definitely observered different behavior (as originally described).
In case you want to try to investigate this further, I’ll go ahead and include the env. details here (even though I apparently no longer need a fix).
The details:
What operating system and version are you running?
Win 2K
What Eclipse version and build id are you using? (Help > About Eclipse Platform)
3.0.1
– Was Eclipse freshly installed for MyEclipse?
Yes. I had used it for maybe a day before installing MyEclipse.
– If not, was it upgraded to its current version using the update manager?
N/A
– Are any other external plugins installed?
Perforce
– How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
8
What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
3.8.2
What JDK version are you using to run Eclipse? (java -version)
1.4.2_06
What JDK version are you using to launch your application server?
Same (but N/A since we’re not getting that far)
What steps did you take that resulted in the issue?
See original message.
What application server are you using?
JBoss (again, this is N/A)
Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
Don’t think so.
Riyad KallaMemberThank you for the detail, the only difference between your setup and my own is the Perforce plugin… were these files under source control when you were moving them?
davewoodMember@support-rkalla wrote:
Thank you for the detail, the only difference between your setup and my own is the Perforce plugin… were these files under source control when you were moving them?
No. In fact, I had installed the Perforce plugin, but had not used it at all.
Like I said, the problem seems to have just “gone away” so it may be a tricky one to track down.
GeodinMemberHope this helps. I too struggled with this for sometime and found that by simply making a small change to the jsp files with the error markers, like adding a space then deleting it, and saving the file the errors resolved mysteriously. Tried closing eclipse and reoping but that didn’t help, so I went thru the files, making them writable, opening them, editing, and saving, etc. Everything seems fine now but what a pain especially since I have several projects. 😉
FYI, this does not dimish my appreciation for ME.
ME: 3.8.2
win2k
eclipse 3.0.1 -
AuthorPosts