I don’t get the last point , why we have to add the context path to our link ?????
When I tried <a href="/clickme"> Tutorial </a> with URL-Rewrite: .addRule(Join.path("/clickme").to("/My_home.jsp"))
It never worked.
But when I tried <a href="/My_App/clickme"> Tutorial </a> with same URL-Rewrite, it WORKED.
And when I put my APP name in the URL it gets appended to the localhost (as I’m deploying it locally now).
So when I’ll deploy my app on the web,
my APP’s name will always be appended to the domain name like: www.mywebsite.com/My_App/...... Is it so ??????
If yes, then How can I get rid of my APP name after my Domain name ????
To prevent the Application Context-Root from displaying in the URL, your application must be deployed as the “ROOT” context. Typically this can be done by renaming the .war file to ROOT.war; however, some application servers require XML configuration to enable or set the ROOT context. This is different for each application server.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Comments are closed.
Do you play Magic?
Get TopDecked MTG, the essential all-in-one Magic App, built by players, for players. Free to use, forever.
Deck Simulator (3d)
Cards & Prices
Top 8 Decks & Metagame
Get updates from OCPSoft
If you find our tools useful, please consider making a donation to help us stay online and building software!