Reference to variable in Page Process

I have written a SQL query in Page Processes that works with a hard coded variable. How do I reference this program with a table variable? Can you provide an example.
Thanks,
Steve

Hi Scott,
I appreciate you looking into this. Below is the source code I am referring to:
DECLARE
v_part CHARACTER(8);
v_vibration NUMBER(4,1);
v_nom_flow NUMBER(5,3);
v_nozzle_sz NUMBER(5,4);
v_spm_limit NUMBER(3,1);
v_test_pr NUMBER(4,1);
BEGIN
SELECT mod_part,mod_vibration,mod_nom_flow,mod_nozzle_sz,mod_spm_limit,mod_test_pr
INTO v_part,v_vibration,v_nom_flow,v_nozzle_sz,v_spm_limit,v_test_pr
FROM cat_model
-- WHERE mod_part = 8756321;
WHERE mod_part = :P8_PART_NO;
UPDATE cat_input
SET in_fan_pwr = v_vibration,
in_cubic_met = v_nom_flow,
in_nozzle_sz = v_nozzle_sz,
in_k_factor = v_spm_limit,
in_disc_pr = v_test_pr
END;
The item P8_PART_NO is defined hidden with the properties from my earlier post. The program works for the hard coded value, remarked in the program. I believe no data is getting to the item.
Thanks Again,
Steve

