Hi Guys, the sub domain solution looks neat. However in a system where everyday users are signing up I am not sure how this could be implemented....
Also using a inistial controlling servlet also a possible solution.... Inorder to do that what ever the user types as the url.... the control should be sent to a particular servlet or a JSP and then from the re-direction should happen.... eg. www.xyz.com or www.xyz.com/senthoor or www.xyz.com/frans it should goto a particular page and in the controlling page the re-direction logic would be there..... I am not sure... how to do this controling servelet thing... can you help me please... Senthoor ----- Original Message ----- From: "Frans Verhoef" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 8:59 AM Subject: Re: URL Mapping > Maybe you should consider the yahoo method, where they're using a dedicated sub- > domain. > For example: > users.xyz.com > > And I agree that the solution of depending on 404s is not a pretty solution. > > Frans > > > That seems kinda kludgy. Try mapping all initial requests to a controlling servlet that then obtains the userName from the pathinfo, validates it against the DB, and forwards to the user's custom page.. > > > > cheers > > > > ---------------------------------------- > > Guys, > > > > We have a small requirement to paly the the URL.... > > > > Basically there is a domain for example www.xyz.com > > > > and when someone types www.xyz.com/UserName (Username can be any user in the Database) it should take him to a custom page which is customised for that particular user. So I would go and type www.xyz.com/senthoor. > > > > The problem is normally it throws a 404 since this /senthoor is not mapped and what we did was we cought the 404 and re-directed to a JSP and captured the URL extracted the "UserName" validated against the DB and loaded the custom page.... > > > > But this worked as specified in WebLogic but when we ported it to Oracle Application Server it give a 500 error. > > > > I would like to know whether there exist any other solution for this except capturing 404s and 500s. Basically since the username is growning in the Database with members signing in we can't have servelet mapping to handle this too... > > > > Senthoor > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
