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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:04:53+00:00 2026-05-23T02:04:53+00:00

i am using tomcat 7.0.11 which also support servlet 3.0 but req.getServletContext().getEffectiveMajorVersion() // 2

  • 0

i am using tomcat 7.0.11 which also support servlet 3.0 but

req.getServletContext().getEffectiveMajorVersion() // 2

req.getServletContext().getEffectiveMinorVersion() // 5

gives me this output.

how would i achive servlet 3.0?

it show jsp 2.1 while i expect 2.2 as tomcat support javaServer page 2.2.

and also how would i get JAvaServer Page version?enter image description here

  • 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-23T02:04:54+00:00Added an answer on May 23, 2026 at 2:04 am

    Make sure that web.xml specifies Servlets 3.0:

    <web-app
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
        version="3.0">
    
        <!-- snip -->
    
    </web-app>
    

    To get the version of JSP that you’re using, use the javax.servlet.jsp.JspFactory:

     JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JBoss 4.0.4 GA, which has Tomcat Servlet Container 5.5. I also
I have developed a simple server using Tomcat which runs a servlet. The servlet
I have an application server (JBoss, but this also happens in Tomcat) running as
I have gotten everything working for my class in which I am using Tomcat
I've just created a custom taglib which runs fine with Jetty. When using TomCat
I have a Struts2 webapp, in which I compiled using the Tomcat 5.5 libraries.
I'm using Tomcat 5.5 as my servlet container. My web application deploys via .jar
I'm probably going to be using Tomcat and the Apache Axis webapp plugin, but
We have a tomcat webapp which provides webservices which are protected using Spring Security.
I'm trying to access servlet typing http://localhost:8082/Libruary/controller and Tomcat 6 gives an error 404:

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.