• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

hiding 'web-app' in url for no particular reason...

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi is it possible for
http://hostname/webAppPrefix/someServlet to
be evaluated at
http://hostname/someServlet?
I don't find this to be particularly important (though my web-app name is the same name as my controller, so it reads silly/silly).
I am not sure if this is simply an application server issue, but in JRun, I have played around w/ the referring URL Map, and set it to "" [actually the JMC does not allow this, because the ui was written to believe that the default application is ""... so as a workaround in the local.properties file I modified the settings for default and my app:
webapp.mapping./webAppPrefix=appname
to
webapp.mapping.=appname]
Unfortunately, having done this, the web server simply intercepts any and all calls to http://hostname
It is evident that JRun does not evaluate "" as the web app name when calls to the controller servlet, ie http://hostname/someServlet return a 404 error.
Thanks as always.
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is probably implementation specific, but I am using root context.
server.xml:

I suppose if you were using apache with a tomcat connector, you could use apache mod rewrite.
[ October 26, 2002: Message edited by: Garrett Smith ]
 
Matt Horton
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your help Garrett...
I've currently put this on backburner, but my suspicion is that jrun should implement this in the same manner, when I get the opportunity to duplicate, I'll reply with more information.
Thanks again...
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic