Calling servlets from a jsp in a directory

Hello,

I use JBuilder 9 to develop a web application, and I organize all jsp files in directories inside root directory. The problem is that when I try to use any servlet in the project, I have to use the following address "http://localhost8080/servletName" and it worked fine, but when I run the application on another machine that has port 8083 for JBuilder it didn't work of course. So is there a generic address that I can use that can work with any port?

Sorry for the long message,

Thanks,

[523 byte] By [Iman_Saleha] at [2007-10-2 20:13:59]
# 1
Use relative names and not absolute ones.
BIJ001a at 2007-7-13 22:56:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Sorry, but what are relative names and what are absolute ones?Thanks,
Iman_Saleha at 2007-7-13 22:56:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
absolute: http://localhost8080/OtherServletNameand if referred from http://localhost8080/servletNameOtherServletNameis relative.
BIJ001a at 2007-7-13 22:56:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

yes, but when I use the relative name of the servlet, I get an error saying that the servlet is not found inside the directory in which the jsp(the one from which I call the servlet) exists. For some reason the program searches for the servlet in the same directory and of course doesn't find it. What do you think I can do about this?

Thanks,

Iman_Saleha at 2007-7-13 22:56:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
../my_servlets/the_servlet
BIJ001a at 2007-7-13 22:56:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...