<filter>
<filter-name>click-filter</filter-name>
<filter-class>org.apache.click.ClickServlet</filter-class>
</filter>
<filter-mapping>
<filter-name>click-filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
public class UserAction extends Action {
private String username;
private String password;
@Override
public void onInit() {
}
@Override
public void onPost() {
if (getContext().isFormSubmission()) {
// ...
}
}
public void doLogin() {
// ...
}
// Getters and Setters
// ...
}
html
<html>
<head>
</head>
<body>
<form action="${formSubmitPath}" method="post">
<input type="text" name="username" value="${username}">
<input type="password" name="password" value="${password}">
</form>
</body>
</html>