Problem: Value in Inputfield empty

Hello,
I use the htmlb:tableView and defined one column as editable where a dropdown-list is assigned (by iterator).
In the "OnInputProcessing" I read the new selected value of the edit-column and write this value to my internal table.
Here the Coding of this:
Get Data for tv_cols, the current edited row, and update table
DATA: tab_view TYPE REF TO CL_HTMLB_TABLEVIEW.
DATA: tab_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
DATA value TYPE STRING.
DATA: inputfield TYPE REF TO CL_HTMLB_INPUTFIELD.
FIELD-SYMBOLS: <row> TYPE ZSEM_0APPR_REQU_1.
tab_view ?= CL_HTMLB_MANAGER=>GET_DATA(
                        request      = runtime->server->request
                        name         = 'tableView'
                        id           = 'tab_APPR_REQU_status' ).
get changes into internal table
get changes into internal table
IF NOT tab_view IS INITIAL.
  tab_data = tab_view->data.
  IF NOT last_selected_rowIndex IS INITIAL.
    READ TABLE gtab_APPR_REQU_1
       INDEX last_selected_rowIndex
       ASSIGNING <row>.
    value = tab_data->GET_CELL_ID(
                  row_index    = last_selected_rowIndex
                  column_index = '3' ).
    inputfield ?= CL_HTMLB_MANAGER=>GET_DATA(
                        request      = request
                        name         = 'inputField'
                        id           = value ).
    IF inputField->value is not initial.
        <row>-STATUSIQMS = inputField->value.
    ENDIF.
  ENDIF.
  last_selected_rowIndex = tab_data->SelectedRowIndex.
ENDIF.
Now my problem:
If I select a new line in the tableView the value of the line selected before is in the variable "inputField->value" and everything is working fine.
But if I had selected a line and changed the editable column and then push an save-button on the BSP-Site the variable "inputField->value" is empty. Though the "inputfield" itself was assigned correct.
What's going wrong here? How can I get the new value of last changed line?
Thanks in advance
Christian

Whenever you select a new line the OnInputProcessing fires and you can read the value and store it then when the screen is rendered again the value is there and they are now on the new line to edit.
When you build the element into your table it is assigned the [tablename]_[cell]_[row] and if you know those items then you can do a simple get_form_field call.
Then you have the value and you can do a table UPDATE to save the value.

