title: How can I run servlet without user interacting
body: <p>I want to excute a servlet to get server name,server port and ContextPath from request.
  But I don't want to invoke servlet by user interacting. I want excute this servlet by Java code.
  I'm not sure it's possible.
  Please give me recommendation.</p>