Similar Messages

  • Using variables in Page processing

    I want to use variables (items) in
    Page processing - process - reset pagination for page(s) (PageID,PageID,PageID)
    and
    Page processing - Branches - Branch to page / URL - URL
    Is this possible, and if so How
    Fred.

    scott,
    On the places I mentioned I have tried to use references like &ITEM. and #ITEM# but they don't work.
    Where can I find documentation about where I can use which references.
    Fred.

  • How can I call a Page Process from the Select statement for Report Page

    I'm able to call a javascript using the below:
    img src="#IMAGE_PREFIX#add2.gif" border="0" alt="Icon 4" onClick="javascript:add_connect1('||CPORT.ID||')"
    But Now,
    I'd like to accomplish (2) New things:
    1. instead of using,....... onClick="javascript:add_connect1,
    I'd like to call a Page Process, onClick=
    2. I'd like to be able to call two different processes onClick.
    a. onClick="javascript:passBack('||ID||')"
    b. onClick= <Please see my question #1 above>
    Can someone please help me with the syntax for this,
    If indeed it can even be done?
    Thanks- Gary

    Greg.
    It seems that my situation is the one you describe in you second paragraph, where you mention:
    you could then add the ID column value as a parameter to the javascript functionBut,
    I do not know how to reference the variable in my javascript nor how to use it in my on-demand process.
    If you can hellp me past this last little bump, then I think I will be able to use these skills in Sooo many different areas of my design.
    Here's what I've got so far:
    A. In the select statement I identify the javascript as:
    onClick="javascript:connect_port('<font color=blue>''||ID||''</font>')";
    B. In my javascript I have this:
    <script language="JavaScript" type="text/javascript">
    function connect_port(ID)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=CONNECT_PORT',0);
    gReturn = get.get();
    get = null;
    </script>
    C. In my on demand function I have this:
    BEGIN
    INSERT INTO CCONNECTIONS_B
    BLDG_ID,CLST_ID,PORT_ID,STRAND_ID
    ) VALUES
    :P2004_BLDG_ID,:P2004_CLST_ID,:P2004_PORT_ID,:P2004_STRAND_ID1
    END;
    You can see that I dont know how to use the value for 'ID' in either the javascript or the On-Process function.
    If you can help me out with this one, Then I can imitate it for the rest.
    -Gary
    Edited by: garyNboston on Apr 3, 2009 6:44 AM
    Edited by: garyNboston on Apr 3, 2009 6:44 AM
    Edited by: garyNboston on Apr 3, 2009 6:45 AM
    Edited by: garyNboston on Apr 3, 2009 6:47 AM

  • Invoking page process using AJAX

    Hi,
    Is it possible to invoke page process using AJAX, just like I can do it with application processes?
    Regards,
    Przemek

    Hi,
    Could you not have a application process that does an execute immediate on a block of PL/SQL? This way in your app process you could extract the code from your page process.
    So your code would like something like:
    SELECT region_source
    INTO v_plsql_source
    FROM apex_application_page_regions
    WHERE source_type = 'PL/SQL'
    AND application_id = :app_id
    AND page_id = :app_page_id
    AND static_id = :your_static_id; -- or you could reference from region name etc...
    execute immediate (v_plsql_source);
    I'm not sure if you'll have any issue with bind variables in v_plsql_source
    Martin
    [http://apex-smb.blogspot.com/]

  • Page Processing with multiple tables

    Hello to all sql experts!
    I have been successful in inserting a row into a table and creating the PK using Page Processing. The parent table is called Facility.
    I used the following sql to insert a row into the table and now need to add data to the child tables.
    Parent table==>
    INSERT INTO FACILITY(fac_pk, fac_type, fac_name, street1, city, state, zip, state_or_tribe, tribe_yn)
    VALUES (FAC_SEQ.nextval,
    NVL(:P211_FAC_TYPE, 'N'),
    NVL(:P211_FAC_NAME,'No Data'),
    NVL(:P211_STREET1,'No Data'),
    NVL(:P211_CITY, 'No Data'),
    NVL(:P211_STATE,'CA'),
    NVL(:P211_ZIP,'00000'),
    NVL(:P211_STATE_OR_TRIBE,'CA'),
    NVL(:P211_TRIBE_YN,'N'));
    Child table == >
    INSERT INTO CONTACT(cnt_pk, fullname, street1, city, state, zip, phone, title)
    VALUES (CNT_SEQ.nextval,
    NVL(:P36_FULLNAME, 'No Data'),
    NVL(:P36_STREET1,'No Data'),
    NVL(:P36_CITY, 'No Data'),
    NVL(:P36_STATE,'CA'),
    NVL(:P36_ZIP,'00000'),
    NVL(:P36_PHONE,'555-1212'),
    NVL(:P36_TITLE,'No Data'));
    My Questions:
    1. How do I reference the Facility PK that was already created?
    2. If I have several child tables where I want to insert a row, is the sql the same as above?
    I did run the separate Insert sql for Contact table, but all it did was create a new row, but no link to the facility record.
    Thanks for looking at this. I am new to sql and want to use the PL/SQL to process the inserts into the tables.
    Judy

    hi judy
    check this forum
    Re: How to insert into 2 tables from the same page (with one button  link)
    you will have an idea
    think, this help u better.
    bye
    srikavi

  • Currency Translation not working with "Time Reference from Variable"

    We have created several Currency Translations using RSCUR with a fixed "Key Date".  All have been working fine until we got the request to allow a variable date for the exchange rate date.  I have built a variable on 0DATE which I am putting a default date value into using user exit.  This default date is the SAME date as the fixed "Key Date" which we have been using.  Unfortunately when we use the "Time Reference from Variable" option and use this new variable, no currency conversion is taking place, instead it only shows the original currency values.  I am 100% sure that my variable is getting a value and it is the same date we are using for the fixed "Key Date" value so both methods should be using the exact same exchange rates.  The documentation that I can find states:
    ●      Time reference: The time reference for the currency translation can be either fixed or variable.
    If the time reference is fixed, the time at which the exchange rate is determined is independent of the data. You have the following options:
    ○       You can establish that the time reference be determined upon translation.
    ○       You can select the current date.
    ○       You can specify a fixed date as the key date.
    ○       You can specify any variable that exists for InfoObject 0DATE.
    ○       You can establish that the query key date be used. This is determined in the query settings.
    In my case I am only switching from option "You can specify a fixed date as the key date"=(Key Date) to "You can specify any variable that exists for InfoObject 0DATE"=(Time Reference from Variable).
    What am I missing?  Any help is appreciated.

    I neglected to mention that we are calling this currency translation through a WAD button using the SET_CURRENCY_TRANSLATION command.  I did do a test by applying the currency conversion within query key figure.  This seems to work.  So it appears the issue is with how the WAD is processing the variable, not the query.  When I display the variable in a drop down item within the WAD it does have the default value that I have assigned in user exit.

  • Using database links in a plsql page process

    I am trying to use a database link in a pl/sql page process.
    It works fine when I use the link name in the plsql like this:
    BEGIN
    SELECT 
    CARD_ID
    into  
    :P12_HDR_CARD_NUMBER 
    from     [email protected];
    But the link name will be coming from a page item (P12_DBLINK) populated as follows:
    select db_link d, db_link r from user_db_links; 
    I have tried the following and it's not working:
    DECLARE
    l_link VARCHAR2(30);
    BEGIN
    l_link :=  :P12_DBLINK;
    SELECT 
    CARD_ID
    into  
    :P12_HDR_CARD_NUMBER 
    from     fusion.EXM_CC_COMPANY_ACCOUNTS@l_link;
    this gives me:
    ORA-04052: error occurred when looking up remote object FUSION.EXM_CC_COMPANY_ACCOUNTS@L_LINK.WORLD ORA-00604: error occurred at recursive SQL level 3 ORA-02019: connection description for remote database not found
    I thought that maybe the link name was getting appended with .WORLD automatically but the link name already has .WORLD at the end. I tried stripping that off first but the error is the same.
    Is there some synatx for this that will work for this? Will I need to use dynamic sql?
    Any suggestions are most appreciated.
    thanks,
    john

    Hi John,
    check the following example to use the execute immediate statement for your purpose
    sql - Variable for Database Link Name - Stack Overflow
    let me know if this answers your query in the current thread

  • Parameter Passing between pages- process not picking up on changes

    Hello, new user, this is a different question than before.
    I have a drop-down list box on Page 1, upon which the user can choose a study number. The List Box is named "P1_STUDY_NBR".
    Then I have a list, one entry of which goes to my master-detail form, which is Page 6. I would like it to go to the study number that the user choose on Page 1.
    In my target on the create/edit list entry, I put in "Page in this Application", "Page 6", then in Set these items, I put in
    P6_STUDY_NBR
    My question is what to use in With these values, where I want the contents of the P1_STUDY_NBR. I tried:
    &P1_STUDY_NBR.
    Now I've got it passing to the master detail form, but it passes whatever was the first value! i.e, if I set the default of the drop-down list box to 336-00, then it opens the form with 336-00, and if I set the default on the drop-down list to 005-07, then it opens to 005-07.
    However, if I change the value in the drop-down list box to something else, then press the link in the list to go to the page, then it doesn't pass the new value like I want (it passes whatever was the default value).
    Is there something that accepts the new value into the variable upon the change in that drop-down list box that I need to add to my processes, or why won't it use the new value as the parameter?
    -Mary

    I'd recommend (re)reading "Understanding Page Processing and Page Rendering" in the Users Guide and then redesigning your page. The problem is that you change the study number list selection in the browser but the change never gets processed because a navigation list link doesn't submit the form, it only navigates away from it.
    You could try making the study number list type "Select List with Redirect" which processes the change so that the new selection value gets set to the session state and then returns to the same page.

  • Calling stored procedure from page process and PLS-00049 error?

    Good morning guys!
    I'm dealing with several problems this morning! The one that I need to deal with first is the following.
    I created the page process (see below: 1st code) in order to validate if all records where LNG_GEBIET matches have the status 3 or 4. If that is the case I want to call the procedure "set_status_arbeit_zu_gebiet". If amountrs and countstat do not match, then nothing is supposed to be done.
    The problem lies within the stored procedure itself. I receive a PLS-00049 bind variable error for :new.LNG_GEBIET.
    Can you please tell me what I forgot to declare in code 2 below???
    Thank you guys!
    The page process:
    Declare
      amountrs    number;
      countstat   number;
    begin
    SELECT COUNT(*) INTO amountrs FROM TBL_PUNKTDATEN where LNG_GEBIET = :P4_CNT_GEBIET;
    SELECT COUNT(*) INTO countstat FROM TBL_PUNKTDATEN where LNG_GEBIET = :P4_CNT_GEBIET and INT_STATUS = 3 or LNG_GEBIET = :P4_CNT_GEBIET and INT_STATUS = 4;
        IF amountrs = countstat THEN
         set_status_arbeit_zu_gebiet;
        ELSE
         dbms_output.put('nothing');
        END IF ;
    end;Code 2 with the true problem!
    CREATE OR REPLACE PROCEDURE set_status_arbeit_zu_gebiet
    IS
        cursor c2 is select LNG_GEBIET from TBL_ARBEIT_ZU_GEBIET where PNUM = 1114 and LNG_GEBIET=:new.LNG_GEBIET;
        v_c2  c2%ROWTYPE;
    BEGIN
       open c2;
    fetch c2 into v_c2;
    if c2%notfound then
            INSERT INTO TBL_ARBEIT_ZU_GEBIET
            LNG_GEBIET,
              LNG_ARBEITSSCHRITT,
              PNUM,
              INT_BEARBEITER,
              DATE_DATUM,
              GEPL_DATUM
            VALUES
            (:new.LNG_GEBIET,
             52,
             1114,
             895,
             sysdate,
             to_date('01.01.1990', 'DD.MM.YYYY')
            commit;
            close c2;
    END set_status_arbeit_zu_gebiet;One more question: Is it possible to integrate the first validation that calls my stored procedure into code 2?
    Thanks for you time!
    Sebastian

    The error is in following statement:
    INSERT INTO TBL_ARBEIT_ZU_GEBIET ( ... ) VALUES ( :new.LNG_GEBIET, ... );
    As the statement is part of a procedure and not trigger so it is not able to bind this variable with any value.
    As a resolution, pass this value to the procedure from the process and use it in the insert statement.
    The process will have following IF statement:_
    IF amountrs = countstat THEN
    set_status_arbeit_zu_gebiet *(:P4_CNT_GEBIET)*;
    ELSE
    dbms_output.put('nothing');
    END IF ;
    and the procedure will be as follows:_
    CREATE OR REPLACE PROCEDURE set_status_arbeit_zu_gebiet *(p_lng_gebit varchar2)*
    IS
    cursor c2 is select LNG_GEBIET from TBL_ARBEIT_ZU_GEBIET where PNUM = 1114 and LNG_GEBIET= --:new.LNG_GEBIET-- p_lng_gebit ;
    v_c2 c2%ROWTYPE;
    BEGIN
    INSERT INTO TBL_ARBEIT_ZU_GEBIET ( ... )
    VALUES
    ( --:new.LNG_GEBIET--  p_lng_gebit, ... );
    END set_status_arbeit_zu_gebiet;

  • ORA-01008 error on page process process

    Hi All,
    I am getting an "ORA-01008: not all variables bound" error when saving a process in a page. Below is a snapshot of the process. All bind variables are being used in other processes within the same page without any problems.
    DECLARE
    I_EMAIL_SUBJECT      VARCHAR2(100);
    I_EMAIL_BODY         VARCHAR2(4000);
    I_EMAIL_RESULT       NUMBER;
    I_PROCESS_NAME       VARCHAR2(100)  := 'INPUT - Cancel Form';
    I_FORM_NUMBER        NUMBER  := TO_NUMBER(:P12_IFORPSP_KEY,'999999');
    I_FORM_VERSION       NUMBER  := TO_NUMBER(:P12_FORM_VERSION,'999999');
    I_FUNC_RETURN        VARCHAR2(400)  := NULL;
    E_CUSTOM_ERROR       EXCEPTION;
    I_ERROR_MSG          VARCHAR2(4000);
    BEGIN
       BA_HR_IFO_util_pkg.add_debug_line('-- START --',I_PROCESS_NAME);
       -- Change WF Step to 'Canceled'
       BA_HR_IFO_util_pkg.add_debug_line('Set WF Step to Canceled ',I_PROCESS_NAME);
       -- The function below is triggering the error
       I_FUNC_RETURN := BA_HR_IFO_util_pkg.update_wf_step(p_form_no  => I_FORM_NUMBER,
                                                          p_form_ver => I_FORM_VERSION,
                                                          p_created_by => TO_CHAR(:P12_CREATED_BY),
                                                          p_step_status => TO_CHAR('Canceled'),
                                                          p_next_step_name => TO_CHAR('Canceled Form'),
                                                          p_flex_hiring_freeze => TO_CHAR(:F103_FLEX_HIRING_FREEZE));
       IF I_FUNC_RETURN <> 'S' THEN
          -- Set ERROR msg
          BA_HR_IFO_util_pkg.add_debug_line('Error '||I_FUNC_RETURN,I_PROCESS_NAME);
          I_ERROR_MSG := 'Error: '||I_FUNC_RETURN;
          RAISE E_CUSTOM_ERROR;
       END IF;I am using Oracle 11g, APEX 3.2.1
    The function is declared on a package in the same schema. All function parameters are included. The error seems to be when calling the function. However, I have use this function and bind variables in other processes.
    This is my first post. I hope I included enough information.
    Thanks in advance for your help
    Carlos

    You can try something like :
    DECLARE
    I_CREATED_BY      varchar2(100); -- enter correct size here
    I_F103_FLEX_HIRING_FREEZE varchar2(100); -- enter correct size here
    BEGIN
    I_CREATED_BY  := v('P12_CREATED_BY');
    I_F103_FLEX_HIRING_FREEZE := v('F103_FLEX_HIRING_FREEZE');
       -- The function below is triggering the error
       I_FUNC_RETURN := BA_HR_IFO_util_pkg.update_wf_step(p_form_no  => I_FORM_NUMBER,
                                                          p_form_ver => I_FORM_VERSION,
                                                          p_created_by => I_CREATED_BY,
                                                          p_step_status => 'Canceled',
                                                          p_next_step_name => 'Canceled Form',
                                                          p_flex_hiring_freeze => I_F103_FLEX_HIRING_FREEZE);
    ...Probably it helps.
    Lev

  • New at SJSC - login page process

    Hi folks!
    I came from MS ASP.NET world and I'm trying to learn SJSC. I'd like to implement a login page process and restrict *.JSP internal pagas. Do you know where I can find an article or some tutorial do guide my on this learning process?
    Thanks!

    Hi!
    Maybe this tech tip will be usefull for you.
    http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/jaas_authentication.html
    Thanks,
    Roman.

  • The function javascript:doSubmit not passing variables between pages

    Hi,
    I have an report that has a link to another page, and I'm trying to pass 2 variables. If I use a target URL as such the variables do not get passed, but if I use a page target and explicitly add the item name and values it works fine. Here is the call I'm using to javascript:doSubmit:
    javascript:doSubmit('f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#');
    Does anyone have any insights?
    Thanks,
    Joe

    You can't use doSubmit to pass variables; it will only submit your page with the request you passed in.  All normal page processing and branching will be followed..  Why are you using doSubmit?  Just put the URL in the URL field.
    f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#

  • Set VO bind variable on page loading programmatically

    Greetings everyone!
    I use JDeveloper version 11.1.2.3.0
    I am currently trying to get some filtered data from a VO, based on a WHERE clause with a bind variable. This process should be done on page load. I have to set this bind variable with the id of the logged user (the part of getting this id is already achieved and used somewhere else). My current approach is defining a managed bean with pageFlow scope. Inside this i have a method in which i retrieve the id and i set it as the parameter value. The code snippet:
          BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("getUserIdFromUsername"); //getUserIdFromUsername is a method defined in the AppModule and exposed in the client interface
           operationBinding.getParamsMap().put("username", getUserName());
          Object userID = operationBinding.execute();
            setUserId(Integer.parseInt(userID.toString()));
           System.out.println("THE USER ID IS: "+getUserId());
           BindingContainer bindings2 = getBindings();
           OperationBinding operationBinding2 = bindings.getOperationBinding("ExecuteWithParams");  // i've dragged and dropped the ExecuteWithParams operation into the page
           operationBinding2.getParamsMap().put("userId", getUserId());  // userId is the bind variable which i'm talking about
            Object result = operationBinding2.execute();
    Then, i call this method on BeforePhase in the page view. It works, i get the filtered data and the println shows me the correct ID. The problem is that each time i select a row in the table showing the data, the page seems to reload and it always get the selection back at the very first row.
    What am i doing wrong? May be this is not the right approach, as i've seen some other posts about this topic but they are not very clear to me.
    Please advice

    Approach1:
    Drag and Drop an Application  method as Default Method Call Activity, then draw a control flow case from the method to your page.
    In the application module method, implement appropriate logic.
    Approach2:
    Using a combination of client listener and server listener will also help.
    <af:clientListener method="onLoadAction" type="load"/>
    <af:serverListener type="MyCustomServerEvent"
    method="#{backingBeanScope.editBean.onLoadListener}"/>
    function onLoadAction(event){
               /*alert(':::: onSave ::');*/
               AdfCustomEvent.queue(actionEvent.getSource(),
                             "MyCustomServerEvent",
                             true);
           actionEvent.cancel() ;
           actionEvent.stopPropagation();

  • Other ways for getting a reference to the current page [ID5, JS]

    To get a reference to the page you're working on (or that holds an object you want to manipulate), you could use app.activeWindow.activePage.id or app.layoutWindows[0].activePage.id.
    But when you're working on a spread and this spread fills your application window, you seldomly get the correct page reference. You could have a selection on the right page, but when you run a script with the active/layoutWindow approach, you could easily get a (wrong) reference to the left page, if that one is more 'dominant' in your program window.
    I work around this by using activeSpread and getting the Y-coordinate of a frame or insertionPoint on the page I'm working on. When you set the ruler origin to spread, you can determine the left or right page by looking at the Y-coordinate. If it's higher than the page width (or spine position) you're on the right hand page. You could than use if...then to assign 0 or 1 a to a variable. Finally, you can get the ID of that page: app.activeSpread.pages.item(variable).id.
    Perhaps this approach is helpfull for others who struggle with page references.
    My question is: are there other reliable (perhaps more simple) ways to get a reference to the page?

    Right. I should have posted the question sooner, because shortly after I found the answer I've been looking for quite long. And once again it's so simple. Nevertheless it might be usefull to share.
    For most page items like textframes and rectangles you can simpy use the property parentPage. For instance, if you have selected a rectangle you get a reference to the page with code like:
    page = doc.selection[0].parentPage.id.
    This might be usefull if you dragged a rectangle holding an image to another page and want to run a script that re-attaches the caption frame. 

  • [b]Error during JSP page processing[/b]

    hi , i'm mech.
    i have some probs with jsp. i am trying to connect jsp page with database and printing the data on the browser page. i have created DSN mm using microsoft odbc for oracle and oracle9i's driver oracle in orahome90 but it is giving yet . i have this coding and error.
    ------------------------jsp code--------------------------
    package pagecompile.jsp;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.io.FileInputStream;
    import java.io.ObjectInputStream;
    import java.util.Vector;
    import com.sun.server.http.pagecompile.jsp.runtime.*;
    import java.beans.*;
    import com.sun.server.http.pagecompile.jsp.JspException;
    import java.sql.*;
    public class _Connect extends HttpJspBase {
    static char[][] jspxhtml_data = null;
    public _Connect( ) {
    private static boolean jspxinited = false;
    public final void jspxinit() throws JspException {
    ObjectInputStream oin = null;
    int numStrings = 0;
    try {
    FileInputStream fin = new FileInputStream("E:\\JavaWebServer2.0\\tmpdir\\default\\pagecompile\\jsp\\pagecompile.jspConnect.dat");
    oin = new ObjectInputStream(fin);
    jspxhtml_data = (char[][]) oin.readObject();
    } catch (Exception ex) {
    throw new JspException("Unable to open data file");
    } finally {
    if (oin != null)
    try { oin.close(); } catch (IOException ignore) { }
    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
    throws IOException, ServletException {
    boolean jspxcleared_due_to_forward = false;
    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    String _value = null;
    try {
    if (_jspx_inited == false) {
    jspxinit();
    jspxinited = true;
    _jspxFactory = JspFactory.getDefaultFactory();
    response.setContentType("text/html");
    pageContext = _jspxFactory.getPageContext(this, request, response,
                   "", true, 8192, true);
    application = pageContext.getServletContext();
    config = pageContext.getServletConfig();
    session = pageContext.getSession();
    out = pageContext.getOut();
    out.print(_jspx_html_data[0]);
    out.print(_jspx_html_data[1]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(14,2);to=(28,2)]
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection myconn=DriverManager.getConnection("Jdbc:Odbc:mm","madhulika","madhulika");
    Statement stmt = myconn.createStatement();
    ResultSet myResultSet = stmt.executeQuery("Select * from peopletable");
    if(myResultSet != null)
         while(myResultSet.next())
              int eid=myResultSet.getInt("id");
              String fname=myResultSet.getString("firstname");
              String lname=myResultSet.getString("lastname");
              String mail=myResultSet.getString("email");
    // end
    out.print(_jspx_html_data[2]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(30,10);to=(30,13)]
    out.print(eid);
    // end
    out.print(_jspx_html_data[3]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(31,10);to=(31,15)]
    out.print(fname);
    // end
    out.print(_jspx_html_data[4]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(32,10);to=(32,15)]
    out.print(lname);
    // end
    out.print(_jspx_html_data[5]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(33,10);to=(33,14)]
    out.print(mail);
    // end
    out.print(_jspx_html_data[6]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(37,5);to=(43,0)]
    stmt.close();
    myconn.close();
    // end
    out.print(_jspx_html_data[7]);
    } catch (Throwable t) {
    if (out.getBufferSize() != 0)
    out.clear();
    throw new JspException("Unknown exception: ", t);
    } finally {
    if (!_jspx_cleared_due_to_forward)
    out.flush();
    _jspxFactory.releasePageContext(pageContext);
    -------------------error in browser----------------------
    Error during JSP page processing
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         at java.lang.Throwable.(Compiled Code)
         at java.lang.Exception.(Compiled Code)
         at java.sql.SQLException.(SQLException.java:43)
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Compiled Code)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:3814)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:1029)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:145)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:165)
         at java.sql.DriverManager.getConnection(Compiled Code)
         at java.sql.DriverManager.getConnection(DriverManager.java:126)
         at pagecompile.jsp._Connect._jspService(Compiled Code)
         at com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.runServlet(JspServlet.java:469)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspServlet.java:259)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.java:97)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.sun.server.ServletState.callService(ServletState.java:226)
         at com.sun.server.ServletManager.callServletService(ServletManager.java:936)
         at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
         at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
         at com.sun.server.http.stages.Runner.process(Runner.java:79)
         at com.sun.server.ProcessingSupport.process(Compiled Code)
         at com.sun.server.Service.process(Service.java:204)
         at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
         at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
         at com.sun.server.HandlerThread.run(Compiled

    Backing up a moment, is there a particular reason that you're using the JDBC-ODBC bridge rather than using the Oracle JDBC driver?
    Have you taken a look at the JSP sample code available on OTN? I would start by making sure you can run that.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Restore Itunes Library - Hard Drive Crash - from Ipod

    I have a very large library of music - Many CD's - I have been able to restore my purchases from Apple store - My Ipod has 80 to 90% of my music on it - I do not wish to have to reload around 100 CDs of music - Is there a way to get the music that is

  • Add the time stamp ater file name (suffix)

    Hi friends, i need help for below requierment. I want to add the time stamp for my file name. like *filename YYYY-MM-DD-HH-MM-SS.txt* i don't know how to wirte the UDF for this. please any help me on this. thanks Srini..

  • Virtual host in weblogic 5.1

    Hi all How do i set up a virutal hosting feature in weblogic 5.1? For eg., Current url = http://[email protected]:1234/myapplication Alias Request = http://<anything.com>/support/check/myapplication please help. It's urgent. with regds siva

  • Pro Applications Update 2007-02 Can't be installed

    Hi, not sure if this is a Leopard thing or a Logic 8 thing, but I cannot install the latest software update "Pro Applications Update 2007-02 v1.0 930kb" - it downloads and then says "Sorry an unexpected error occurred" - not very helpful Any suggesti

  • I have 2 ipod minis and 1 comp

    I have 2 ipod minis and only one computer. They both share the same songs. but now it wont let my ipod be reconized, and it says "Another user is loged in plz ask them to sign out." how can i get my computer to reconize them both again?