Hi Lai:

I readed some source code of Struts2, and realized that

the property [theme] is defined in class [org.apache.struts2.components.UIBean]
but not in class [org.apache.struts2.components.Component].

So i think if you want to render something with your tag, and
appoint the theme by the attribute [theme], maybe you should
extend your tag class from [UIBean] instead of [Component].

Which means, your class should like:

public class Hello extends UIBean {
...
...
}



2010/10/9 Li Ying <liying.cn.2...@gmail.com>:
> Hi Lai:
>
> The error message looks like the value of the attribute [theme] (in
> your jsp) is invalid.
>
> Can you show us your jsp and TLD file?
>
>
>
> 2010/10/9 Mead Lai <laiqi...@gmail.com>:
>> I read the attribute "name" in the template, the Exception log:
>>
>> Attribute theme invalid for tag hello according to TLD
>>        
>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
>>        
>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>>        
>> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
>>        
>> org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1235)
>>
>>
>>
>> Regards,
>> Mead
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to