Similar Messages

  • Problem with radiobuttons & inputfields.

    Hi All,
    I developed one application by using radiobuttons and inputfields.
    when i click on radiobutton i can able to enter the value in the corresponding input field. when i click on second radiobutton i can able to enter the value in the corresponding inputfield and the value in the firstinput field is cleared.This is fine and working according to my requirement.
    Now my problem is with inputfields.when i click on the firstinputfield directly(i.e with out selecting radiobutton) and entering the value in that field.Then after pressing enter the corresponding radiobutton is activating.
    but i want that radiobutton should be activated when i just click on the corresponding inputfield.
    How to acheive this.
    Is there any posibilty to get event apart from onEnter for inputfield.
    i think u got my requirement.
    Regards
    Sreelakshmi.

    Hi Sreelakshmi,
    I hope ur requirement is such that the UI should behave in both ways (i.e, Activating the Input Field when the radio button is clicked or vice-versa).
    For this u can write the action code in both the UI elements, i.e when radio button is clicked enable the InputField or onEnter Action of the InputField write the code to make the corresponding radio button active.
    There is another way which i can suggest u is that, u can disable the Input Field as long as the User doesn't click on the Radiobutton.
    Hope this helps u.
    Regards,
    Poojith M V

  • Problem about Handling of Empty Files in File Adapter

    Hello everyone,
    NetWeaver 2004s --- XI
    In Sender i have a File Adapter.
    Now i meet a problem about Handling of Empty Files. When i send empty file, but don't cerate a leer message.
    I have seen following text in help document. But in adapter configuration i can not find the correspond parameter.
    can you give me some tips?
    Thx in advance
    best regards
    Yaning
    SAP Help Document über File Adapter
    +Handling of Empty Files
    Specify how empty files (length 0 bytes) are to be handled.
    &#9675;       Do Not Create Message
    No XI messages are created from empty files.
    The files are processed according to the selected Processing Mode.
    For example, if the processing mode is Delete, empty files are deleted in the source directory.
    &#9675;       Process Empty Files
    XI messages are created with an empty main payload.
    The files are processed according to the selected Processing Mode.
    &#9675;       Skip Empty Files
    No XI messages are created from empty files.
    Empty files are skipped and remain in the source directory.+
    Help Docu

    hi,
    it's available since Sp19 for XI 3.0
    and the corresponding SPS fpr XI 7.0
    http://help.sap.com/saphelp_nw04/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm
    so probably you need to install the new SP
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Determine if value passed is empty

    Hello,
    i am attempting to determine if a value passed as a parameter to a stored procedure in a package is empty. The relevant target field in the database does not allow nulls, but the interface passes several values to be inserted and must determine if any of them are empty and if so skip inserting that value through the stored procedure and move on to next passed value. The syntax compiles okay but i get an error.
    For example;
    If passing several name values, i.e. 'Mr', 'John', 'Smith', and all with a value inserted into field Name_Value and the code to determine if empty is;
    If P_NameText <> '' Then
    <process statements>
    End if;
    If the title value inputted is empty the error i receive is;
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("Database_Name"."NAME_VALUE")
    ORA-06512: at "PKG_INSERT_CUST", line 307
    ORA-06512: at "PKG_INSERT_CUST", line 89
    ORA-06512: at line 1
    Thanks in advance, i'm fairly new to Oracle.

    Hello,
    i am attempting to determine if a value passed as a
    parameter to a stored procedure in a package is
    empty. The relevant target field in the database
    does not allow nulls, but the interface passes
    several values to be inserted and must determine if
    any of them are empty and if so skip inserting that
    value through the stored procedure and move on to
    next passed value. The syntax compiles okay but i
    get an error.
    For example;
    If passing several name values, i.e. 'Mr', 'John',
    'Smith', and all with a value inserted into field
    Name_Value and the code to determine if empty is;
    If P_NameText <> '' Then
    <process statements>
    if;
    If the title value inputted is empty the error i
    receive is;
    ERROR at line 1:
    ORA-01400: cannot insert NULL into
    ("Database_Name"."NAME_VALUE")
    ORA-06512: at "PKG_INSERT_CUST", line 307
    ORA-06512: at "PKG_INSERT_CUST", line 89
    ORA-06512: at line 1
    Thanks in advance, i'm fairly new to Oracle.This error due to constraint which you defined at table level can handle it by
    If P_NameText IS NULL Then
           Raise_application_error(-20011, 'Name cannot be null..');
    ELSE
          <process statements>;
    End if;Depends what value you pass NULL,' '.
    Khurram

  • Problem with a thousend empty playlist in iTunes Match.

    I need a help to reset my itunes match because have a problem with a thousend empty playlist.

    Funny thing: I just reset the iPad 2 again and was careful to shut off iTunes Match. Almost immediately my iPhone 4s updated and showed no more duplicate "recent" playlists. A check of my Laptop also shows none. So now it's isolated to the iPad. Guess I'll leave Match shut off for a day or two.

  • What is initial value of an empty drop-down?

    I have written a script to populate the items in a drop-down list but only if there is no entry already existing.
    The problem I have is recognizing that the list is empty. I have tried to test for null (if dropdown.isNull = true) and testing the
    rawValue = "" and a bunch of other things with no good result.
    I'm sure this is easy but apparently not for me.
    Thanks for the help!

    Those commands are testing the value that is selected by the user. As they have not selected anything yet they will not have a value.
    The command:
    DropDownList1.items.nodes.length
    Will give you the number of items in the DDlist. It is 1 based. Note that it will not count any items that were added to the dropdown by the user.
    Paul

  • The fixed value date is empty and not displayed in the VA05 report

    Hi SD Gurus,
    With in the Sales Order in the line item level in the billing tab we have the fixed value date (VBKD - VALDT) were entered. 
    But when we try to execute the report VA05 were the fixed value date column shows empty (i.e without the date it shows the blank).  Can you any one help me with regard.
    We would like to fix this problem.
    Thanks in advance for providing solution to this query.
    Thanks and Regards,
    SAP-SD group

    Hi janarthanam,
    Ok.
    Goto t-code SQVI,SAP Quickviewer.
    Give a name to your query and enter description ,etc.
    Next enter the table from which you want to fetch data,ie,VBKD .
    Select "Layout mode" for displaying data on the SAP screen or "Basis mode " if you want to extract the data to a word doc,excelsheet or a flat file.
    Next you can select the fields you want to display into your report,their position and ascending/descending order,Here make sure u select
    the field u need to display ie. the fixed value date ( VALDT) .
    also select the fields u wish to have in the selection criteria.
    Enter these required information and u would get a report on the SAP screen or in your desired format.
    Hope it will suffice you.
    For any queries ,your are welcomed.
    Thanks,
    Umesh.

  • Report value is showing empty ,

    Hi Gurus ,
    i have i added new keyfigure in to query & its showing in the report also
    But problem is the value of the keyfigure showing empty ,where as in the cube all values are 0.00
    i want the keyfigures values should be 0.00
    could any one help me out
    Berry

    Hi KP,
    thanks for u r reply , i was doing in Development, if i  made this chages as peer your direction surpress Zero,
    If it is transported to Production if the valus are like 5845 (example ), is it diplays 5845 are Zero
    Please let us know
    Thanks in advance
    Berry

  • File Content Conversion Problem of not generating empty file

    Hi All,
    i have 3 input text files for my BPM to process.
    if any of the text file is empty, i need to generate an alert message that the file is empty........but the problem is file adapter does not generate a XML message for the empty text file..........
    <b>Can anybody suggest how to generate the alert if any of the 3 text files is empty.</b>
    Thanks,
    Rajeev Gupta

    Rajeev~
    I dont find ur mail Id in ur Business card.Post the same..I will send you across a PDF with steps to write a adapter module.You would need to extend the same to check the payload for empty data and accordingly create a XML payload with checkpointer.
    For validating this value in a BPM use the FORK step and check the payload in the condition editor.
    Refer to this url for the same.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm</a>

  • How to make default value of property "empty" with label "- Select -"?

    Hi,
    Is it possible to make the default value empty/null/blank, when one creates a new property in KM > CM > Global Services > Property Metadata > Properties?
    If I leave the default value blank, the dropdown menu turns empty, when the corresponding XML form uses the property. So how do I get around this problem?
    Regards,
    Martin

    Anyone?
    I guess the answer is not as simple as the question?

  • SQLLDR - how to set a default value for an empty string

    I'm using SQLLDR to load data from a flat file on Oracle 10g 10.2.0.4 EE, Linux RHEL 4 update 6. Seems like my question is simple, but darned if I can't find the solution.
    My source file (comma delimited extracted form a different RDBMS) has some (not all) rows where the output for a string is "", and not NULL. How do I check for empty string and add a default value in the control file? The target column is non-nullable
    Here's my current control file - however, the column attributeName where sometimes the source record is "" does not get evaluated as NULL.
    load data
    infile 'mydata.del'
    badfile 'mydata.bad'
    discardfile 'mydata.dsc'
    into table mydata
    fields terminated by "," optionally enclosed by '"'
       TRAILING NULLCOLS           
    (l_metadata,
    company,
    className,
    attributeName "decode(:vc_attributeName,null, 'none')",
    attributeDefault)
    {code}
    When I tried decode with "", I received the following error:
    {code}SQL*Loader-350: Syntax error at line 11.
    Expecting "," or ")", found ", 'none')".
    attributeName "decode(:vc_attributeName,"", 'none')", {code}
    This does not work either:
    {code}
    load data
    infile 'mydata.del'
    badfile 'mydata.bad'
    discardfile 'mydata.dsc'
    into table mydata
    fields terminated by "," optionally enclosed by '"'
       TRAILING NULLCOLS           
    (l_metadata,
    company,
    className,
    attributeName NULLIF attributeName = BLANKS ,"decode(:vc_attributeName,null, 'none')",
    attributeDefault) I get the following in the log:
    Table COMPANYMETADATA, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    L_METADATA                          FIRST     *   ,  O(") CHARACTER
    COMPANY                            NEXT     *   ,  O(") CHARACTER
    CLASSNAME                         NEXT     *   ,  O(") CHARACTER
    ATTRIBUTENAME                     NEXT     *   ,  O(") CHARACTER
        NULL if ATTRIBUTENAME = BLANKS
        SQL string for column : "decode(:attributeName,null, 'none')"
    ATTRIBUTEDEFAULT                  NEXT     *   ,  O(") CHARACTER
    Record 1: Rejected - Error on table COMPANYMETADATA, column ATTRIBUTENAME.
    ORA-01400: cannot insert NULL into ("SRV5"."COMPANYMETADATA"."ATTRIBUTENAME")
    {code}
    Any help is appreciated -
    Edited by: kpw on Feb 9, 2009 11:10 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    I just loaded following data successfully in my_data table using the same control file I posted. Yes it will evaluate "" as null and replace with none, remember in control file you have this option, "optionally enclosed by '"'.
    #my_data.dat
    "myname1", "attribname1"
    "myname2", "attribname2"
    "myname3", "attribname3"
    "myname4", ""
    #my_data.ctl
    load data
    into table my_data
    fields terminated by "," optionally enclosed by '"'
    TRAILING NULLCOLS           
    my_name char(30),
    vc_attributeName "decode(:vc_attributeName,null, 'none', :vc_attributeName)"
    {code}
    Here is the output log file
    {code}
    Control File:   my_data.ctl
    Data File:      mydata.dat
      Bad File:     mydata.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table MY_DATA, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    MY_NAME                             FIRST    30   ,  O(") CHARACTER           
    VC_ATTRIBUTENAME                     NEXT     *   ,  O(") CHARACTER           
        SQL string for column : "decode(:vc_attributeName,null, 'none', :vc_attributeName)"
    Table MY_DATA:
      4 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                  18560 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             4
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Mon Feb 09 18:17:35 2009
    Run ended on Mon Feb 09 18:17:36 2009
    Elapsed time was:     00:00:00.98
    CPU time was:         00:00:00.10
    {code}
    Hope this helps clearing your dobuts
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Jabber for Windows 10.6.1 Problem: Chat History sporadically empty

    Hi,
    we have Jabber for Windows 10.6.1 running on Win 7 64bit Machines. We have the Problem that sporadically the Chat History windows is empty. If this happens, I cannot see my incoming chats (but I can hear Audio that a IM just arrived) and I also cannot see IM Messages I sent out. Also no Screencaptures can be seen in the Chat-History. I also cannot rightclick into the Chat History window to print or save the Chat. Whenever I restart Jabber (not just logging off), it is working again for a couple of time!
    Please Cisco help me out. I cannot find a open Bug in the current Release Notes.
    Regards
    Rene

    Hello Scott,
    thanks for your answer! We don't have IE11 installed, so we don't have this MS Patch on our systems :-(
    I am going to look deeper into this,... maybe another MS Patch. Also have to contact TAC.
    Thanks.

  • Problem with searching for 'empty' emails with BAPI_BUPA_SEARCH

    Dear ABAP'ers.
    I have got a small problem with BAPI_BUPA_SEARCH.
    I Use this BAPI to search for Business Partners with the Email condition.
    I put rhe Email to lv_email variable, it works ok.
        lv_email = ' '
        CALL FUNCTION 'BAPI_BUPA_SEARCH'
          EXPORTING
            email = lv_email
          TABLES
            searchresult = lt_searchresult   <= returns no BuPas
            return       = ls_bapiret2  .
    But I need to have a possibility to search for such Business Partners who have got no email address. Unfortunatellu when I pass an empty lv_email to BAPI, it returns no Business Partners whilst such BuPas exist in database.
    Is there some possibility to search for those BuPas who have got no email address assigned?
    I will be thankful for help.
    Regards,
    P.

    Can you query ADR6 table where SMTP_ADDR = space.
    and pick the PERSNUMBER or ADDRNUMBER and pick the Patners related to that ..

  • Problem: oad.log file empty.

    I have installed ias9i (1.0.2.2) on AIX cluster (4 cards). Installation went successfuly. Discoverer proceses started but I can't log into discoverer viwer. The message is:
    "Unable to bind oad"
    So I followed all advaices published on metalink:
    1. Nslookup -> OK.
    2. Check pref.txt for MachineIP and applypreferences.sh -> OK.
    3. Add -a -OAipAddr -a 147.181.239.43 to registersession.sh, registerlocator.sh, registerpreferences.sh -> OK.
    4. Add -OAipAddr 147.181.239.43 to startlocator.sh -> OK.
    5. Add -OAipAddr 147.181.239.43 to startoad.sh or -host 147.181.239.43 to oadutil -> Failed.
    The oad starts but it seems that in other subnet (locator cannot contact it and registersession also), but I can't check that because oad.log is empty (I have added -v option ofcource).
    I have tried to restart all services, delete logs and so on several times.
    What is the problem? Thakns in advance for any help.
    regards
    Krzysztof

    Could you please repost this question over on the Flash Professional forums?  This forum is primarily for end users, the Pro forums will get you in touch with a wider developer audience.
    Thanks,
    Chris

  • Problem - Values are not stored into Tables when value are accepted from us

    // jsp code
    <%@ page import="java.util.Enumeration" %>
    <%@ page import="java.util.Vector" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="beans.register2" %>
    <jsp:useBean id="registerbn" scope= "session" class="beans.register2" />
    <% String base = (String) session.getAttribute("base");
    registerbn.setDburl((String)session.getAttribute("dbUrl"));
    registerbn.setDbuser((String)session.getAttribute("dbUserName"));
    registerbn.setDbpasswd((String)session.getAttribute("dbPassword"));
    System.out.println("Inside jsp - setMembers of promotion successful");
    // registerbn.setMembers1();
    System.out.println("after setting");
    %>
    <%
    String action=request.getParameter("action");
    %>
    <HTML>
    <HEAD>
    <TITLE> TIFR INTRANET </TITLE>
    </HEAD>
    <HEAD>
    <script language="JavaScript1.2">
    //some validations functions
    </script>
    </head>
    <body>
    <table valign="top" align="top">
    <TR>
    <TD COLSPAN="100%"><jsp:include page="Header.jsp" flush="true"/></TD>
    </TR>
    <TR>
    <TD align="top" valign="top"><jsp:include page="menu.jsp" flush="true"/>
    <font face="arial" size="1">
    site developed by ADPCell TIFR
    </font>
    </td>
    <td>
    <table cellpadding="2" cellspacing="3" width="40%">
    <form method="post" action="./beans.register2">
    <td width="40" align="center"
    <font face="arial" size="5" align="right">
    <b>
    Registration <hr> </hr>
    </b>
    </font>
    <br>
    </td>
    <tr valign="center" width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">IdCode </b> </font>
    </td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="idcode" size="6" style="border-style:solid" value="">
    </font></b>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">User </font></B></td>
    <td width="40%">
    <input type="text" name="user" size="12" style="border-style: solid" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Password </font></B></td>
    <td width="40%">
    <input type="password" name="password" size="25" tabindex="20" style="border-style: solid" width="12" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Section code </font></b></td>
    <td width="40%">
    <select size="1" name="section_code" tabindex="9"
    style="border-style: solid">
    <%@ include file="section.txt" %>
    <!-- left for password -->
    1)
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Category </font> </b></td>
    <td width="80%">
    <font face="arial" size="2"> <b>
    <input type="radio" name="Category" value="General">General
    <input type="radio" name="Category" Value="Operators">Operators
    <input type="radio" name="Category" Value="Heads">Heads<BR>
    </b> </font>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Budget Category </font> <b> </td>
    <td width="40%">
    <font face="Arial" size="2"> <b>
    <input type="radio" name="BCategory" value="General">BGeneral
    <input type="radio" name="BCategory" Value="Operators">Operators
    <input type="radio" name="BCategory" Value="Head">Head
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Budget Heads
    </font></b></td>
    <td width="40%">
    <b><font face="Arial" size="4">
    <textarea rows="2" name="Bheads" cols="20" size="100"
    style="border-style: solid">
    </textarea></font></b></td></tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Other Category</font></b></td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <select size="1" name="OtherCategory" tabindex="20" style="border-style:
    solid" size="2"><OPTION value="EH">EH
    <OPTION value="EO">EO
    <OPTION value="FH">FH
    <OPTION value="FO">FO
    <OPTION value="AO">AO
    <OPTION value="AH">AH
    </select></font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">email </font></b></td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="email" size="20" style="border-style:
    solid" width="6">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <font face="Arial" size="2"><b>Dob </font></b></td>
    <td width="40%">
    <font face="Arial" size="2"><b>
    <select size="1" name="day" style="border-style: solid"><OPTION value="0">Day
    <% int i;
    for(i=1;i<=31;i++)
    out.print("<OPTION VALUE=\""+i+"\">"+i+"</option>");
    %>
    </select>  
    <select size="1" name="month" style="border-style: solid" ><OPTION value="0">Month
    <OPTION value="1" >January
    <OPTION value="2" >February
    <OPTION value="3" >March
    <OPTION value="4" >April
    <OPTION value="5" >May
    <OPTION value="6" >June
    <OPTION value="7" >July
    <OPTION value="8" >August
    <OPTION value="9" >September
    <OPTION value="10">October
    <OPTION value="11">November
    <OPTION value="12">December
    </select>
    <select size="1" name="year" style="border-style: solid">
    <% int j;
    for(j=1950;j<=2000;j++)
    out.print("<option value=\""+j+"\">"+j+"</option>");
    %>
    </select></b></font></td>
    </tr>
    <br> <br>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Date of Join
    </font></b></td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <select size="1" name="day1" style="border-style: solid"><OPTION value="0">Day
    <% int k;
    for(k=1;k<=31;k++)
    out.print("<OPTION VALUE=\""+k+"\">"+k+"</option>");
    %>
    </select>
    <select size="1" name="month1" style="border-style: solid" ><OPTION value="0">Month
    <OPTION value="1" >January
    <OPTION value="2" >February
    <OPTION value="3" >March
    <OPTION value="4" >April
    <OPTION value="5" >May
    <OPTION value="6" >June
    <OPTION value="7" >July
    <OPTION value="8" >August
    <OPTION value="9" >September
    <OPTION value="10" >October
    <OPTION value="11" >November
    <OPTION value="12" >December
    </select> 
    <select size="1" name="year1" style="border-style: solid">
    <% int l;
    for(l=1950;l<=2000;l++)
    out.print("<OPTION VALUE=\""+l+"\">"+l+"</option>");
    %>
    </select>
    </b></font></td>
    </tr>
    </table>
    <table cellpadding="2" cellspacing="3" width="40%" >
    <tr width="100%">
    <td width="30%">
    <input type="Submit" value="Submit" name="B1" > </td>
    <td width="40%">
    <input type="reset" value="Reset" name="B2"></td>
    <%
    //String action=request.getParameter("Submit1");
    if(action!=null && action.equals("Submit"))
    try{
    String idcode=request.getParameter("idcode");
    String user=request.getParameter("user");
    String password=request.getParameter("password");
    String seccode=request.getParameter("section_code");
    String Category=request.getParameter("Category");
    String BCategory=request.getParameter("BCategory");
    String Bheads=request.getParameter("Bheads");
    String OtherCategory=request.getParameter("OtherCategory");
    String email=request.getParameter("email");
    String day=request.getParameter("day");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String Dob=day+"/"+month+"/"+year;
    String day1=request.getParameter("day1");
    String month1=request.getParameter("month1");
    String year1=request.getParameter("year1");
    String Doj=day1+"/"+month1+"/"+year1;
    registerbn.setIdcode("idcode");
    registerbn.setUser("user");
    registerbn.setPasswd("password");
    registerbn.setSec_code("seccode");
    registerbn.setCategory("Category");
    registerbn.setBut_cat("BCategory");
    registerbn.setBut_heads("Bheads");
    registerbn.setOther_Category("OtherCategory");
    registerbn.setEmail("email");
    registerbn.setDob("Dob");
    registerbn.setDoj("Doj");
    registerbn.saveData();
    }catch(Exception ex)
    out.println("ERROR :has occured ");
    %>
    </table>
    </table>
    </table>
    </form>
    </td>
    </tr>
    <jsp include page="Footer.jsp" flush="true"/>
    ------------------ End of JSP Programs ----------------
    // Beans Code
    package beans;
    import java.util.*;
    import java.util.Date;
    import java.util.Vector;
    import java.sql.*;
    public class register
    private String idcode;
    private String user;
    private String passwd;
    private String sec_code;
    private Vector sec_names;
    private String category;
    private String bud_cat;
    private String bud_heads;
    private String other_category;
    private String email;
    private String dob;
    private String doj;
    private String ent_dt;
    private String act_dt;
    private String dbUrl=null;
    private String dbUser=null;
    private String dbPassword=null;
    public void setDburl(String u)
    dbUrl=u;
    public void setDbuser(String us)
    dbUser=us;
    public void setDbpasswd(String Pass)
    dbPassword=Pass;
    public String getIdcode()
    return idcode;
    public void setIdcode(String i)
    idcode=i;
    public String getUser()
    return user;
    public void setUser(String u)
    user=u;
    public String getPasswd()
    return passwd;
    public void setPasswd(String p)
    passwd=p;
    public Vector getSec_names()
    return sec_names;
    public void setSec_names()
    // This function should select valid section code from the database and then populate the sec_names vector.
    public String getSec_code()
    return sec_code;
    public void setSec_code(String s)
    sec_code=s;
    public String getCategory()
    return category;
    public void setCategory(String c)
    category=c;
    public String getBud_cat()
    return bud_cat;
    public void setBud_cat(String b)
    bud_cat=b;
    public String getBud_heads()
    return bud_heads;
    public void setBud_heads(String b)
    bud_heads=b;
    public String getOther_Category()
    return other_category;
    public void setOther_category(String o)
    other_category=o;
    public String getEmail()
    return email;
    public void setEmail(String s)
    email=s;
    public String getDob()
    return dob;
    public void setDob(String d)
    dob=d;
    public String getDoj()
    return doj;
    public void setDoj(String d)
    doj=d;
    public String getAct_dt()
    return act_dt;
    public void setAct_dt(String d)
    act_dt=d;
    public void setMembers()
    Connection conn;
    Statement stmt;
    String query="Select sec_code from web.section";
    sec_details=new Vector();
    try
    conn=DriverManager.getConnection(dbUrl, dbUser, dbPassword);
    System.out.println("connected");
    stmt=conn.createStatement();
    System.out.println("Statement Created");
    ResultSet rs=stmt.executeQuery(query);
    do
    String seccode=rs.getString(1);
    sec_details.addElement(seccode);
    }while(rs.next());
    rs.close();
    stmt.close();
    conn.close();
    }catch(SQLException e)
    System.out.println("Execution Occured" +e);
    catch(Exception e)
    System.out.println("Execution Occured" +e);
    public void saveData()
    Connection conn;
    Statement stmt;
    String id=getIdcode();
    String use=getUser();
    String pass=getPasswd();
    String mail=getEmail();
    String sec=getSec_code();
    String cat=getCategory();
    String oth=getOther_Category();
    String bud=getBud_cat();
    String dob1=getDob();
    String doj1=getDoj();
    String budh=getBud_heads();
    String query="insert into wb_register " + "(idcode, user, passwd, sec_code, category, bud_cat, bud_heads, other_category, email , dob, doj, ent_dt)" + " values('"+id+"','"+use+"','"+pass+"','"+sec+"','"+cat+"','"+bud+"','" budh"','" oth"','"+mail+"','"+dob1+"','"+doj1+"','"+"Sysdate"+"')";
    try
    conn=DriverManager.getConnection(dbUrl,dbUser,dbPassword);
    System.out.println("connected");
    stmt=conn.createStatement();
    stmt.executeUpdate(query);
    stmt.close();
    conn.close();
    catch(SQLException e)
    System.out.println("Exception occured" +e);
    catch(Exception er)
    System.out.println("Exception occured" +er);
    ------------------------End of Beans Program ---------------
    Questions:-
    1) when we are submitting values to form it is not stored into backend (Oracle 9i)
    2) please send some source code for how to fetch values from backend and wants stored into Combo box /select Box
    3) We have faced problem of How call methods of Bean program into JSP programs

    The code to get the values from the database and store them in the combo box or select box would be as follows:
    <%
    zSQL = "select id, name from Users"
    rs = Con.ExecuteQuery(zSQL);
    if(!rs.next()) {
    %>
    <select name="id">
    <option value="0">select the name</option>
    <%
    do {
    %>
    <option value="<%= rs.getString(1) %>"><%= rs.getString(2) %></option>
    <%
    while (rs.next());
    %>
    </select>
    <%
    else {
    out.println("No Record Found");
    %>
    This would help you better.
    and for your first question, please check whether u are able to connect database with your connection method. if you are able to connect to the database, then please check the values (print them on the browser) which are posted from form, if it is also correct then check you r insert statement.
    and for your last question the best tutorial is JAVA API.
    Cheers!
    Rambee

Maybe you are looking for

  • Calendar on iPhone & MacBook not syncing correctly

    I have lost various items from last year from my iPhone calendar, they do appear on my MacBook. I entered some of the old items again as I needed them for reference, they appeared OK but when I went to the next date to do another entry and came back

  • Is there a way to get my deleted sent messages bac...

    I have deleted my sent txt messages and i need to get them back. does anyone know if it is possible to do this??

  • Charts and graph shown as --array and cluster datatype in block diagram

    Hi friends, I new user... I have a basic doubt... In many examples the graph and charts are shown as "array data type and cluster data type "------in the block diagram panel... Please tell me, how these data types are shown as graph and charts in the

  • Error in Letter of Credits

    Hi All, I have an issue in identifying the delivery documents which has created an impact in LOC financial document. Financial document Value is 299,415.00 and 2 consignment issue documents has been created with value of 149,707.50 (each order). Only

  • Elitepad 900 tablet shows missing serial and product info when booting

    Hi, i recently updated my tablet from windows 8 to windows 8.1 and then updated bios. after this upgrade on boot screen it shows missing aerial number and product info. please note that i have not changed the board or any other hardware. please help