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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:29:04+00:00 2026-05-24T20:29:04+00:00

I am having a simple web application which has some static pages. The URL

  • 0

I am having a simple web application which has some static pages. The URL which comes in the browser address bar simply depends on file location in the project.
http://computername:8080/mylogin/ is my home URL.

And below are the few URLs which come when I make a single click on the main home page.

http://computername:8080/mylogin/ssis/api.jsf
http://computername:8080/mylogin/ssis/dev.jsf

I am implementing a breadcrumb. And to generate it I am using javascript by Justin Whitford.
Issue is this breadcrumb uses the browser URL to generate it. So my URL should be in some common fashion/pattern to have breadcrumb implemented properly.

I want to control these URLs. I want to make them like this.
Home: http://myLogin/

sub pages:

http://mylogin/ssis/api/
http://mylogin/ssis/dev/

All this I want to have a proper implementation of breadcrumbs.

  • 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-24T20:29:15+00:00Added an answer on May 24, 2026 at 8:29 pm

    You can deploy your webapp to the context root by deleting Tomcat’s default /webapps/ROOT folder altogether and renaming your webapp’s mylogin.war file to ROOT.war.

    This way you have http://computername:8080/

    You can get rid of port 8080 by configuring Tomcat to listen on default HTTP port 80. Open Tomcat’s /conf/server.xml, locate the <Connector port="8080"> element and edit the port in there.

    Now you have http://computername/

    You can change the computer name in platform properties or to add a forward in your hosts config file. On Windows, it’s the system32/drivers/etc/hosts file. Just add the following line:

    127.0.0.1 mylogin
    

    Now you have http://mylogin/ (note that this works for local environment only!)

    As to mapping the individual pages such as /foo.jsf on /foo, you could use a filter for this. It’s a pretty tedious job. Instead of reinventing the wheel you may want to take a look at PrettyFaces.


    It’s only beyond me how exactly changing the hostname, port and context name is related to generating breadcrumbs. You might be exaggerating the concrete problem or using it the wrong way.

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

Sidebar

Related Questions

I'm building a simple web-based RSS reader in Python, but I'm having trouble parsing
I'm having a problem with java sessions. I'm developing a simple web app, where
Having some trouble with what should be a very simple scenario. For example purposes,
In our application, we have some forms which need to show some data specifically
I am implementing a web application which is powered on the backend via a
We have a Java web application and we'd like to set up some basic
The problem I'm having with writing a web application architecture is that I want
Let me explain the use case... In a simple python web application framework designed
I have a simple page in a PHP/MySQL web application that lets admin users
I'm developing the most simple ASP.NET application which is giving me an annoying error.

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.