vendredi 6 mars 2015

How can I change j_spring_security_check?

I'm working with ZK and spring. I downloaded 2 different project that now I try to merge. My problem is in this part of code:



<html:form action="j_spring_security_check" method="POST" xmlns:html="native">


that is in the file login.zul. I found these lines in web.xml:



<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>


I saw that if I change /* with /login.zul it happened that in my url becomes: localhost:8080/myProject/j_spring_security_check and I saw error 404.


If I didn't change my url is localhost:8080/myProject/ and the page index.zul works correctely.


But index.zul is in the same folder as login.zul.


I saw the same error also if I set /index.zul in state of "/*".


How can I decide another url in stead of /*?


Thanks!


Aucun commentaire:

Enregistrer un commentaire