How many ways to create servlets

Hi
i have some confusion. how many ways to create servlets.
as of my knowledge 3 ways 1) implementing Servlet 2) extending GenericServlet 3) extending HttpServlets.
can any one tell me this is correct or not.

The only correct way (IMHO) to declare a Servlet is to implement Servlet... Extending GenericServlet or HttpServlet has (almost) the same effect it's not self documentingIf it's an HTTP servlet the only correct way is to extend HttpServlet, unless you really want to reinvent the wheel. You can add 'implements Servlet' if you insist but it is entirely redundant. The Javadoc will be the same in either case.
In other words I don't know what this poster is talking about.

Similar Messages

  • How many ways we can create an object?

    how many ways we can create an object?

    rcnraju wrote:
    how many ways we can create an object?Why does it matter?
    add: clazz.newInstance();
    add: clazz.getConstructor(parameterTypes).newInstance(parameterValues);
    add: Unsafe.allocateInstane(Class clazz);
    add: any native method can create a new instance,

  • In How Many ways or Techinques used to have relation beween two factables which dont have common dimesions

    Hi folks,
     In How Many ways or Techinques used to have relation beween two factables which dont have common dimesions
    or 
    how to establish relation beween two factables.
    Thanks
    Ravindra KAvali

    Hi kavali1985,
    According to your description, you want to build relationship between two fact tables without common dimension. Right?
    In Analysis Services, to build relationship between two fact tables, at least you need to have "common" column in both tables which can link these two tables. If so, we can create a fact dimension based on one fact table, then build the relationship
    with the other fact table. Please refer to link below:
    Defining a Fact Relationship
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How many sessions are created in Server ?

    Hi All developers,
    SCJP back again.........
    Anybody please tell me......
    Is there any way to find out how many sessions are created in server ?
    Thanks in advance ..............

    Only by keeping track of them yourself.
    The various session listeners - SessionListener, SessionBindingListener are usefule here.

  • How many ways to edit the data in PSA?

    HI
    How many ways to edit the data in PSA? Can we edit both transaction, master data also?

    Hi.......
    Yes yo can edit data in PSA for both Master data and transaction data.......the only diffrence is that in transaction data you have to delete the request from the target before editing......and in master data no need to delete any request....directly edit the PSA........
    To edit PSA......the most easiest method has alsredy mentioned ............
    But suppose you don't have authorization to edit the data in PSA but still you want to edit then you can follow the process mentioned below..........
    You can call up the function module RSAR_ODS_API_GET with the list of request IDs given by the function module RSSM_API_REQUEST_GET. The function module RSAR_ODS_API_GET no longer recognizes InfoSources on the interface, rather it recognizes the request IDs instead. With the parameter I_T_SELECTIONS, you can restrict reading data records in the PSA table with reference to the fields of the transfer structure. In your program, the selections are filled and transferred to the parameter I_T_SELECTIONS.
    The import parameter causes the function module to output the data records in the parameter E_T_DATA. Data output is unstructured, since the function module RSAR_ODS_API_GET works generically, and therefore does not recognize the specific structure of the PSA. You can find information on the field in the PSA table using the parameter E_T_RSFIELDTXT.
    RSAR_ODS_API_PUT
    After merging or checking and subsequently changing the data, you can write the altered data records into the PSA table with the function module RSAR_ODS_API_PUT. To be able to write request data into the table with the help of this function module, you have to enter the corresponding request ID. The parameter E_T_DATA contains the changed data records.
    check these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/8d4b38187a8442e10000009b38f8cf/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/67efb9bb-0601-0010-f7a2-b582e94bcf8a
    Hope this helps.......
    Regards,
    Debjani......

  • I have over 1200 songs in my iTunes library that have always synced fine, I have added a new album to my list from one of my CD's, synced to add it to my library but less that 100 songs are now on my device and no matter how many ways I try its not worked

    I have over 1200 songs in my iTunes library that have always synced fine, I have added a new album to my list from one of my CD's, synced to add it to my library but less that 100 songs are now showing on my device and no matter how many ways I try its not able to show any more.
    Does anyone know why this is happening and how to rectify the situation as I have tried every help setting for the last 4 hours.

    I have tried everything I have read on the Internet about sync issues and restore etc and not there isn't a single song on my iPad or iPod touch. All of the songs are listed in my iTunes but are all greyed out, some have the cloud symbol next to them but lots don't and some say waiting.
    Long and short is nothing will save to my devices at all.....HELP !!!!!!!?

  • How to find how many sto's Created in One plant

    Dear
    how to find how many sto's Created in One plant
    ex: i have 5 plants now i want to check how many sto's done

    Hi,
    Please check in table EKKO for supplying plant against STO document
    EKPO against Receving plant
    WB2_V_EKKO_EKPO2 - You can pass both supplying plant as well as receving plant.
    Regards,
    Haresh

  • How many Ways jar files from ear file on a jboss can be downloaded on clien

    Aoa
    How many Ways jar files from ear file on a jboss can be downloaded on client side
    like jnlp etc..
    Regards
    M Fazal Ur Rehman

    First, you need to be able to boot from the Recovery HD:
    Boot Using Command+R keys:
      1. Restart the computer.
      2. Immediately after the chime press and hold down the
          "COMMAND" and the "R" keys together.
      3. Release the keys when the Utilities Menu appears.
    Once at the Utilities Menu select Terminal from the Utilities menu in the screen's menubar. Now, you need to know where these new files are located. You move to any location using the 'cd' command such as cd /Users/user_name/Documents, then press RETURN. Replace user_name with your actual username. Next you need to do a directory listing to see if your files are in that location, Documents. Use ls -al to do a directory listing of the files and folders in Documents. If you find your new files there, then connect an external drive or flash drive. You will need to know the name you have assigned to this drive. It needs to be already formatted. Copy your files using cp /Documents/filename /Volumes/volname/filename. Replace volname and filename with those that apply. Press RETURN.
    Or take it to your local Apple Store and see if they can do the chore for you.

  • In how many ways could I connect different company for telepresence?

    Hello everyone, 
    I'm new in the video conference and telepresence field. 
    I'd like to know how many ways there are to connect different company to make a telepresence session.
    Currently I'm managing a telepresence infrastructure in which all the different location are 30 Km distant and are all part of the same intranet.
    Obviously we have a VCSc and VCSe and a MCU.
    If I don't have an intranet and I'd like to connect different location, how could I do? VPN? Is it possible to use just the public internet?
    for example, if I have 3 location (200 km distant) and every location has an SSDL connection (down 4 Mb/s up 4 Mb/s), can I connect them?
    I was thinking to use for example a VCS Espress starter pack in one location and 3 codec SX20.
    Is it possible to have a 720p call considering the distances?
     

    Yes, you can, but it does become a trial and error scenario.
    We've been doing that for years to some very remote sites (+800kms), however, we've had to keep the b/w to 384kbps, and we do see some packet loss at times, but this mainly involves older endpoints such as MXPs, whereas the C-series and the SX endpoints handles it much better.
    We're now in the process of moving these sites on to a managed 10/10Mbps connection which will allow us to implement QoS.
    We also have another very remote island site where we only have a 2/2Mbps connection, and we restrict b/w to a max 512kbps to/from this site, and we haven't had any issues at all.
    And these links are not used exclusively for video, but these remote sites use them for all their internet traffic.
    Just on a side note, I run HD videconferences from home, but then I have a 100/40Mbps fibre connection, but it still goes across the public internet - and I haven't had any issues yet. :)
    As I said at the top, it's trial and error; stress test the link at various times without VPN first, then move to VPN if needed. It's not as simple as a "yes" or a "no".
    /jens
    Please rater replies and mark question(s) as "answered" if applicable.

  • How many ways you can invoke JSP from OBPM

    Hi All,
    I just wanted to know how many ways we can invoke JSP Page from BPM.
    1. BPM Interactive component call
    2. ?.
    Thanks
    Sunil.

    When you are using a jsp, its for user interaction only. and in any case, you require interactive component call.
    this is the only way you can use a jsp in OBPM.
    However, in a bpm interactive activity - you can also choose external as implementation type.
    For this, you need to have your jsp source code reference added as an external resource in the project and the external resource is to be specified at configuration while setting implementation type.
    HTH
    Sharma

  • How many dimensions can create in BPC

    Hi friends
    How many Dimension can create in Dimension Library in BPC NW
    Lion

    Hi Surender,
    You have any no. of Dimensions in Dimension library.
    In a BPC Application the mandatory Dimensions are Account, Category, Entity and TIme.
    In an Appset you should have Intercompany Dimesion.
    The other are D - Datasource dimension and User defined Dimensions.
    Regards,
    Raghu

  • How many Objects are created in this?

    Hi,
    How many objects are created in the flwg code:
    String str = new String("Hello");
    String str2 = "Hey there";
    str = str + str2;

    Depends if you're counting objects created at compile time.
    "Hello" is created at compile time. That's 1.
    new String("Hello") creates a new String object at runtime, pointing its backing array at the "Hello" in the constant pool. That's 2.
    "Hey there" is created at compile time. 3.
    str + str2 I might do everything at compile time, or it might do some at runtime. I don't know if str is considered a compile time literal here. I think not, but I'm not sure. You can check by using javap. If I'm correct, then at runtime you'll create a StringBuffer (4) and another String (5).
    So I'd say 5 objects. But if the compiler treats str as a literal and therefore can do the str+str2 at compile time, then it might do so without creating the StringBuffer. Or it might still create it at compile time, use it, and throw it out.

  • In how many ways we can load hierarchies to SAP BW and which transfer mthd

    Hi guru's,
    In how many ways we can load hierarchies to SAP BW and which transfer method is best.
    can anyone explain me with suitable example.
    Thanks,
    Madhu Raj.

    There are standard datasources available for hierarchies also. If the standard datasource does not satisfy your requirement you can always load a hierarchy using flat file. Refer to the below link for the same
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/frameset.htm

  • How many tables are created in Master data loading ( Including hierchy )

    hi ,
    Please anybody , can you tell us how many tables are created in Master data loading ( Including hierchy )
    thanks
    Phani

    Hi PP,
    Depending upon the definition of an infoobject, the tables are created when the objects are activated.
    /BI<C OR DIGIT>/<TABLE CODE><INFOOBJECT>
    <C or digit>: C = Customer-defined InfoObjects
    digit = SAP-defined InfoObjects
    <table code>: S = SID table
    T = Text table
    P = Time-independent master data attributes
    Q = Time-dependent master data attributes
    M = Union of time-dependent and time-independent master
    data attributes
    X = SID table for time-independent navigational attributes
    Y = SID table for time-dependent navigational attributes
    H = Hierarchy table
    K = Hierarchy SID table
    I = Hierarchy SID structure table
    J = Hierarchy interval table
    Thnaks...
    Shambhu

  • How many ways can i improve query performance?

    Hi All,
    can any body help me
    How many ways can i improve query performance in oracle ?
    Thanks,
    narasimha

    As many as you can think of them!!!

Maybe you are looking for

  • White Screen of Death (text/menu won't display)

    Here is my situation: I work at an insurance company and occasionally we will have items come in that are part of a claim. We recently had a 40gb color ipod come in. I was asked to check it out to see if it was still working. I hooked it up to my com

  • Why can't I delete images in lightroom but can remove them from catalog?

    Just recently I have been experiencing difficulties in deleting images in Lightroom 5.  In the develop module, I select the image I  would like to delete, I choose delete from disk, and choose permanently delete them, and nothing happens.  I try flag

  • Report Designer  and Query Designer in BI 7.0

    Hi friends,       what is the use of  Report Designer  and Query Designer.. and what is the difference between  these two..     I know about  Analyser... that is used for designing a query and we can analyse (or) see the result of that query in that 

  • Disk keeps ejecting

    My son bought the family pack snow leopard and every time I put it in the disk drive, it ejects back out and won't let me install.

  • My shuffle distorts . . .

    My shuffle distorts after a few minutes, until the music is all noise.  If I turn it off and leave it off for a minute, then turn it on, it's fixed -- until the next time.  What's going on?