I want make weblogic form validation in wicket but I dont know how to create login page. I followed this tutorial where is example in jsp:
http://docs.oracle.com/cd/E13222_01/wls/docs100/security/thin_client.html#wp1057581
I create similar form in wicket but I dont know what should I do when I push submit button. There is some action called "j_security_check" but i dont know how should i implement it in java and wicket
UPDATE: I am using weblogic 10.something and I cant use newest I try to create my own impelemtation but when I try to use login wicket throw exception:
java.lang.NoSuchMethodError: javax/servlet/http/HttpServletRequest.login(Ljava/lang/String;Ljava/lang/String;)V.
should I add servlet in my web.xml ?
UPDATE2:
I add form in your answer in my project and when I push submit button with incorect password there is url: http://localhost:8080/application/j_security_check
with status 404 not found.
when I add correct pass there is url: http://localhost:8080/application/admin
with status 404 too
web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>application</web-resource-name>
<url-pattern>/admin</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>a</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>a</role-name>
</security-role>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login</form-login-page>
<form-error-page>/login</form-error-page>
</form-login-config>
</login-config>
UPDATE 3: I found this example: https://cwiki.apache.org/WICKET/servlet-container-authentication.html where is what I want but there are using wicket 1.4 but I am using wicket 1.5. and there is a lot of unknown classes but maybe someone could rewrite it to 1.5 version of wicket