我这样写 <html:form action= "/mod.do?id= <bean:write name= "stu " property= "id " /> ">
会报错:equal symbol expected
把 <bean:write name= "stu " property= "id " /> 单独写出来,就可以显示好好的
------解决方案--------------------
struts的tag不支持这种嵌套写法:
<html:form action= "/mod.do?id= <bean:write name=\ "stu\ " property=\ "id\ " /> ">
这样写只会把 " <bean:write name=\ "stu\ " property=\ "id\ " /> "整体做为一个字符串来处理,而不会作为tag来输出stu.id的值
------解决方案--------------------
标签不可以嵌套的
<bean:define id= "iid " name= "stu " property= "id " type= "java.lang.String " />
<html:form action= "/mod.do?id= <%=iid%> ">