• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

applicationname url change

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to change my application url...from http://localhost:8080/keerth/School to http://localhost:8080/keerth....here keerth is my application folder name comes under webapps directory.School is the servlet.I have remove the servlet-mapping <servlet-url> tag in web.xml and havent changed (action=/keerth/School/) in jsp to get the http://localhost:8080/keerth url still getting the welcome page but could not login into the sysytem.I though because of deleteing the servlet mapping tag in web.xml file..am using tomcat 7.0 in windows xp.So i tired to cahnge the context path ,doc but could not find in server.xml file. I did copying the my application content to ROOT folder but it doesnt work.Please tell me how to change my application url....is there any possible way to convert into ..http://127.0.0.1/keerth..url..?? If so kindly let me know how to convert it.

Thanks in advance!!

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is possible. You just need to create a front Controller servlet ,redirect every request to your front Controller and you are done. Now the servlet you want to call will be passed as a parameter for any form submitted. Then you can just include that servlet using the include method and you are done.
 
He's giving us the slip! Quick! Grab this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic