I want to add an attribute to struts ( ver: 1.3.5 ) <html:text/> tag. I m trying to extend "org.apache.struts.taglib.html.BaseFieldTag/"/ and after declaring variable and constructing accessors for it, i try to override "protected void prepareOtherAttributes()" / /method with proper "prepareAttribute()" method usage in it.

There is nothing more coded in my tag class. I have my custom tag classes in a different package. All TLD files and jar structure is ok. When i use my tag in a jsp with proper taglib prefix declaration and attributes i get the Exception " javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope". Additionally if i dont override any methods or add any attributes to my class extending BaseFieldTag it renders with no problems at all.

Any advice,solution,comment or idea is appreciated.

Desired tag usage and the rendered xhtml :

<xyz:text property="var" exAttrib="example"/> --(should be rendered as)--> <input type="text" name="var" exAttrib="example"/>

Thanks.

S.Onur SELAMET


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

Reply via email to