你说的我没看明白!
struts-config.xml文件里加这个了吗?
<action
attribute="actionForm"
input="/userLogin_error.jsp"
name="actionForm"
path="/UserLoginAction"
scope="request"
type="com.struts.UserLoginAction">
<forward name="success" path="/display.jsp" />
<forward name="failure" path="/failure.jsp" />
</action>
struts-config.xml文件里加这个了吗?
<action
attribute="actionForm"
input="/userLogin_error.jsp"
name="actionForm"
path="/UserLoginAction"
scope="request"
type="com.struts.UserLoginAction">
<forward name="success" path="/display.jsp" />
<forward name="failure" path="/failure.jsp" />
</action>
<html:form action="/organ" onsubmit="return validateOrganForm(this)"> 用户帐户 :<html:textproperty="membername"/><html:errorsproperty="membername"/</html:form>
<html:javascript formName="organForm"/>我是照上面写的,可以弹出对话框提示用户,我现在不想以对话框输出,就直接在文本框的后面输出提示信息,不知道怎么改.帮帮忙啊!!!!!!!
这样难道不可以吗?在errors的位置显示提示信息。
<FORM name="myForm" action="#" method="POST">
<input type="text" name="cityNameInputID" size="20">
<input type="button" value="发送" onclick="sendData()">
</FORM>
<div id="userIdMessage">
</div>
注意:
上面的带有id的div标签的主要作用是实现对显示的内容进行定位。