Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8728241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:35:24+00:00 2026-06-13T08:35:24+00:00

I have implmented a server backend for a mobile client using Spring MVC,Restful webservices.

  • 0

I have implmented a server backend for a mobile client using Spring MVC,Restful webservices. I want to secure the app with spring security. I have put a custom login.jsp to handle the login as follows.

<body onload='document.f.j_username.focus();'>
<h3>Login with Username and Password (Custom Page)</h3>

<c:if test="${not empty error}">
    <div class="errorblock">
        Your login attempt was not successful, try again.<br /> Caused :
        ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
    </div>
</c:if>

<form name='f' action="<c:url value='j_spring_security_check' />"
    method='POST'>

    <table>
        <tr>
            <td>User:</td>
            <td><input type='text' name='j_username' value=''>
            </td>
        </tr>
        <tr>
            <td>Password:</td>
            <td><input type='password' name='j_password' />
            </td>
        </tr>
        <tr>
            <td colspan='2'><input name="submit" type="submit"
                value="submit" />
            </td>
        </tr>
        <tr>
            <td colspan='2'><input name="reset" type="reset" />
            </td>
        </tr>
    </table>

</form>

my web.xml is as follows.

<display-name>Spring MVC Application</display-name>

<!-- Spring MVC -->
<servlet>
    <servlet-name>mvc-dispatcher</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>mvc-dispatcher</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
        /WEB-INF/mvc-dispatcher-servlet.xml,
        /WEB-INF/spring-security-context.xml
    </param-value>
</context-param>

<!-- Spring Security -->
<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>

spring-security-context.xml is as follws.

<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans 
                http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                http://www.springframework.org/schema/security 
                http://www.springframework.org/schema/security/spring-security-3.0.xsd">


<http auto-config="true">
    <intercept-url pattern="/getHierarchy" access="ROLE_USER" />
    <form-login login-page="/login" default-target-url="/getHierarchy"
        authentication-failure-url="/loginfailed" />
    <logout logout-success-url="/logout" />
</http>

<authentication-manager>
    <authentication-provider>
        <user-service>
            <user name="admin" password="admin" authorities="ROLE_USER" />
        </user-service>
    </authentication-provider>
</authentication-manager>

But I get a warning on eclipse

The tag handler class for “c:if” (org.apache.taglibs.standard.tag.rt.core.IfTag) was not found on the Java Build Path

And get a not found error on j_spring_security_check when I submit the form. I have included jstl1.2 in the classpath. Why do I get a tag handler not found warning even if I have included the taglib?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:35:26+00:00Added an answer on June 13, 2026 at 8:35 am

    Why do I get a tag handler not found warning even if I have included the taglib?
    The jars in an Eclipse Dynamic Web Project that should be deployed to the server must be located in the \myProject\WebContent\WEB-INF\libs (not in \myProject\webapp\WEB-INF\lib)

    In a Eclipse Dynamic Web Project the jars in this folder will be automaticly attached to your build path, you must not add them manually.


    And get a not found error on j_spring_security_check when I submit the form:

    Check that you have the login page mapped to the url /login you can test it simply by enter the url in your broswer


    Additional hint

    One other thing that is may not so optimal is this statement

    <form name='f' action="<c:url value='j_spring_security_check' />"
       method='POST'>
    

    Try to write it in this way:

    <c:url value='j_spring_security_check' var='loginUrl'/>
    <form name='f' action="${loginUrl}" method='POST'>
    

    This avoid this nasty weaving of the two tags. Maybe the problem is just that the eclipse editor is a bit confused.


    The Java Build Path should look like the image at the end of course you will have some more libs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented a web service with server and client authentication using keytool. The
I have implemented the client server using socket programming in C on Unix OS.
I have implemented a Kerberos server/client using sockets in Java, where the client sends
I have implemented a client-server transferring from Windows desktop application to iPhone App. I
I have implemented a client server jave program using TCP for an assignment. Now
I have implemented TCp concurrent server and client in c using threads as well
I have implemented a simple server-client script like this: Server: class Server(Protocol): def connectionMade(self):
I want to play a media file in client side using Asp.net,Please tell me
I have implemented a web app using session state management as per the instructions
I have implemented a C2DM client that requests the registration id from C2DM server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.