Problem in getting form based authentication with weblogic and struts
I am working on an application. It is using Weblogic as app server and struts framework. I am trying to use form based authentication to authenticate users at the presentation tier. I am having issues getting FBA working using struts, although I am able to make it working if I am not using struts. I will put some code snippets here to explain how it is not working with struts:
The error I get when I run this:
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /j_security_check
If I put /j_security_check in struts-config, i dont get the error, but then the form based authentication does not work because it uses j_security_check as a keyword. It appends /context-name/j_security_check.do in the view siurce if I put a slash in the struts-config.xml.
I am confident that web.xml and weblogic.xml entries are correct because form based authentication works if I do not use struts in the jsp. Has anyone faced this problem when using form based authentication with struts?