Non HTML JSPs [message #45035] |
Wed, 22 September 2004 14:56 |
Eclipse User |
|
|
|
Originally posted by: sindrit.vyre.com
I just installed the IBM contribution and I have had a few problems with
the JSP editor.
1. If I try to initiate code completion (Ctrl-space) all I get is a red
error message in the lower left corner of eclips saying:
"The public type Package must be defined in its own file"
2. The JSP editor assumes the JSP is delivering HTML code and gives
warnings to any tags not defined in HTML. Most of my JSPs generate XML
plain text and generally something else than HTML.
3. I also get warnings with custom taglibs but have seen that is a known
bug.
Is there a way to turn of HTML parsing of JSP files?
Thanks!
Sindri
PS. The JavaScript editor rocks!
|
|
|
|
Re: Non HTML JSPs [message #46153 is a reply to message #45135] |
Tue, 28 September 2004 14:30 |
Eclipse User |
|
|
|
Originally posted by: sindrit.vyre.com
David Williams wrote:
> >
> > Is there a way to turn of HTML parsing of JSP files?
> >
> Sort of. Some of what you are seeing is that HTML tags are expected
> since the JSP spec says the default contentType, if not specified in
> page directive, should be text/html .... so that's what we do.
Ok, thanks!
> You can use things like text/xml in the page directive and should not see
> the
> html warning.
> But, as far as parsing itself goes, we do assume the JSP is
> some form of "markup" i.e. can be conceived as a DOM. Does that still
> fit what you need, or is your content type something entirely different?
Usually either xml or csv (comma seperated values) I've done javascript
also, which should not be a problem now. For more complex types writing a
servlet is probably better anyway.
Just an idea, it would be nice to be able to be able to define parsers and
colors for different content types.
Thanks,
Sindri
|
|
|
Powered by
FUDForum. Page generated in 0.02629 seconds