crazy error [message #151713] |
Tue, 13 December 2005 13:58  |
Eclipse User |
|
|
|
I have a set of about 20 jspx html pages in an app. *All* of them
contain the following in the head:
<base href="${pageContext.request.contextPath}"/>
Weirdly, on just *two* of these files, Eclipse (presumably WTP)
generates an error saying:
"The method getContextPath() is undefined for the type ServletRequest"
If I delete this line of the file, save the file, and put the line back,
then the complaint disappears -- until I do a complete rebuild of the
project. Then it's back...but always only for these two files.
All of the files in question -- the problem two and the others -- are
identical in things like this:
<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<jsp:directive.page contentType="text/html; charset=UTF-8"/>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<base href="${pageContext.request.contextPath}"/>
So I just don't understand what is going on, or how to get around this
problem.
|
|
|
|
|
Re: crazy error [message #151777 is a reply to message #151752] |
Tue, 13 December 2005 15:00  |
Eclipse User |
|
|
|
Noel Bush wrote:
> Yes, this is a pretty undesirable workaround. Here's my vote for
> regarding this as a bug.....
Please register your email, add yourself to the CC and vote on the bug
in buzilla.
It might be nice to have finer grain control over JSP validation, its a
bit of an all-on-one at the moment:
* Markup valiation (HTML, XHTML, WML, whatever)
* Java code validation
* JSP tag validation <jsp:xyz ...>
* JSP EL validation
* JSP TAGLIB validation
I'm just thinking from a WTP perspective it might be difficult or
problematic expect everything to work for everyone in every situation
(even if that is the goal).
Darryl
|
|
|
Powered by
FUDForum. Page generated in 0.03539 seconds