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

  • SEARCH
  • Home
  • 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 6772361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:32:26+00:00 2026-05-26T15:32:26+00:00

i want to use EL 2.2 for JSF 2 application and tomcat 7 is

  • 0

i want to use EL 2.2 for JSF 2 application
and tomcat 7 is provided with EL 2.2
and i am confused about the following:

1- Should i provide the servlet-api, jsp-api and the EL in my pom file (using maven) as provided or don’t include them at all in the pom file, since they are provided by container, what’s the difference ?

<dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
          <version>3.0</version>
          <scope>provided</scope>
         </dependency>


        <dependency>
          <groupId>javax.servlet.jsp</groupId>
          <artifactId>jsp-api</artifactId>
          <version>2.2</version>
          <scope>provided</scope>
        </dependency>

        <dependency>
         <groupId>javax.el</groupId>
         <artifactId>el-api</artifactId>
         <version>2.2</version>
         <scope>provided</scope>
       </dependency>

2- are they any required libraries to be added to pom file to be able to use EL 2.2 ?

3- Is there’s any additional configuration needed in web.xml as in this article:

http://code2inspire.wordpress.com/2010/11/05/how-to-enable-el-2-2-on-tomcat-6/

please advise.

  • 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-26T15:32:26+00:00Added an answer on May 26, 2026 at 3:32 pm
    1. One does not need to include in the pom.xml file as tomcat already has it. But in my experience, the needs arise to include the servlet-api dependency in the pom when i try to do some servlet programming. And like you said, define the scope as provided since it’s already in the tomcat, and you dont want the servlet-api jar from pom to be included when building the war. My 2 cents is not to include the dependency as long as it’s running, and include when the needs arise, and then document in the pom.xml the reason it’s included.

    2. I dont think you need to declare any other dependencies, as long as your container has the implementation already. I assume tomcat 7 does, since i’m using it also, and i dont declare anything else in pom dependency in order to make use of EL 2.x

    3. Never tried it since im using t7, but crosschecking with the core jsf 3rd edition book, yeah, that’d work

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

Sidebar

Related Questions

I have a Java-JSF Web Application on GlassFish, in which I want to use
I want to provide different languages in my jsf-application. I've found that explanation and
we are trying to refactor an JSP/XSLT application to JSF. We use a CMS
I am learning jQuery. I want to use jQuery inside my jsf 2.0 application.
I want use JQuery mobile for the front-end of my mobile application, but I
I want to use netlink to communicate between an application and kernel space. My
I have a legacy JSF application. Now that we want to add i18n support
Goal: I want to use jsf`s i18n Scenario: creating resource bundle (utf-8) file info:
I want to have a generic menu in my JSF (MyFaces 1.2) application. <h:form>
In a JSF 2.0 application (running on Tomcat 7 and using weld 1.1.1.Final), I

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.