velocity模板中使用struts标签,velocitystruts,大多数java爱好者在开
分享于 点击 37318 次 点评:25
velocity模板中使用struts标签,velocitystruts,大多数java爱好者在开
大多数java爱好者在开发项目时候都会使用一些模板框架! 但是当使用它们时候会出现一些相应的问题,.这里就说一下我也是刚刚了解到的velocity模板中使用struts标签
[Java]代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <center> #sform("action=Registerde" "method=post") #stextfield("name=user.username" "label=名字") #stextfield("name=user.password" "label=密码") #stextfield("name=userinfo.age" "label=年龄") 性别:<select name="userinfo.sex" id="userinfo.sex" style="width:140px;"> <option value="男">男</option> <option value="女">女</option> </select> #ssubmit() #end </center> </body></html>
用户点评