Hi, friends, In my jsp page, there is input like this: <input type="text" name="aName" value="<%= myBean.getMyProperty() %>" > I want to rewrite it with struts tag as following: <html:text property="aName" value="<bean:write name="myBean" property="myProperty" />" />. But the compiler always complains error. As long as I remove <bean:write> tag, it works. I am wondering can't I use one struts tag within another one? thanks. henry
Henry/Darryl: I haven't really used the nested tags but from what I can recall, they still wouldn't do what Henry wanted to do, which is to nest a tag as an attribute value. Henry, you'll either have to stick with a variation of the first form: <input type="text" name="aName" value="<bean:write name="myBean" property="myProperty" />"> or set the value of your form property before you display it. I prefer to do this type of initialization in code rather than in the JSP since default values are usually considered as "business rules".
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck