• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot able to Find Methods

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In above code the compiler is not able to find following methods.
request.getLocalPort()
request.getRemotePort()
I am not able to understand why.
Thanks
 
Alexey Korneychuk
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
These methods since 2.4 (not 2.3)
Are you sure that you are using 2.4 servlet spec?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Alexey
You are right i am using 2.3
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!