安装方法:
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.您将在视图区看到如下图的显示: