How can i invole a function whose name I don't know until excecution time

Hello,
I would like to invoke a function in my jsp file but I don't know the name until it gets executed (the user enters part of the function name).
The name of the method is made of "proc_" + something specified during the excecution.
Now, I need to call this function (defined in a JavaBean).... but I don't have a clue of how doing it.
All the functions proc_..... are defined the same way:
public String proc_...... (String params)
Could you tell me how I could do it?

THank you to everybody for your help. I had a look at the tutorial but I must admit it was not that clear to me... I am afraid I did not seem to find something close to what I needed.... I need more help from the experts.
Let me give you more details.
I have some stored procedures called update_<table_name> and create_<table_name>. All those procedures will return a string and will have a string as parameter.
I have a java class called for instance myProc.java. Inside this class, I would like to have something like:
public String[] update(String tableName, String params)
..... call to the stored procedure update_<tableName> with the parameters.
.... get the String as return.
public String[] create(String tableName, String params)
..... call to the stored procedure create_<tableName> with the parameters.
.... get the String as return.
Now, I have a jsp file that will call the class using something like:
String[] res= conn.create(<table_name>, <params>);
COuld you help me on this?
THanks
Elisabeth

Similar Messages

  • How can i call a function whose name will be  known only at run time

    how can i make a call to a function whose name will be known only at run time

    Instead, have a function - we should say method -
    with a known name, taking a string as argument.Or, specified classes with known names and a no-arg
    c'tor that implement a mutual interface, so you can
    grab an instance using forName/newInstance, cast the
    reference and invoke the interface's doMagic() method.@OP: Best you describe your actual problem, then we could help you with a better solution maybe.
    -Puce

  • Can I Execute a function whose name is stored in a string variable?

    Can I execute a function whose name is stored in a string variable?
    Like
    Depending on the condition I will stroed the name of the function in a string variable. Then using that string variable i want to execute the function.
    String str=��
    iVal an int can take ne value
    Switch(iVal)
    Case 1:
    str=�test1()�;
    Case 2:
    str=�test2()�;
    I want whatever function name is in str to be executed.
    ----------------------------------------------------------------------------------

    For just executing a method or two, reflection might be easier than beanshell (or it might not). For executing entire scripts, beanshell will be preferable over reflection.
    (I assume beanshell uses reflection under the hood, but I've never bothered to peek.)

  • How can I delete my Icloud account when I don't know the password and no longer have the email address associated with it?

    How can I delete my Icloud account when I don't know the password and no longer have the email address associated with it?
    You need your password to delete it and I need the email address to reset the password.  I feel like I'm going in circles!!!  Please help!!!

    Go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address (you shouldn't need to verify the old account).  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can I change my security questions when I don't know them

    How can I change my security questions when I don't know them at all

    Reset Security Questions
    http://support.apple.com/kb/HT5312
    If you can't solve problem, call Apple to help reset your Security Question.
    http://support.apple.com/kb/HT5699

  • Call a function whose name will not be known before run time

    how can i make a call to a function whose name will not be known to me before run time.

    how can i make a call to a function whose name will
    not be known to me before run time.That smells like a design-flaw! Care to explain what it is you're trying to do exactly? Perhaps I, or someone else, can suggest another (maybe even better/easier) approach.

  • How can I get into my iTunes if I don't know the answers I put I in for the security questons

    How can I change security questions since I don't know the answers to the ones they are Asking me?

    http://support.apple.com/kb/ht1808

  • How can I cancel my icloud account when I don't know the password that it has with my wrong email address?

    My IPhone5 wants my password, but it doesn't have the right email address on it.  It won't let me delete the icloud because it demands that I give it the password that icloud has stored.  Please help!

    The iCloud account is your account ? If it's somebody else's account then you will need to contact that person and ask them to remove the phone from their account.
    If it is your account then see if you can get the password reset via http://appleid.apple.com
    If you can't then try contacting Support in your country and see if they get you access to it : http://support.apple.com/kb/HT5699
    (For info this is the Using iPad forum.)

  • How can i change my iCloud email when i don't know previous apple id password

    my little brother and i share the same apple id and he messed with everything and i am unable to get on my old apple id so i made a new one but i can't delete it off my phone and i can't change my email for iCloud because i can't get on my old apple id

    You need to get the previous Apple ID password reset. The only way to do that is to log onto Manage your Apple ID  and click on Reset Password for the Apple ID you need to sign off of the device:
    Apple - My Apple ID
    You will have to answer the Security Questions. If you do not know the answers, you will have to have Apple Support reset them for you:
    ACCOUNT SECURITY CONTACT NUMBERS
    Cheers,
    GB

  • HT201441 how Bypass iCloud Activation Lock ios 7 and how can i contact the previous owner if i don't know him?

    ?

    I found an iphone 4, and I would like to return its owner. With activation lock, there is no way i could reach him/her???? *any suggestion, maybe should I contact apple or icloud ??? Thanks

  • When I sign in to my Apple ID how do I reset my security questions if I don't know them

    How can u reset ur security questions when u don't know them

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • How can i use reuse_alv_fieldcatalog_merge function module

    I am using below steps for populating the final internal table.How can I use reuse_alv_fieldcatalog_merge function module in the place of declaring all these fields.How canI put title of the report in reuse_alv_fieldcatalog_merge function module.
    FORM BUILD_FIELDCATALOG .
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'KUNNR'.
      FIELDCAT-SELTEXT_M = 'Customer Name'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VBELN'.
      FIELDCAT-SELTEXT_M = 'Invoice Reference'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKBUR'.
      FIELDCAT-SELTEXT_M = 'Sales Office'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKGRP'.
      FIELDCAT-SELTEXT_M = 'Sales Person'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'POSNR'.
      FIELDCAT-SELTEXT_M = 'Item No'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FIANL'.
      FIELDCAT-FIELDNAME = 'ARKTX'.
      FIELDCAT-SELTEXT_M = 'Item Description'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.

    Hello,
    It is very easy to use reuse_alv_fieldcatalog_merge.
    You try this it will work.
    example
    data:
    DATA : gv_repid        TYPE syrepid VALUE sy-repid .  " Report id
      PERFORM set_field_catalog USING gst_struct CHANGING lst_fieldcat.
    FORM set_field_catalog  USING uv_tab TYPE slis_tabname
                         CHANGING  xt_fieldcatalog TYPE slis_t_fieldcat_alv.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = gv_repid
          i_internal_tabname     = uv_tab
          i_inclname             = gv_repid
        CHANGING
          ct_fieldcat            = xt_fieldcatalog
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " set_field_catalog_spec

  • How can find  database field and table name

    how can find the underline database field name,table name from java page. Example. in oracle apps when we go purchaseing super user then supplier base then supplier and find supplier detail .

    Hi,
    depends on your model. If you work with ADF BC then you can use ViewLinks to access parent or detail infromation programmatically. See the developer guides for more information. Note that you wont access the tables directly but the collections that represent the records
    Frank

  • HT204053 I have an iCloud account on my Mac which has a different account name to that on my iPhone. How can I change the Mac account name to that on the iPhone?

    Hi,
    I have an iCloud account on my Mac which has a different account name to the iCloud account on my iPhone. How can I change the Mac account name to match the iPhone one? Kuranda.

    You can't change it in one step. Sign out of the one now on the Mac, sign onto the right one.

  • I have a problem with mail autofilling info email addresses. Emails sent to me the from looks like this: Holiday in the United States email address . I have no idea what this Holiday in the United States is...How can I fix/change to my name?

    I have an irritating problem with mail autofilling info in email addresses. Emails sent to me the from looks like this: Holiday in the United States <my email address>. I have no idea what this Holiday in the United States is or how it got to be there...How can I fix/change to my name?
    I fixed the To: autofilling incorrectly by deleting my email address from the Previous Recipients List, but is there a way to stop that from coming up on emails that I receive?

    Have you checked your Mac address book? If your email is saved somewhere in your address book with the name "Holidays in the United States" it might be adding the name automatically in Mac Mail.
    Alternatively, try this:
    Delete an Email Address from Auto-Complete in Mac OS X Mail
    To remove an email address from the auto-complete list in Mac OS X Mail:
    Start typing the recipient's address or name in a new message.
    Select the desired address from the auto-complete list as if you'd compose an email to them.
    Click the small down arrow in the recipient.
    Select Remove from Previous Recipients List from the menu.
    You can also search for the unwanted address directly in the previous recipients list:
    Select Window | Previous Recipients from the menu in Mac OS X Mail.
    Highlight the address you want to remove.You can highlight multiple addresses by holding down the Command key.
    Click Remove from List.
    Source: About.com

Maybe you are looking for

  • Multiple Master Detail Relation In Forms 6i

    I have tables as below 1.Bill_Head Bill_No Bill_Date Fin_Year_Cd Remarks 2.Bill_Tail Bill_No Product_Cd Amount Ded_Amount Net_Amount 3.Bill_Tail_Det Bill_No Product_Cd Quantity Rate Interest_Percent Service_Charge Vat_Tax_Percent The Relation is like

  • How to import order from Interface table using Api Order Import

    Hi All I am using oracle EBus R12. I was working in Data migration in Order management. I have manually entered data in Interface table ie (oe_header_iface_all) and (oe_lines_iface_all) And i have given the order_source_id as 2 and order_source as CO

  • HT1338 Mac forgets time and date when battery runs flat

    My Mac Book Pro forgets time, date and network password when battery runs flat. My software is up to date. The computer is about three years, but surely it shouldn't be necessary to change battery every three years? I have seen others with problem, b

  • SMARTFORM Printing: Invoice header company name does not appear

    Hi Experts, I have a problem with the invoice SMARTFORMS whereas when the invoice exceeds more than 1 page, the company name at the left topmost part of the form doesn't appear. The window that contains this should only appear in the first page and w

  • USER_LOCK PKG

    can anyone tell me how to run USER_SQL pkg.......... as i have seen its $ORACLE_HOME/RDBMS/ADMIN/userlock.sql.... i wanna know that how can i grant execute right on this pkg to role PUBLIC.... regards soumen