Menu

Problems with struts and <form-error-page>

Help
nacho
2004-09-22
2013-04-15
  • nacho

    nacho - 2004-09-22

    Hi,

    I have configured the securityfilter to work with my struts and org.apache.catalina.realm.JDBCRealm.

    I have a problem with the <form-error-page>.

    I can not use the following:

    <form-login-page/login.do</form-login-page>
      <form-error-page>/errorLogin.do</form-error-page>   

    I must use a ".jsp" for the error page. Otherwise I get the :

    HTTP Status 500 - Internal Server Error

    --------------------------------------------------------------------------------

    type Exception report

    message Internal Server Error

    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Error matching patterns
        at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:141)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)

    I guess this is because all *.do are filtered... How could I do this? I need to go through an action because my application runs on a framework developed on top of struts.

    I have tried with <form-error-page>/login.do?error=true</form-error-page> but i get the same error.

    Any suggestion?

    Thanks in advance.

    nacho

     
    • CookieVendor

      CookieVendor - 2005-02-07

      The simple way is to go to "errorLogin.jsp" which server redirects to "/errorLogin.do".

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.