JSP Editor and custom defined tags [message #116651] |
Wed, 06 July 2005 09:48  |
Eclipse User |
|
|
|
Originally posted by: pera123.front.ru
It seems that JSP editor functionality is broken.
In previous milestone everything worked ok (Eclipse 3.1 M6 + WTP M4).
In present (Eclipse 3.1 + WTP 0.7 M5) following occurs:
I have small file (tags.jsp) that contains defeinitions of included tag
defeinitions (mostly struts, and custom ones). This files meant to be
included
(static) to all jsp in order to avoid multiple defeinitions.
When jsp (in which tags.jsp is included) is opened everything works ok.
When I edit it, it initially display code complete. But after that it
ignores
(until I close jsp and reopen it) tags.jsp and underline yellow all custom
(and struts) tags, and code completion does not offer content excep jsp
expression.
This happens on both Windows XP and Linux (Gentoo). It was worked before,
as I already said.
Any ideas?
|
|
|
|
Re: JSP Editor and custom defined tags [message #116850 is a reply to message #116803] |
Wed, 06 July 2005 12:32   |
Eclipse User |
|
|
|
Originally posted by: raro.zmail.sk
my problem:
eclipse 3.1, wtp- 1.0M5 or I20050706, struts 1.2.7
i am create project, setting WEB-INF/... struts lib and create jsp file
"index.jsp":
***
<%@ page buffer="32kb" contentType="text/html; charset=windows-1250"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<body>
<logic:notPresent name="test" scope="session">
not exists
</logic:notPresent>
</body>
</html>
***
and error:
"Updating JSP Index"
- IWAE0010E Run-time exception java.lang.NoClassDefFoundError occurred
during validation. The validator being run was JSP Syntax Validator and
the message thrown was javax/servlet/jsp/tagext/TagLibraryInfo.
[wtp-I20050624.zip has not this problem]
where is problem?
thanx
RaRo
David Williams wrote:
> On Wed, 06 Jul 2005 09:48:52 -0400, MilanTR <pera123@front.ru> wrote:
>
>> I have small file (tags.jsp) that contains defeinitions of included
>> tag defeinitions (mostly struts, and custom ones). This
>> files meant to be included (static) to all jsp in order to avoid
>> multiple defeinitions.
>> When jsp (in which tags.jsp is included) is opened everything works ok.
>> When I edit it, it initially display code complete. But after that it
>> ignores (until I close jsp and reopen it) tags.jsp and
>> underline yellow all custom (and struts) tags, and code completion
>> does not offer content excep jsp expression.
>>
>
>
> Please open a bug report, and if possible, include small samples of
> taglib and jsp's which demonstrate the problem.
> Well look into it.
|
|
|
Re: JSP Editor and custom defined tags - (also slow JSP editor) [message #118775 is a reply to message #116651] |
Fri, 08 July 2005 18:35   |
Eclipse User |
|
|
|
On Wed, 06 Jul 2005 13:48:52 +0000, MilanTR wrote:
> It seems that JSP editor functionality is broken.
> In previous milestone everything worked ok (Eclipse 3.1 M6 + WTP M4).
> In present (Eclipse 3.1 + WTP 0.7 M5) following occurs:
>
> I have small file (tags.jsp) that contains defeinitions of included tag
> defeinitions (mostly struts, and custom ones). This files meant to be
> included
> (static) to all jsp in order to avoid multiple defeinitions.
> When jsp (in which tags.jsp is included) is opened everything works ok.
> When I edit it, it initially display code complete. But after that it
> ignores
> (until I close jsp and reopen it) tags.jsp and underline yellow all custom
> (and struts) tags, and code completion does not offer content excep jsp
> expression.
>
> This happens on both Windows XP and Linux (Gentoo). It was worked before,
> as I already said.
>
> Any ideas?
I also have this problem with Struts taglibs, if their URIs are defined as
a local path (for example, "/tags/struts-html"). In this case, all the
uses of these tags are underlined in yellow.
I tried to set the taglibs as http URI
(e.g. "http://struts.apache.org/tags-struts") and they are no longer
underlined. I am not sure this is the cause, but after this change the
usage of the JSP is horrible since it is very slow. Sometimes, during the
edition, Eclipse starts using around 100% of CPU power, and I have to wait
a whole minute or more in order to resume editing the file.
Just to mention, this project is a standard Java one (not a web project)
and I am only using the JSP/HTML editors of Web Tools Platform. It is a
Eclipse 3.1 + WTP 0.7M5 on Linux.
Thanks in advance,
--
Rodrigo
|
|
|
|
|
Re: JSP Editor and custom defined tags [message #120860 is a reply to message #120783] |
Thu, 14 July 2005 12:48  |
Eclipse User |
|
|
|
Riccardo wrote:
> I have a related problem with struts taglib:
>
> The jsp editor can't resolve a variable returned by the taglib entry
>
> <logic:iterate name="tableForm" property="columnsForList" id="column"
> type="mypackage.TableColumnDefinition">
> <%if (column.isAttachment()){
> ...
>
> the column object is not resolved.
If you're seeing this with M5, please open a bug against the jst.jsp
component.
--
- Nitin
|
|
|
Powered by
FUDForum. Page generated in 0.24844 seconds