Hello Serdar, Monday, July 22, 2002, 10:22:10 AM, you wrote:
SB> i call a servlet at http://www.asdfg.com/servlet/helloWorld.... SB> this servlet need to know the ip of the server (http://www.asdfg.com) because there is a form in the servlet and in action this servlet is used again. SB> so i need SB> <FORM Action=" + ipOfTheServer + "/servlet/helloWorld">. SB> could you help pls? Hmm, why don't you call it as a relative link like usual? A <FORM Action="/servlet/helloWorld"> should do the job much better than your approach. Beside this, your Action lacks the protocol, if for any reason I cannot guess you really have to use the absolute address, you have to specify the fully qualified URL like this: <FORM Action=http://" + ipOfTheServer + "/servlet/helloWorld"> By the way, you can determine the ip address of an DNS-known Server with this snippet: ip = InetAddress.getByName("www.asdfg.com").getHostAddress(); -- Best regards, Bruno mailto:[EMAIL PROTECTED] ___________________________________________________________________________ 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
