Hi,
can any body tell me about the BigInteger i=extractFromRequest(req) method what is the purpose of this method.i am unable to find this method meaning and which method in which package which object will call this method.
Looks to be a method in your servlet since it is not explicitly associated with an object or a class instance.
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
jyothsna ananthula
Ranch Hand
Joined: Jun 02, 2011
Posts: 33
posted
0
James Sabre wrote:Looks to be a method in your servlet since it is not explicitly associated with an object or a class instance.
hm,but i read that if we want to create a servletContext object we will use directly getServletContext() ex: ServletContext stxt=getServletContext();
but getServletContext() method is available in Servletconfig Interface. so this extractFromRequest() is also same as it is ....?
and can you tell me ServletConfig is a interface and even we are using in servlet class we will write like init(ServletConfig s){}
and in while Calling getServletContext() we are not using any object but we know that its by default called by ServletConfig object.
James Sabre wrote:Looks to be a method in your servlet since it is not explicitly associated with an object or a class instance.
hm,but i read that if we want to create a servletContext object we will use directly getServletContext() ex: ServletContext stxt=getServletContext();
but getServletContext() method is available in Servletconfig Interface. so this extractFromRequest() is also same as it is ....?
and can you tell me ServletConfig is a interface and even we are using in servlet class we will write like init(ServletConfig s){}
and in while Calling getServletContext() we are not using any object but we know that its by default called by ServletConfig object.
i didnt get this concept much.
Sorry but I don't see how that relates to extractFromRequest() . To find method extractFromRequest() just look at the source code for your Servlet or maybe a base class from which your Servlet is derived. To understand Servlet concepts go though several of the many Servlet tutorials.
jyothsna ananthula
Ranch Hand
Joined: Jun 02, 2011
Posts: 33
posted
0
James Sabre wrote:
jyothsna ananthula wrote:
James Sabre wrote:Looks to be a method in your servlet since it is not explicitly associated with an object or a class instance.
hm,but i read that if we want to create a servletContext object we will use directly getServletContext() ex: ServletContext stxt=getServletContext();
but getServletContext() method is available in Servletconfig Interface. so this extractFromRequest() is also same as it is ....?
and can you tell me ServletConfig is a interface and even we are using in servlet class we will write like init(ServletConfig s){}
and in while Calling getServletContext() we are not using any object but we know that its by default called by ServletConfig object.
i didnt get this concept much.
Sorry but I don't see how that relates to extractFromRequest() . To find method extractFromRequest() just look at the source code for your Servlet or maybe a base class from which your Servlet is derived. To understand Servlet concepts go though several of the many Servlet tutorials.
ok thanks.but here this code i got in threadsafe concurency they didnt give any subclass and superclass