Jun 15th, 2007, 01:07 PM
BindTag within a custom tag
Is it possible to use the Spring BindTag within my own implemented tag? I have implemented a custom tag to be used within my JSP. Now I want to surround some form fields with Spring's BindTag but I don't now haow I can do this within my custom tag. If I simply write "<spring:bind path="bla.bla"> to the JspWriter, this String is written into the JSP as is but it is not evaluated as it would be if I wrote this string manually into A JSP.
My custom tag shall display a table of form fields and each cell shall be mapped to an certain object's attribute. Thus, I want to use the spring BindTag. My custom tag generates some HTML output and now the question is how to include "<spring:bind path="bla.bla">...</spring:bind> into this output being evaluated (and not stupidly being printed out i the JSP without any usage)..
Do I have to use Spring's BindTag or do I have to use another tag class? In which method (doStartTag, doAfterBody, ...) do I need to implement it?
Last edited by du-it; Jun 18th, 2007 at 11:16 AM.