Can an applet call one of the methods of servlet??

hi everyone...
i m very new servlet and applet programming and i have come accross a problem....
i m using a applet which establishes connection with the servlet(residing on server)..i want to use few of the methods of the servlet....
now is it possible tfor me to call the methods of this servlet using its object.???
please help me..
thanx in advance

first of all thanx a lot for the reply...
but i wanted to know can an applet call any other
function of servlet other than get and post....as i
hacve defined some more functions in servlet..
please reply...I did this a while back (2003/4?) and unless it's changed you cannot do it directly, it must be GETor POST, then you could just use conditional logic to invoke another method.

Similar Messages

  • Can we use Call transaction and session method in same program ?

    Hi experts,
                     Is it suggested to use call Transaction and session method in the same Program ?
                     i have a doubt , why cant we use multiple call transactions in same program instead of session method if we have multiple transaction updations ?

    Hi Dengyong Zhang,
    we can use the call transation and session method in same program.
    However for better performance it's benificial to use call trasaction method of BDC. but if u want to upload very large amount of data then Session method is more preferable to use.
    Session method is one of the method of BDC.
    U can also use BAPI to upload the data in SAP but it's a different concept than BDC. Performance wise BAPI is more advantageous than BDC.

  • Can we hav call transaction and session method for an application

    can we hav call transaction and session method for an application ?if yes how?

    Hi ,
    You can.  If Call Transaction fails, a batch input session can be created.
    Check this example-
    Call the transaction. Messages from Call Transaction are stored in the
    internal table messtab 
      CALL TRANSACTION 'LT01' USING bdc_tab MODE 'N' UPDATE 'S'
          MESSAGES INTO messtab.
      IF sy-subrc = 0.                                                 
    Call transaction successfull,  get the number of the Transfer Order that
    was created                                                        
        LOOP AT messtab.                                               
          IF messtab-dynumb = '0104' AND messtab-msgnr = '016'.        
            w_transportorderno = messtab-msgv1.                        
          ENDIF.                                                       
        ENDLOOP.
      ELSE.
    Call transaction failed, create a batch input session instead.
        PERFORM open_group.                        
        PERFORM bdc_insert USING 'LT01'.           
        PERFORM close_group.                       
    ENDIF.
    Regards,
    Sookshma

  • My iMac can no longer find one of the external hard drive

    My iMac can no longer find one of the external hard drive. It was finding it once in awhile and during one of those times I ran Disk Utility and all was OK. Any ideas?

    Well duh.  I restarted the router and then it was able to find the printer.  There you go.  Thanks.

  • I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same displa

    I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same display works fine as it is surprising. or maybe someone knows what is the reason for this? is there any way to solve this problem?

    More than likely its a hardware issue, I have never encountered such a problem and best bet is to just go get it replaced. If you have insurance on your device apple will replace it as long as there was no water damage, if you dont have insurance they will charge $200 more or less. Hope you get it fixed

  • Hi people, can anyone tell whether one has the possibility in numbers, the entries in the pop-up menu to sort alphabetically me

    hi people, can anyone tell whether one has the possibility in numbers, the entries in the pop-up menu to sort alphabetically me

    Hi Dieter,
    Your profile shows Mac OS X (10.6.8) so it seems you are using Numbers version 2.x
    Numbers 2 does not have the ability to sort Pop-Up Menu entries (except by a painful process of adding or subtracting entries in Inspector).
    Numbers 3 makes Pop-Up Menus a breeze. But it is your choice whether to update to OS X Mavericks and Numbers 3 . Some features have been lost, other features have been added, and there are some workarounds.
    Have a look at these threads before you decide:
    Features that Apple has promised to reinstate:
    http://support.apple.com/kb/HT6049
    Hints on workarounds here:
    https://discussions.apple.com/message/23622372#23622372
    What has been GAINED in Numbers 3 is here:
    https://discussions.apple.com/thread/5473882?start=75&tstart=0
    What has been lost in Numbers 3 is here (with corrections where Apple has already reinstated some lost features in the Numbers 3.0.1 update):
    https://discussions.apple.com/thread/5470448?start=240&tstart=0
    Regards,
    Ian.

  • Firefox won't let me use any of the links-I can't add new links by clicking on the + box. I can't delete or add links. I can't even open one of the links at the top of this page Thanks

    Firefox won't let me use any of the links-I can't add new links by clicking on the + box. I can't delete or add links. I can't even open one of the links at the top of this page

    I'm not sure what you mean by "the + box". Is that a feature on one of your toolbars?

  • I am getting an Narration error that I can't record because one of the record-enabled tracks is locked in the timeline. What does this mean and how do I get out of it??

    I am getting an Narration error that I can't record because one of the record-enabled tracks is locked in the timeline. What does this mean and how do I get out of it??

    JohnL23
    Thanks for the update.
    There are several Adobe Premiere Elements Forum threads about situation such as the one that you have encountered. Typically they are the results of some heavy activity in the narration track.  Some have found success in maneuvers between the Expert and Quick workspaces in versions 11 and 12 or Timeline and Sceneline workspaces in versions earlier than 11. That is why I mentioned that type of factor in a prior post in your thread.
    If that is not working, then we are forced into the new project where the problems in the current project are not presenting.
    I will do a search for the threads that I am recalling about your type of issue. But, right now all roads seem to head to the new project. But I would ask "Can you salvage this project by creating your narration clips in Audacity or a new Premiere Elements project and import them into this project, putting the clips on one of the numbered audio tracks?"
    If the problem should reappear in the new project, please let us know including the details of what was going on immediate before the problem surfaced.
    Thanks.
    ATR

  • I am trying adobe Photoshop and adobe illustrator because I can't decide which one to buy so I want to try both, after I downloaded Photoshop I can not see the option "free trial" for adobe Illustrator, it is because I can only free try one at the time??

    I am trying adobe Photoshop and adobe illustrator because I can't decide which one to buy so I want to try both, after I downloaded Photoshop I can not see the option "free trial" for adobe Illustrator, it is because I can only free try one at the time??

    Bryan,
    You can download both at the same time.
    But you may wish to start off with one and use it full time, then download the other later, so you get the maximum possible time with both.
    If you have trouble getting the free trial on the Adobe site, you may try here or here:
    http://prodesigntools.com/tag/ddl
    http://technolux.blogspot.co.nz/2011/02/adobe-direct-download-links-less-akamai.html#more

  • I can not register in my mind the method of payment my pay pal or credit card. I live in Puerto Rico and does not have to select Puerto Rico

    I can not register in my mind the method of payment my pay pal or credit card. I live in Puerto Rico and does not have to select Puerto Rico

    - See:
    ]iTunes Store: My credit card's security code or zip code does not match my bank's records
    - If still problem contact iTunes by:
    Contact iTunes

  • How to acess a value of variable(calling prg) inside the methods of a class

    Hi SapAll.
    i wrote a program where i need to acess a value of a variable inside the class method.
    for eg:
    CALL METHOD gcl_utl_app_log->display_log
        EXPORTING
          it_edidc = lt_edidc
          it_msg   = lt_msg.
    while debugging under the method 'DISPLAY_LOG' when i want to acess a value of a variable (calling program) i cont get that value but i can acess the value of the variable just before the CALL METHOD statement.
    so can any body help me in finding the solution for this.
    regards.
    Varma

    Hi jhings.
    i have delcared the variable in the main program like below
    main program
    PERFORM populate_z1edrmdseqnr01.
    FORM populate_z1edrmdseqnr01 .
    other code
    CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr             = gv_number_nr
          object                  = lv_obj
        IMPORTING
          number                  = gv_nextno
    move gv_nextno to gv_seqno.
      EXPORT gv_seqno  to memory ID 'MEM1'.
    PERFORM FORM application_log.
    FORM application_log.
      CALL METHOD gcl_utl_app_log->display_log
        EXPORTING
          it_edidc = lt_edidc
          it_msg   = lt_msg.
    ENDFORM
    METHOD display_log.
    IMPORT gv_seqno from MEMORY ID 'MEM1'.
    *********when i save and check the above code iam getting the error as 'FiledGV_SEQNO is unknown,it is neither in one of specified tables not defined by 'DATA ' statement.**********
    regards.
    Varma

  • If I accidently open a 2nd session of firefox resulting in two open windows when I close one window they both close and I lose my tab groups. How can I close just one of the two windows?

    I have 3 profiles, one of which I typically use. I have firefox prompt for the profile when it loads. I recently renamed the profiles (earlier this week). So... the profiles do not exactly match the folder names for the profiles.

    I don't understand what happened above, but ericn1, wasn't your problem that you tried to close one browser window using the red X, and ALL of them closed? How did any of the above help you solve your problem? jscher2000 gave you alternate methods of closing windows but said that closing a window with the red X "should" work. It doesn't work, because it is closing ALL your windows, not just the one you are clicking on. I am now having the same problem. with Firefox.
    Understand I do not have the problem with any other program. In other words, I can open multiple windows in Paint Shop Pro, IE, Notepad, etc. and close one with the red X and all others remain open. It ONLY happens when using the Firefox browser.
    The red X should close only the window that you are in when you click on it.
    NOW, before someone suggests tabs, I don't like them and don't use them. My choice. Before someone says my browser is out-of-date, (3.6.13) I am using it because it was the last version that worked reliably on my computers, both at home (Windows 7 Professional) and my office (Windows XP Professional).
    When I updated to the last Firefox browser, both computers started seizing up (nothing worked and had to reboot using power button) Removing that version of Firefox and going back to this version solved that problem. Fact remains, version has little to do with this problem. I've seen other posts around the net about this with different (newer) versions of Firefox.
    So . . . does anyone have a solution to this that doesn't involve using keystrokes or hot keys to close windows instead of the red X that should work properly?

  • Using derived obj as a parameter in one of the methods

    Hi
    I have a class "class1", which is the parent class. Another class "class2" is derived from class1 (extends class1)
    In class3, there is a method "method3" that uses "class1" obj as a parameter.
    I need to call the same method "method3" in class2 also, by passing "class2" obj as a parameter.
    Is there a way that I can do this.
    Any help is greatly appreciated.

    If the method takes a "class1" type as an argument, then you can pass it anything which is of type "class1" or extends from it. So yes you can pass that same method a "class2" type.

  • Can an Applet call a Perl script that performs Unix file commands?

    Hi,
    I would like my applet to move a Unix file from one directory to another. (Both directories and the file are on the same server as the applet).
    In my applet I have code that calls (I think) a Perl script through a URL connection and passes the name of the file that needs to be moved:
    URL urlMove = new URL("http://myserver.com/cgi-bin/fileMove.pl?" + fileToMove);
    URLConnection urlConn = urlMove.openConnection();
    In the cgi-bin I have a perl script (fileMove.pl) that performs the move:
    #!/usr/bin/perl
    use CGI qw(:standard);
    $pfile = $ENV{?QUERY_STRING?};
    $cmd = ?mv stageArea/$pfile $pfile?;
    system $cmd;
    The Perl script works fine when I call it directly from Internet Explorer, but when I call the script from the Applet the file is not moved. Am I doing something wrong?

    Got it to work!
    Changed the Java code to:
    URL urlMove = new URL("http://myserver.com/cgi-bin/fileMove.pl?" + fileToMove);
    urlMove.openConnection();
    InputStream moveStream = urlMove.openStream();
    and in the Perl script added the line:
    print "Content-Type: text/html\n\n";
    The applet running my a PC is now effortlessly moving files on the unix server, wahoo.
    Aside: I also found that my applet web server and the files the applet reads/writes do not have to be on the same machine. In the applet's cgi-bin directory I created a "link" to the networked unix directory where the image files are actually located. I really expected the Applet I/O Security to complain, but it work like a charm. Go figure.

  • Can a applet to invoke a JavaScript method?

    I have a javascript method like:
    <script language="JavaScript">
    function openURL(strUrl) {
    window.open(strUrl, "statusbar=no, scrollbar=no");
    </script>
    Can a applet to invoke the JavaScript method above sending "strUrl" parameter?

    Yes.
    http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/java_js.html

Maybe you are looking for

  • Urgent::Issue with advanced tables....

    Hi i am new to OA framework i have view instance (associated with a custom table..i want to insert data into this table using advanced table)with X view attributes.. among them one is primary key.i set that using a sequence value.. rest all.. i made

  • My Macbook Fan Is Running Very Loud...

    My fan has been running very loud for the past week and I'm not sure whats wrong with it. 

  • What is the WEP or WPA password?

    I have a friend from out of the country trying to use my airport internet connection and he can not sign on because his computer keeps asking for the WEP or WPA key code. I do not know what this is or where I can find it. Can anyone direct me to wher

  • Download Adobe Bridge CC, English version

    When I try to download Bridge CC i come to the swedish Adobe web site but I want the english version. What to do?

  • To send secure emails

    Hi, How can I send secure emails from my applications? Are there problems with mail-server if I send secure emails? Could someone tell me how to send a secure email to someone from my JAVA application? Thanks a lot.