Jump to content

Recommended Posts

Posted

If you look below, you can easily see that this login form is sent to another page(LoginAction) by this command( <s:form action="LoginAction">). Here you can also see struts2 taglib.

 

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Login Form</title>

</head>

<body>

 

 

<s:form action="LoginAction">

<table>

<tr>

<td> Email: </td>

<td> <s:textfield name="email"/> </td>

</tr> <br>

<tr>

<td> Password: </td>

<td> <s:password name="password"/> </td>

</tr> <br>

 

<tr>

<td></td>

<td> <s:submit value="Login"/> </td>

</tr>

 

 

</table>

<s:property value="error"/>

</s:form>

 

</body>

</html>

Posted

I'm not sure how many Java experts we have around here, but I don't think it's that many unfortunately. :(

 

Most of us here specialize in PHP.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...