如何用xml替换掉structs中的tag

05-02-06 java__pro
用xml如何把下面的username和password写进model层?

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ page contentType="text/html; charset=GBK" %>

<html:html>

<head>

<title>

/input.jsp

</title>

</head>

<body>

<h1>TEST

</h1>

<p>

<html:form action="/Loginaction.do" method="POST">

<html:text property="username"/>

<br>

<html:text property="password"/>

<br>

<br>

<html:submit property="submit" value="Submit"/><br>

<html:reset value ="Reset"/>

</html:form>

</body>

</html:html>

java__pro
2005-02-06 23:34

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<html:html>
<head>
<title>
/input.jsp
</title>
</head>
<body>
<h1>TEST

</h1>
<p>
<html:form action="/Loginaction.do" method="POST">
<html:text property="username"/>
<br>
<html:text property="password"/>
<br>

<br>
<html:submit property="submit" value="Submit"/><br>
<html:reset value ="Reset"/>
</html:form>
</body>
</html:html>
<p>

猜你喜欢