Correct... well thought! Struts-core jar includes the struts-tags.tld that
it generated. I created a new tld for my tags, and it worked fine!

Tks a lot!

-----Original Message-----
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 9 de Abril de 2007 17:35
To: Struts Users Mailing List
Subject: RE: Creating custom struts 2 tags

--- Telmo Costa <[EMAIL PROTECTED]> wrote:
> I also changed the annotation to 
> @StrutsTag(name="date2", tldTagClass="my.Date2Tag"
> ...). It compiled fine, but when I try to use it in
> a jsp, it throws "javax.servlet.ServletException:
> /pages/example/Format.jsp(42,2) No tag "date2" 
> defined in tag library imported with prefix
> "s"". I couldn't understand yet how the annotation 
> works, so can you tell me what is wrong?

I'm not sure how the annotation is being processed,
but I would imagine that (at least in the beginning)
define your own TLD for your own custom tags.

The annotation is (probably, anyway?) used to create
the S2 TLD file at build-time.

So you'd either need to duplicate that step, or just
create one manually.

d.



 
____________________________________________________________________________
________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to