在例子的jsp中有<html:form action="/logon" focus="username"
onsubmit="return validateLogonForm(this);">这个是什么意思呢?是不是调用action类呢,可以给解释一下么
onsubmit="return validateLogonForm(this);">这个是什么意思呢?是不是调用action类呢,可以给解释一下么
解决方案 »
- 利用spring进行数据库操作
- java 调用 webservice 实现天气预报
- 我做的网站在IE 7.0和火狐下显示正常,但是在IE 6.0下却不正常
- 注册数据无法写入数据库,但没有出现异常
- 请教HttpSessionListener和HttpSessionBindingListener的区别
- JSP与JavaBean之间的衔接问题
- 服务占用cpu资源的问题?高手过来看看
- JSP页面用户输入的信息保存问题???高分求助!!!
- 急!
- 请教一个过滤器引起的 Resource interpreted as Stylesheet but transferred with MIME 问题
- 能这样用吗 ?
- 取中文字符问题
的意思是当电击form提交信息时候调用validatelogonform这个javascript函数或者vbscript函数。focus这个。我也不知道什么意思。
<html:form action="index.jsp" focus="username">
focus是设置焦点在name="username"这个控件上。
focus是你这个form一开始打开时的焦点~一开始打开时光标就停留在名为"username"的文本输入框~
<html:form action="/logon">
是否就是 当访问jsp页面时调用动作/logon呢?
To: troopers(骑兵)
"电击form"是什么意思?
你说的"点击它"是什么意思呢,点击什么?
我想知道的是“<html:form”是做什么的。<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><html:html locale="true">
<head>
<title><bean:message key="logon.title"/></title>
<html:base/>
</head>
<body bgcolor="white"><html:errors/><html:form action="/logon" focus="username"
onsubmit="return validateLogonForm(this);">
<table border="0" width="100%"> <tr>
<th align="right">
<bean:message key="prompt.username"/>:
</th>
<td align="left">
<html:text property="username" size="16" maxlength="18"/>
</td>
</tr> <tr>
<th align="right">
<bean:message key="prompt.password" bundle="alternate"/>:
</th>
<td align="left">
<html:password property="password" size="16" maxlength="18"
redisplay="false"/>
</td>
</tr> <tr>
<td align="right">
<html:submit value="Submit"/>
</td>
<td align="left">
<html:reset/>
</td>
</tr></table></html:form><html:javascript formName="logonForm"
dynamicJavascript="true"
staticJavascript="false"/>
<script language="Javascript1.1" src="staticJavascript.jsp"></script></body>
</html:html>
“http://expert.csdn.net/Expert/topic/2294/2294912.xml?temp=.9753534”:)
<jsp:forward page="/SomeAction.do">
<!--if need
<jsp:param name="paramName1" value="value1"/>
<jsp:param name="paramName2" value="value2"/>
…………
-->
</jsp:forward>struts-config.xml
......
<form-bean name="someForm"
type="your.package.SomeForm"/>
......
<action path="/SomeAction"
type="your.package.SomeAction"
name="someForm">
<forward name="show" path="/showsomething.jsp"/>
</action>
......