用image标签它是不会提交数据的
解决方案 »
- JAVA 远程下载文件(xhtml,jsp)问题;
- webservice 在线等
- 求1 HQL语句
- 我的apache在外网访问不了?
- 严重: Catalina.stop: java.net.ConnectException: Connection refused 请问这个问题怎么解决?
- 请问谁有关STRUTS 方面的内容?
- Cookie与Session有什么区别?有什么地方相同?
- 我的消息驱动bean怎么也连不上消息队列,怎么回事啊,在线等...
- 使用xdoclet生成ejb时,remoteinterface总是不能生成,哪位能提供一个简单例子,在线等待
- 解决了此问题才算是高手!!!(高分结贴)
- 用STRUTS上传文件,如何限制大小?
- 初学hibernate碰到...........
onclick="buttonAction='register';submit()"
加submit()不過你的buttonAction='register'?
這樣你也可以賦值?
因該是 buttonAction.value = 'register'onclick="buttonAction.value'register';submit()"
這樣應該可以了吧~不行的話別扔雞蛋,青菜!不要浪費糧食嘛!
难道使用Struts就不能使用ImageButton么
Renders an HTML <input> element of type button, populated from the specified value or the content of this tag body. This tag is only valid when nested inside a form tag body. If a graphical button is needed (a button with an image), then the image tag is more appropriate
上面是struts 1.2.7的User and Developer Guides,看样子就是用image实现了,自己在onclick里submit吧
<html:image value="register" property="buttonAction" src="images/register.png" onclick="buttonAction='register';submit();"/>在Action中取得的buttonAction=null
再次求助!
http://www.blogjava.net/deng947/archive/2006/04/14/41139.html