URL Masking

Hello.

I have a website using servlets that is working great! I can access the site using an ugly url: http://0.0.0.0/myWebsite/servlet/srvltLogin (as an example). I registered a domain name with goDaddy and have it pointing to the login servlet as a mask. I have a login script that, on a successful attempt, automatically redirects the user to a menu servlet. When using the url masking through goDaddy, the website doesn't work. I don't understand why! Can anyone help me out with this one?

Thank you!

[525 byte] By [sabian131a] at [2007-11-27 7:16:30]
# 1
Are you using relative paths in the redirection somewhere? Maybe that's the problem. I'm not too familiar with how URL masking works so I can't be sure but this is where I would look first.
nogoodatcodinga at 2007-7-12 19:05:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Initially I was using relative paths but I have tried setting up a base href as well as hard coding the entrie IP address in the links and it still does not work.

URL masking works basically by using a frameset page that has two rows. One is set at 100% and the other is set at 0%. That makes the user only see the one address (the address of the frameset page) while the content continues to change. I have tried creating my own frameset page and that works just fine. But still, you see an ugly IP address in the address bar of the frameset.htm page and we don't want that.

It boils down to this - as soon as I apply the domain address from goDaddy (which uses the same frameset concept as I did on my own) it all stops working.

sabian131a at 2007-7-12 19:05:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
After further, extensive research, what I did not understand initially was that because I was using the httpsession object, I had to encode my URLs. Once I added response.encodeURL, everything started working correctly!
sabian131a at 2007-7-12 19:05:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...