Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Non HTML JSPs
Non HTML JSPs [message #45035] Wed, 22 September 2004 14:56 Go to next message
Eclipse UserFriend
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 #45135 is a reply to message #45035] Fri, 24 September 2004 07:33 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 700
Registered: July 2009
Senior Member
>
> 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.

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?
Re: Non HTML JSPs [message #46153 is a reply to message #45135] Tue, 28 September 2004 14:30 Go to previous message
Eclipse UserFriend
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
Previous Topic:Use of Webtools w/Eclipse 3.0.1
Next Topic:Problem creating Dynamic Web Project: "Problems encountered while setting project description&q
Goto Forum:
  


Current Time: Tue Nov 25 23:44:32 GMT 2014

Powered by FUDForum. Page generated in 0.01889 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software