formbean怎么和jsp页面上的匹配起来? 转向问题应该是由struct-config.xml这个文件来控制呢吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼上的:我不是转向问题,我是在jsp上得不到从action传过来的值! 是不是在struts-config.xml里面的该action配置成redirect=true了? <html:text property="addzone" maxlength="9" />只要你的formbean和这个页面对应。addzone为formbean中的属性。struts自动把text赴值 cyz99(小哲) :都是设成false的 javaGirlOrBoy(javaGirl)我的addzone就是个formbean,里面有name,type,location。我现在是这么写的,能看下错误在哪里吗?<html:form action="/EditZoneAction" name="addzone" type="AddZoneForm"> Zone Type : <html:select property="type"> <html:option value="1">Web Zone</html:option> <html:option value="2">Meeting Zone</html:option> </html:select><html:errors property="type"/></br> Zone Name : <html:text property="name"/><html:errors property="name"/></br> Location : <html:text property="location"/><html:errors property="location"/></br> <html:submit/><html:cancel/> </html:form> <html:text name="addzone" property="location"/>这样应该就可以了 解决了,马上送分!!非常感谢 loverface(双面人) apache的HttpClient4.x如何实现跨域访问 javax包问题 JSP不能正常运行了! 急,java操作excel,中文出现乱码,大哥门救救我 什么叫无效的描述符索引 页面跳转的问题 急问:mysql出现的问题 struts2中的数组类型转换问题 Resin.conf中的<session-max>指的是什么? 你想要啊?想要你就说嘛!(100) 关闭数据库问题 mysql导入到sqlserver
我现在是这么写的,能看下错误在哪里吗?
<html:form action="/EditZoneAction" name="addzone" type="AddZoneForm">
Zone Type : <html:select property="type">
<html:option value="1">Web Zone</html:option>
<html:option value="2">Meeting Zone</html:option>
</html:select><html:errors property="type"/></br>
Zone Name : <html:text property="name"/><html:errors property="name"/></br>
Location : <html:text property="location"/><html:errors property="location"/></br>
<html:submit/><html:cancel/>
</html:form>
这样应该就可以了