java - Select webapp start up page based on domain name -


how select start page of tomcat 7 webapp?

there 2 page in webapp , want select based on domain name. example

if admin.foo.com show admin.jsp

if user.foo.com show user.jsp

and if foo.com show index.jsp

you have build logic filter or servlet in webapplication. basically, use httpservletrequest.getrequesturl() parse out subomain of request, , redirect visitor appropriate page.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -