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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...