• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

extractFromRequest(req)

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks to be a method in your servlet since it is not explicitly associated with an object or a class instance.
 
jyothsna ananthula
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic