Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSP validator with scriptlet tag files
JSP validator with scriptlet tag files [message #212645] Sat, 19 April 2008 00:09 Go to next message
Ron McNulty is currently offline Ron McNultyFriend
Messages: 3
Registered: July 2009
Junior Member
I have a portlet project that has a number of custom tags residing in the
/WEB-INF/tags/mytags directory. The JSP editor understands them fully, and
knows what the attributes of each tag are. They are imported into JSPs with
a tagdir="WEB-INF/tags/mytags" import.

But now I am making them into a library, and shifting them to a separate JAR
file.
- The tags are now in the /META-INF/tags/mytags directory of the JAR, which
is where the taglib XSD tells me to put them.
- I can no longer import them with a tagdir="/META-INF/tags/mytags" import.

So I created a mytags.tld file and placed it in the library, and imported
them with a uri="http://mycompany/tags/mytags" import. This tld file has
<tag-file> entries for each tag. The application runs fine.

The JSP validator picks up the tags correctly (look-ahead works for tag
names), but does not recognize their attributes. The tld does not support
the <attribute> tag nested inside a <tag-file> statement.

Consequently my JSPs are full of "unknown attribute" warnings. Is this a bug
or am I missing something?

Regards

Ron
Re: JSP validator with scriptlet tag files [message #212693 is a reply to message #212645] Sun, 20 April 2008 21:28 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Ron McNulty wrote:
> I have a portlet project that has a number of custom tags residing in the
> /WEB-INF/tags/mytags directory. The JSP editor understands them fully, and
> knows what the attributes of each tag are. They are imported into JSPs with
> a tagdir="WEB-INF/tags/mytags" import.
>
> But now I am making them into a library, and shifting them to a separate JAR
> file.
> - The tags are now in the /META-INF/tags/mytags directory of the JAR, which
> is where the taglib XSD tells me to put them.
> - I can no longer import them with a tagdir="/META-INF/tags/mytags" import.
>
> So I created a mytags.tld file and placed it in the library, and imported
> them with a uri="http://mycompany/tags/mytags" import. This tld file has
> <tag-file> entries for each tag. The application runs fine.
>
> The JSP validator picks up the tags correctly (look-ahead works for tag
> names), but does not recognize their attributes. The tld does not support
> the <attribute> tag nested inside a <tag-file> statement.
>
> Consequently my JSPs are full of "unknown attribute" warnings. Is this a bug
> or am I missing something?

No, if it works on the server at runtime, it's supposed to work in
the IDE. Please open a bug report with these details, and if at all
possible, sample files to reproduce the problem.

---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSP validator with scriptlet tag files [message #213155 is a reply to message #212693] Thu, 01 May 2008 10:14 Go to previous message
Ron McNulty is currently offline Ron McNultyFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Nitin

I have submitted a bug along with a minimal project that illustrates the
problem. It occurs in standard J2EE apps as well as portlets. Bug number is
229760

Regards

Ron


"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:fugcme$3ol$1@build.eclipse.org...
> Ron McNulty wrote:
>> I have a portlet project that has a number of custom tags residing in the
>> /WEB-INF/tags/mytags directory. The JSP editor understands them fully,
>> and knows what the attributes of each tag are. They are imported into
>> JSPs with a tagdir="WEB-INF/tags/mytags" import.
>>
>> But now I am making them into a library, and shifting them to a separate
>> JAR file.
>> - The tags are now in the /META-INF/tags/mytags directory of the JAR,
>> which is where the taglib XSD tells me to put them.
>> - I can no longer import them with a tagdir="/META-INF/tags/mytags"
>> import.
>>
>> So I created a mytags.tld file and placed it in the library, and imported
>> them with a uri="http://mycompany/tags/mytags" import. This tld file has
>> <tag-file> entries for each tag. The application runs fine.
>>
>> The JSP validator picks up the tags correctly (look-ahead works for tag
>> names), but does not recognize their attributes. The tld does not support
>> the <attribute> tag nested inside a <tag-file> statement.
>>
>> Consequently my JSPs are full of "unknown attribute" warnings. Is this a
>> bug or am I missing something?
>
> No, if it works on the server at runtime, it's supposed to work in the
> IDE. Please open a bug report with these details, and if at all possible,
> sample files to reproduce the problem.
>
> ---
> Nitin Dahyabhai
> Eclipse WTP Source Editing
> IBM Rational
Previous Topic:WSDL Editor
Next Topic:WSDL Editor
Goto Forum:
  


Current Time: Sat Apr 27 01:47:20 GMT 2024

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

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

Back to the top