BTW, the original problem is that you cannot nest tags inside the attributes of other tags. You probably could have written your orignial code like this as well: <bean:define id="abc"><bean:write name="userForm" property="userId"/></bean:define> <bean:write name="abc"/>