I tried with getLocalPort() but still the same problem
Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Apache Group\Tomcat 4.1\work\Standalone\localhost\Beer-v1\result_jsp.java:108: cannot find symbol [javac] symbol : method getLocalPort() [javac] location: interface javax.servlet.http.HttpServletRequest [javac] out.print( request.getLocalPort() ); [javac] ^ [javac] 1 error
Joined: Feb 28, 2007
Instead, if you post your code, it may help to find out the actual source of the error. It seems "out" couldn't be recognized.
Joined: Jan 07, 2006
Thanks for replying. Actually I had a look at the ServletRequest Interface API. And I am surprised to see there is no getLocalPort() and getRemotePort() method in the ServletRequest Interface . Only getServerPort() method is there.