安裝方法:
1.解壓縮後,直接雙擊ast-03.mxp。
2.重新啓動Dw(我用的是Dw8)。
測試:
1.將下面代碼拷貝到Dw新建的jsp頁面中。
<TEXTAREA style="WIDTH: 447px; HEIGHT: 186px" rows=12 cols=60>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html:xhtml/>
<html>
<head>
<title><bean:message key="logon.title"/></title>
</head>
<html:errors/>
<html:form action="/SubmitLogon" 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 property="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="http://blogbeta.blueidea.com/staticJavascript.jsp"></script>
<jsp:include page="footer.jsp" />
</body>
</html>
</TEXTAREA>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html:xhtml/>
<html>
<head>
<title><bean:message key="logon.title"/></title>
</head>
<html:errors/>
<html:form action="/SubmitLogon" 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 property="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="http://blogbeta.blueidea.com/staticJavascript.jsp"></script>
<jsp:include page="footer.jsp" />
</body>
</html>
</TEXTAREA>
2.您將在視圖區看到如下圖的顯示: