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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:20:07+00:00 2026-05-25T23:20:07+00:00

I am not sure what would be the exact technical term for this but

  • 0

I am not sure what would be the exact technical term for this but i wanted to access a file which is avail in server(Apache Tomcat). i just wanted to type this in browser e.g.

http://localhost:8080/myProjectName/eng :
*but this should refer as. http://localhost:8080/myProjectName/english.html *

http://localhost:8080/myProjectName/hin :
*but this should refer as. http://localhost:8080/myProjectName/hindi.html *

my project structure is

myProjectName
          |
       webContent
           |
           |----WEB-INF
           |      |_ _ _ web.xml
           |
           |--- english.html
           |--- hindi.html  

is there any way to get the possible result by writing something in web.xml.

Environment : java servlet html js jQuery tomcat6.0
  • 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-25T23:20:08+00:00Added an answer on May 25, 2026 at 11:20 pm

    if i am understanding your question, here is the solution :

    1. What you need to do? file configuration
    2. use <jsp-file> mapping instead of <servlet-class>

    http://localhost:8080/myProjectName/eng Just define mapping in web.xml

    <servlet>
       <servlet-name>config</servlet-name>
       <jsp-file>/english.html</jsp-file>   /* referential page */
    </servlet>
    
    <servlet-mapping>
          <servlet-name>config</servlet-name>
          <url-pattern>/eng</url-pattern>     /* url pattern */
    </servlet-mapping>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure how simple this would be, but I'm using a script which
Not sure this is possible, but looking to write a script that would return
I'm not sure how difficult this but I have an array and would like
I'm not sure how I would do this in Javascript. I want to create
Not sure what to call it, but a combined solution for starting servers/logging/consoles/development would
I am not sure if it's possible at all in HTML, but I would
I am not sure what this error is. Thought I would ask you guys
I would like to use standard icons in treeview but I am not sure
I'm not sure there is this exact situation in another question, so sorry if
Not sure if that is the right way to ask this or not but

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.