Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Adding custom script support to JSP Editor
Adding custom script support to JSP Editor [message #225530] Sun, 21 December 2008 15:21 Go to next message
Emmanuel is currently offline Emmanuel
Messages: 2
Registered: July 2009
Junior Member
Hi,

I've been looking to extend the WTP JSP editor to support a custom
scripting language located inside tags declared in a taglib.

A sample page looks like this :

========================= sample.jsp ==========================
<%@ taglib uri="/WEB-INF/lib/..." prefix="myprefix" %>
<%@ page import="..." %>

<myprefix:scene name="sample">
<%
//Java code here


%>

<myprefix:function name="fname" params="">

//custom language scripting
</prefix:function>

<myprefix:function name="fname" params="">

//custom language scripting
</prefix:function>

</myprefix:scene>
======================== /sample.jsp =========================

How to proceed to provide content-assist for the scripting inside the
<myprefix:function> element ?

Thanks.

Emmanuel.
Re: Adding custom script support to JSP Editor [message #225576 is a reply to message #225530] Mon, 22 December 2008 20:40 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2266
Registered: July 2009
Senior Member
Emmanuel wrote:
> I've been looking to extend the WTP JSP editor to support a custom
> scripting language located inside tags declared in a taglib.
>
> A sample page looks like this :
>
> ========================= sample.jsp ==========================
> <%@ taglib uri="/WEB-INF/lib/..." prefix="myprefix" %>
> <%@ page import="..." %>
>
> <myprefix:scene name="sample">
> <%
> //Java code here
>
>
> %>
>
> <myprefix:function name="fname" params="">
>
> //custom language scripting
> </prefix:function>
>
> <myprefix:function name="fname" params="">
>
> //custom language scripting
> </prefix:function>
>
> </myprefix:scene>
> ======================== /sample.jsp =========================
>
> How to proceed to provide content-assist for the scripting inside the
> <myprefix:function> element ?

Typically we've allowed content assist, and other features, to be
contributed according to the partition type at that location in the
document, but the JSP partitioner we use isn't written to vary the
partition type within custom tags. I assume this is with tags whose
content is identified as tagdependent? You should open a feature
request for allowing this, but how to consistently create the same
partition name when the taglib URI and prefix declaring the tag are
variable is a problem that would need to be solved.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Adding custom script support to JSP Editor [message #225584 is a reply to message #225576] Tue, 23 December 2008 09:58 Go to previous message
Emmanuel is currently offline Emmanuel
Messages: 2
Registered: July 2009
Junior Member
Thanks for your answer. I opened a feature request (#259550)
Previous Topic:SSL Connection timeout with Tomcat 5.5.x & 6.x started from Eclipse 3.4
Next Topic:Working with CSS Framework
Goto Forum:
  


Current Time: Wed Sep 17 01:31:16 GMT 2014

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

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