Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Java Web Application Context

Thread view: 
jstorta - 02 Nov 2007 18:37 GMT
I want users to be able to just go to my domain and reach my web
application without having to include the web app name in the URL.

GOOD:  www.domain.com
BAD:     www.domain.com/myapp

I am not opposed to having myapp in the URLs as they use the site, but
I don't want to force people to type it when they first come to the
site.

I know there are a few ways to do this.

I currently have Tomcat and Glassfish configured so that / is the
context for the app.  This works fine, but it has always seemed like a
hack rather than an accepted process.

Is there a better, more accepted, way of accomplishing this?

Thanks.
Daniel Pitts - 02 Nov 2007 18:42 GMT
> I want users to be able to just go to my domain and reach my web
> application without having to include the web app name in the URL.
[quoted text clipped - 15 lines]
>
> Thanks.

Sounds like a good solution to me.  The alternate is to have a web
server like Apache which uses proxy-pass and rewrite rules to direct the
request to the appropriate webapp container and webapp.

Alternatively, I think you can put a redirect in your root path index
handler, so that it redirects to the /myapp directory.
Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.