Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » IBM contribution: JSP editor custom tag code assist
IBM contribution: JSP editor custom tag code assist [message #38476] Thu, 12 August 2004 16:25 Go to next message
Eclipse UserFriend
Originally posted by: marco.bucciarelli.edp-progetti.it

I installed the IBM contribution on eclipse 3.0 final both on WinXP and
Linux Fedora core 1.

I am not able to let the structured code editor find out the tags
contained in a custom tag library and help me with code assist. Is this
the normal behavior?
Typing < and Ctrl+space I get only html and standard jsp tags, and if I
insert a custom tag I get error: "IWAK0054E Unknown tag (html:html)" (for
example with the page provided).

I defined a WEB project with 2.3 servlet spec. (but the same with 2.2 or
2.4).
I created a simple JSP:

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html:html locale="true">

<head>
<title>Insert title here</title>
</head>
<body>

CIAO!

</body>
</html:html>

My web.xml file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp_ID">
<display-name>testweb1</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location >
</taglib>
</web-app>

The tld file is in WEB-INF directory.
If I run tomcat the page is correcly rendered (tld file is found).
Lomboz editor works with this file.

Am I missing something?

Thanks,
Marco.
Re: IBM contribution: JSP editor custom tag code assist [message #38543 is a reply to message #38476] Thu, 12 August 2004 20:39 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
No, you're not missing anything. Its just with that version of code the
"tld resolver" (that knows where to look for TLD's) is not correct. I
haven't tried it with struts, but with a minor test I tried,
I just made a copy of the TLD to put in the same folder as the JSP file.
Then the editor (and content asssit), can find it and all should be ok. Of
course, I'm not suggesting this for a long term solution, but just to see
if it allows you to get a little further in evaluating overall.
Re: IBM contribution: JSP editor custom tag code assist [message #38576 is a reply to message #38543] Fri, 13 August 2004 02:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: OharaSu.via.com.tw

Hi

Could you give me an example ?
I don't know how to put this file.
Could you explain how should I do and what is the directory structure ?
Thanks for your kindly answers.
That will be a great help for me.


Ohara

"David Williams" <david_williams@us.ibm.com> ???
news:opscmzojfkac05ss@news.eclipse.org ???...
>
> No, you're not missing anything. Its just with that version of code the
> "tld resolver" (that knows where to look for TLD's) is not correct. I
> haven't tried it with struts, but with a minor test I tried,
> I just made a copy of the TLD to put in the same folder as the JSP file.
> Then the editor (and content asssit), can find it and all should be ok. Of
> course, I'm not suggesting this for a long term solution, but just to see
> if it allows you to get a little further in evaluating overall.
Re: IBM contribution: JSP editor custom tag code assist [message #38639 is a reply to message #38576] Fri, 13 August 2004 04:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fikimiki4.gazeta.pl

OharaSu wrote:
> Hi
>
> Could you give me an example ?
> I don't know how to put this file.
> Could you explain how should I do and what is the directory structure ?
> Thanks for your kindly answers.
> That will be a great help for me.
>

you have to find .tld file for your custom tags and put it into
directory with jsp that you want to edit, then in all your jsp
change include directove to:

<%@taglib uri="some_name.tld" prefix="some_prefix" %>

Michal
Re: IBM contribution: JSP editor custom tag code assist [message #38681 is a reply to message #38543] Fri, 13 August 2004 07:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbuc.edp-progetti.it

Davis,
thanks for the reply. I followed your suggestion and now I am able to see
the code assist working.
I am currently using the lomboz editor, but one thing that is missing in
lomboz and is present in the structured editor (and in Intellij Idea) is the
ability to see where a tag is opened and closed, also for html tags. Perhaps
to someone this should seem not so important, but for me it is very usefull!

As a first impression, I can only make a lot compliments to both
contributions (ObjectWeb and IBM).

Bye,
Marco.


"David Williams" <david_williams@us.ibm.com> ha scritto nel messaggio
news:opscmzojfkac05ss@news.eclipse.org...
>
> No, you're not missing anything. Its just with that version of code the
> "tld resolver" (that knows where to look for TLD's) is not correct. I
> haven't tried it with struts, but with a minor test I tried,
> I just made a copy of the TLD to put in the same folder as the JSP file.
> Then the editor (and content asssit), can find it and all should be ok. Of
> course, I'm not suggesting this for a long term solution, but just to see
> if it allows you to get a little further in evaluating overall.
Re: IBM contribution: JSP editor custom tag code assist [message #38696 is a reply to message #38681] Fri, 13 August 2004 08:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbuc.edp-progetti.it

Would you like to know a fine workaround?
If you have in your jsps a reference to the tld like this:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

make a C:\WEB-INF\ directory on your PC and copy in there your tlds
(C:\WEB-INF\struts-html.tld). The same for linux: /WEB-INF/struts-html.tld.

So you do not have to change anything in web.xml nor in the jsp pages!

Bye,
Marco.


"marco" <mbuc@edp-progetti.it> ha scritto nel messaggio
news:cfhrgj$bcj$1@eclipse.org...
> Davis,
> thanks for the reply. I followed your suggestion and now I am able to see
> the code assist working.
> I am currently using the lomboz editor, but one thing that is missing in
> lomboz and is present in the structured editor (and in Intellij Idea) is
the
> ability to see where a tag is opened and closed, also for html tags.
Perhaps
> to someone this should seem not so important, but for me it is very
usefull!
>
> As a first impression, I can only make a lot compliments to both
> contributions (ObjectWeb and IBM).
>
> Bye,
> Marco.
>
>
> "David Williams" <david_williams@us.ibm.com> ha scritto nel messaggio
> news:opscmzojfkac05ss@news.eclipse.org...
> >
> > No, you're not missing anything. Its just with that version of code the
> > "tld resolver" (that knows where to look for TLD's) is not correct. I
> > haven't tried it with struts, but with a minor test I tried,
> > I just made a copy of the TLD to put in the same folder as the JSP file.
> > Then the editor (and content asssit), can find it and all should be ok.
Of
> > course, I'm not suggesting this for a long term solution, but just to
see
> > if it allows you to get a little further in evaluating overall.
>
>
Re: IBM contribution: JSP editor custom tag code assist [message #44902 is a reply to message #38543] Mon, 20 September 2004 05:20 Go to previous message
Greg Blomquist is currently offline Greg BlomquistFriend
Messages: 1
Registered: July 2009
Junior Member
Any new news on this? Any fixes available? Just checking.



"David Williams" <david_williams@us.ibm.com> wrote in message
news:opscmzojfkac05ss@news.eclipse.org...
>
> No, you're not missing anything. Its just with that version of code the
> "tld resolver" (that knows where to look for TLD's) is not correct. I
> haven't tried it with struts, but with a minor test I tried,
> I just made a copy of the TLD to put in the same folder as the JSP file.
> Then the editor (and content asssit), can find it and all should be ok. Of
> course, I'm not suggesting this for a long term solution, but just to see
> if it allows you to get a little further in evaluating overall.
Previous Topic:Connection pooling question
Next Topic:Where to download binaries of The Eclipse Web Tools Platform Project ??
Goto Forum:
  


Current Time: Thu Jun 13 15:31:55 GMT 2024

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

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

Back to the top