my dog learned polymorphism*
The moose likes JSP and the fly likes Parked domains and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Parked domains and JSP" Watch "Parked domains and JSP" New topic

Parked domains and JSP

Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
I'm pretty new to JSP, and I have a problem with my parked domains and Tomcat. Basically, I've been told that tomcat does not deal very well with more than one domain and I need to write a servlet which will deal with the problem for me.
Question is: How do I write a JSP or servlet that will redirect users to the main domain if they type in a parked domain?
e.g. ->
As it stands now, if I type in (the parked domain), I get 'Apache Tomcat/4.0.3 - HTTP Status 404 - /index.jsp', but if I type in, I get my page as expected. They both point to the same place.
Any help is greatly appreciated.
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
You might have better luck in the Apache/Tomcat forum.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Parked domains and JSP
Similar Threads
Weblogic and JSP
Java based content management tool
session over multiple domains
where to map the domain name in Tomcat?
Axis - Server.userException