Eclipse WTP plugins

Fixing Eclipse JSP Parsing: part 1

What is fixed

The first thing I'll fix is the erroneous quoting of constructs like:

<navi:form method="hello \"world\"">

This is a properly escaped invocation of a JSP taglib, and it gets mistreated in the JSPTokenizer. It treats tag attribute values of JSP tags the same as attribute values of html (template text) values. So the fix is to remedy that.

First we have to distinguish between JSP tags and non-JSP tags. This must be done at lexing time because the behaviour of the lexer changes wrt the type. For now I just added a variable, boolean fInJspTag to the lexer. When a tag name is found the lexer checks to see if it is a prefixed name (contains a ':') and if so sets this variable.

Syndicate content