Menus

Jun 7, 2016

Struts 2 Form tag example

<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<s:head/>
</head>
<body>
<h1>Hello World!</h1>
<s:actionerror/>
<s:form method="post" action="/login/login">
<s:textfield name="username" label="Username"/>
<s:password name="password" label="Password"/>
<s:submit value="Login"/>
</s:form>
</body>

</html>

No comments:

Post a Comment

Contact Form

Name

Email *

Message *