Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » ibm contrib - jsp document editor (xml-syntax)
ibm contrib - jsp document editor (xml-syntax) [message #33599] Wed, 28 July 2004 02:19 Go to next message
Eclipse UserFriend
is it possible to use the jsp-editor of the ibm-contribution with a
jsp-document (xml-syntax)?
is support of this kind of jsp planned?

TIA
martin
Re: ibm contrib - jsp document editor (xml-syntax) [message #33734 is a reply to message #33599] Wed, 28 July 2004 04:00 Go to previous messageGo to next message
Eclipse UserFriend
On Wed, 28 Jul 2004 06:19:06 +0000 (UTC), martin <martin.kuhn@gmx.at>
wrote:

> is it possible to use the jsp-editor of the ibm-contribution with a
> jsp-document (xml-syntax)?
> is support of this kind of jsp planned?
>
> TIA
> martin
>

It should basically handle it now, as is, but in trying it before I
responsed to you, noticed there's lots of bugs associated with it. Its not
something we test much. That's part of the exercise we're going through
.... find out what features people need or want most, etc.

I'll resist saying anyting on when exactly planned, but confirm we have
every intent to (continue) to support that style ... it is after all, part
of the JSP Spec!

Thanks
Re: ibm contrib - jsp document editor (xml-syntax) [message #34206 is a reply to message #33734] Thu, 29 July 2004 03:26 Go to previous messageGo to next message
Eclipse UserFriend
My jsp documents has an extension "jspx".
Now it seems that the jsp documents are treated as xml. What I have to do
that the documents treated as jsp content.


David Williams wrote:

> On Wed, 28 Jul 2004 06:19:06 +0000 (UTC), martin <martin.kuhn@gmx.at>
> wrote:

> > is it possible to use the jsp-editor of the ibm-contribution with a
> > jsp-document (xml-syntax)?
> > is support of this kind of jsp planned?
> >
> > TIA
> > martin
> >

> It should basically handle it now, as is, but in trying it before I
> responsed to you, noticed there's lots of bugs associated with it. Its not
> something we test much. That's part of the exercise we're going through
> .... find out what features people need or want most, etc.

> I'll resist saying anyting on when exactly planned, but confirm we have
> every intent to (continue) to support that style ... it is after all, part
> of the JSP Spec!

> Thanks
Re: ibm contrib - jsp document editor (xml-syntax) [message #35896 is a reply to message #34206] Sun, 01 August 2004 23:45 Go to previous messageGo to next message
Eclipse UserFriend
On Thu, 29 Jul 2004 07:26:53 +0000 (UTC), martin <martin.kuhn@gmx.at>
wrote:

> My jsp documents has an extension "jspx".
> Now it seems that the jsp documents are treated as xml. What I have to do
> that the documents treated as jsp content.
>

There's no way to change this though current user interface. And, if you
really like hacking around,
you could change plugin extensions for JSP content type, and even "JSP
Editor", but that won't
"fix" the problem everywhere. One item we have to do for future code is
carry the Eclipse base 'contentType'
for JSP through out more code (e.g. validation, launching, and debugging).

BUT, I'd be interested to understand better why you needed to change file
extension. What was it you were expecting that didn't happen with regular
..jsp extension, but XML syntax used? JSP editor, on a .jsp file, should
detect that the file is in XML syntax if file begins with <?xml and if the
file contains jsp:root tag. Granted, there's bugs, but I'm wondering what
"features of XML" you were looking for that you weren't getting?

Thanks.
Re: ibm contrib - jsp document editor (xml-syntax) [message #36637 is a reply to message #35896] Wed, 04 August 2004 02:46 Go to previous messageGo to next message
Eclipse UserFriend
David Williams wrote:

> On Thu, 29 Jul 2004 07:26:53 +0000 (UTC), martin <martin.kuhn@gmx.at>
> wrote:

> > My jsp documents has an extension "jspx".
> > Now it seems that the jsp documents are treated as xml. What I have to do
> > that the documents treated as jsp content.
> >

> There's no way to change this though current user interface. And, if you
> really like hacking around,
> you could change plugin extensions for JSP content type, and even "JSP
> Editor", but that won't
> "fix" the problem everywhere. One item we have to do for future code is
> carry the Eclipse base 'contentType'
> for JSP through out more code (e.g. validation, launching, and debugging).

> BUT, I'd be interested to understand better why you needed to change file
> extension. What was it you were expecting that didn't happen with regular
> ..jsp extension, but XML syntax used? JSP editor, on a .jsp file, should
> detect that the file is in XML syntax if file begins with <?xml and if the
> file contains jsp:root tag. Granted, there's bugs, but I'm wondering what
> "features of XML" you were looking for that you weren't getting?

> Thanks.

According to the JSP Specification Version 2.0:
"JSP documents, that is, JSP pages that are delivered as XML documents, use
the extension .jspx by default."
So I named my documents with extension jspx. I have no other reason.


When I use jsp documents it would really nice to use an editor which knows
about the jsp taglibs I defined in my document and provide help to me
(provide code assist and so on). In my opinion a "plain" xml editor does
not know about taglibs for instance. So I can not see where the magic
should happen.
Re: ibm contrib - jsp document editor (xml-syntax) [message #36739 is a reply to message #36637] Wed, 04 August 2004 03:23 Go to previous messageGo to next message
Eclipse UserFriend
>
> When I use jsp documents it would really nice to use an editor which
> knows
> about the jsp taglibs I defined in my document and provide help to me
> (provide code assist and so on). In my opinion a "plain" xml editor does
> not know about taglibs for instance. So I can not see where the magic
> should happen.
>

Thanks Martin, I have a feeling we're not communicating well, if you
thought I was suggesting you use an xml editor.

As I mentioned, before any future formal release or milestone, if you are
the type that doesn't mind editing plugin.xml files, you can add your jspx
extension to the contentType defined in sse.model.jsp plugin.xml file (no
spaces), and to the editor defintion in sse.editor.jsp (spaces ok). That
should get the JSP editor working as you expected. Previously, I was
trying to say the should not *require* the jspx extension, if the file
was already in xml-syntax form. But if you do the plugin.xml editing, then
jspx should work too. I'm still curious, just from a "better understanding
users goals" point of view, why you wanted your jsp in xml syntax form
(and don't get me wrong, I think its great ... just wanted to understand
"use and requirements" better).
Re: ibm contrib - jsp document editor (xml-syntax) [message #36875 is a reply to message #36739] Wed, 04 August 2004 08:17 Go to previous message
Eclipse UserFriend
David Williams wrote:

> >
> > When I use jsp documents it would really nice to use an editor which
> > knows
> > about the jsp taglibs I defined in my document and provide help to me
> > (provide code assist and so on). In my opinion a "plain" xml editor does
> > not know about taglibs for instance. So I can not see where the magic
> > should happen.
> >

> Thanks Martin, I have a feeling we're not communicating well, if you
> thought I was suggesting you use an xml editor.

> As I mentioned, before any future formal release or milestone, if you are
> the type that doesn't mind editing plugin.xml files, you can add your jspx
> extension to the contentType defined in sse.model.jsp plugin.xml file (no
> spaces), and to the editor defintion in sse.editor.jsp (spaces ok). That
> should get the JSP editor working as you expected. Previously, I was
> trying to say the should not *require* the jspx extension, if the file
> was already in xml-syntax form. But if you do the plugin.xml editing, then
> jspx should work too. I'm still curious, just from a "better understanding
> users goals" point of view, why you wanted your jsp in xml syntax form
> (and don't get me wrong, I think its great ... just wanted to understand
> "use and requirements" better).

Why I write my jsp-files in xml syntax? Good question! I had the
requirement to generate some jsp-files. So I thougt it is easier to use
xml because there are many tools out there to produce xml in an easy way
(e.g. JDOM...).

Also I don't like the jsp-syntax. I mean it is more clear to write my jsp
in well-formed xml (and it's more aesthetical for me)
But, I regret it many times to do it in this way. There are no tools out
there to support jsp-documents and most of the documentation is for
old-style.
So I think about to switch to the "old-style" jsp syntax.

Furthermore I'm not a profi in writing web applications (mainly I did
swing programming last 3 years). There are things that I can not solve in
an jsp-document but in (good) old jsp-syntax this is no problem (at least
for me).
Previous Topic:Anyone have the correct download URLs for the initial contributions?
Next Topic:HTML/JSP Validation Error Markers
Goto Forum:
  


Current Time: Wed Jul 09 09:22:57 EDT 2025

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

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

Back to the top