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 7622953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:35:03+00:00 2026-05-31T04:35:03+00:00

I am integrating security to my MVC application using spring security. My web.xml snippet

  • 0

I am integrating security to my MVC application using spring security. My web.xml snippet is as bellow:

...
<jsp-config>
    <taglib>
      <taglib-uri>/spring</taglib-uri>
      <taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
    </taglib>
  </jsp-config>

</web-app>

As I am reading / searching in the spring security reference I found this page at the end of the page, related to taglib. Now in my existing MVC application, I already have .tld file as shown in above snippet. Should I add another .tld file for the security e.g security.tld and define it in web.xml? How should I use? Like this:

<taglib-location>
             /WEB-INF/tld/spring-form.tld
             /WEB-INF/tld/security.tld
</taglib-location>

Or like this:

        <taglib>
          <taglib-uri>/spring</taglib-uri>
          <taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>/security</taglib-uri>
          <taglib-location>/WEB-INF/tld/security.tld</taglib-location>
        </taglib>

Please help. Thank you

*EDIT: * I am using spring 2.5.6 and security 2.0.4

  • 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-05-31T04:35:04+00:00Added an answer on May 31, 2026 at 4:35 am

    One option is to move the declarations into a common JSP (if you use JSPs), like this:

    <%@ taglib uri="/WEB-INF/tld/spring-form.tld" prefix="spring" %>
    <%@ taglib uri="/WEB-INF/tld/security.tld" prefix="security" %>
    

    Then you can reference that JSP anywhere you want to use one of those tags, as follow (works well in a template if you use Tiles or Sitemesh for instance)

    <%@ include file="/jsp/common/taglibs.jsp" %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am integrating security to my web MVC application and couldn't get idea what
I am writing an application that uses GWT, some Spring MVC and Spring Security.
I am using spring 3 mvc/security frameworks. I have created a Controller class that
I'm currently integrating springs-security into our new web application stack. We will need to
I'm working on porting part of an existing Spring MVC application over to Wicket.
Platform: Shiro 1.1.0, Spring 3.0.5 I'm trying to secure the MVC Controller methods using
I am getting following weird error while integrating SWF,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0
I'm integrating my application so that it can edit files stored in SharePoint. I'm
I'm looking at integrating an ESB into an existing Java/Maven web based product. Specifically,
As part of Spring 3 MVC it is possible to inject the currently logged

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.