IBM contribution: JSP editor custom tag code assist [message #38476] |
Thu, 12 August 2004 12:25  |
Eclipse User |
|
|
|
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 #38681 is a reply to message #38543] |
Fri, 13 August 2004 03:46   |
Eclipse User |
|
|
|
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 04:26   |
Eclipse User |
|
|
|
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 01:20  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.06495 seconds