File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes extractFromRequest(req) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "extractFromRequest(req) " Watch "extractFromRequest(req) " New topic
Author

extractFromRequest(req)

jyothsna ananthula
Ranch Hand

Joined: Jun 02, 2011
Posts: 33
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.
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

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
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.
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

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.
jyothsna ananthula
Ranch Hand

Joined: Jun 02, 2011
Posts: 33
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
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

jyothsna ananthula wrote:
ok thanks.but here this code i got in threadsafe concurency they didnt give any subclass and superclass


I'm a little lost. What is 'threadsafe concurency' and if there is no superclass then the method must be in your Servlet class so check the code.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: extractFromRequest(req)