How is the db connection used... and how to use the queries

dear sir,
i have to important question.
i am pasting the code of a jsp file below.... please look in to this...
in this page.. how is he making a database connection... and in this page
where are the select statements and queries.... i have tried many times reading
this ..but i could not find the queries ..not even any one.
if anyone sees this jsp file also ... he will not be able to see the queries.
can u please help me .. how to do this type of connection and also how to use queries
like select insert and delete and update .
an example will help me out...please help me...
Ramesh
the file is below....
<%@ include file="jtfincl.jsp" %>
<%@ page language="java" %>
<%@ page import="oracle.apps.ibu.common.IBUContext" %>
<%@ page import="oracle.apps.ibu.common.IbuException" %>
<%@ page import="oracle.apps.ibu.common.Employee" %>
<%@ page import="oracle.apps.ibu.common.EmployeeInfo" %>
<%@ page import="oracle.jdbc.driver.*" %>
<%@ page import="oracle.apps.jtf.aom.transaction.*" %>
<%@ page import="oracle.apps.jtf.base.resources.*" %>
<%@ page import="oracle.apps.jtf.base.interfaces.MessageManagerInter"%>
<%@ page import="oracle.apps.ibu.registration.IbuRegistration" %>
<%@ page import="oracle.apps.ibu.registration.CustomerVO" %>
<%@ page import="oracle.apps.ibu.common.IDNamePair" %>
<%@ page import="oracle.apps.ibu.common.*" %>
<%@ page import="oracle.apps.ibu.registration.*" %>
<%@ page import="java.math.BigDecimal" %>
<jsp:useBean id = "_displayManager"
class = "oracle.apps.ibu.common.DisplayManager"
scope = "application" />
<jsp:useBean id = "ibuPromptManager"
class = "oracle.apps.ibu.common.PromptManager"
scope = "application" />
<%
String appName= "IBU";
boolean stateless=true;      // used for jtfsrfp.jsp
SiteProperty.load();
String username = SiteProperty.getGuestUsername();
String password = SiteProperty.getGuestPassword();
%>
<%@ include file="jtfsrfp.jsp" %>
<%
     String forwardURL = null;
     String backURL = null;
String emailAddress = null;     
     long employeeID = -1;
     String submitType = (String) request.getParameter("submitType");
     IBUContext context = new IBUContext(fwSession);
     String errorKey = "";
     String errorMessage = "";
     String errorStack = "";
     boolean currentStatus = true;
Object lockx = new Object ();
     OracleConnection conn = null;
try
     TransactionScope.begin(lockx);
try
conn = (OracleConnection)
TransactionScope.getConnection();
     catch ( Exception e )
throw new FrameworkException("Error getting connection..");
if ( conn == null )
throw new FrameworkException("Error getting connection..");
     String[] textMsgs = new String[3];
     MessageManagerInter msgMgr = Architecture.getMessageManagerInstance();
     textMsgs[0] = msgMgr.getMessage("IBU_RG_CONTRACT24");
     //textMsgs[0] = " is not a valid employee email address.";
     textMsgs[1] = msgMgr.getMessage("IBU_RG_CONTRACT25");
     //textMsgs[1] = " Cannot get the employee id.";
     textMsgs[2] = msgMgr.getMessage("IBU_RG_CONTRACT13");
     //textMsgs[2] = "submitType is null, please check program.";
     if ( (submitType != null) && "LOGIN".equals( submitType ) )
     forwardURL="jtflogin.jsp";
     backURL="jtflogin.jsp";
     else if ( (submitType != null) && "EMPLOYEE_CHECK".equals( submitType ) )
     forwardURL="ibuemplcheck.jsp";
     backURL="ibuemplcheck.jsp";
     else if ( (submitType != null) && "EMPLOYEE_NUMBER_SUBMIT".equals( submitType ) )
     backURL="ibuemplcheck.jsp";
emailAddress = (String) request.getParameter("emailAddress");     
     pageContext.setAttribute("emailAddress", emailAddress , PageContext.REQUEST_SCOPE);
     employeeID = IbuRegistration.getEmployeeID(conn,emailAddress);
     if (employeeID == -1)
          throw new IbuRegException(emailAddress + "  "+textMsgs[0] + "  " +textMsgs[1]);
     //validate employee
currentStatus = Employee.isValidate(conn,emailAddress);
//currentStatus = IbuRegistration.isEmployeeValid(conn,emailAddress);
     if (!currentStatus)
          throw new IbuRegException(emailAddress + "  " + textMsgs[0]);
     EmployeeInfo employee = Employee.findEmployee(conn,employeeID);
     pageContext.setAttribute("employee", employee , PageContext.REQUEST_SCOPE);
     pageContext.setAttribute("employeeIDStr", Long.toString(employeeID) , PageContext.REQUEST_SCOPE);
     forwardURL="ibuemplinput.jsp";
     else
     { // Cancel button was pressed
     throw new IbuRegException(textMsgs[2]);
     /* "ibuccsii.jsp"; */
     catch ( IbuException e )
TransactionScope.setRollbackOnly();
     errorMessage = e.getMessage();      
     errorStack = IbuRegException.getStack(e);
     pageContext.setAttribute("errorMessage", errorMessage , PageContext.REQUEST_SCOPE);
     pageContext.setAttribute("errorStack", errorStack , PageContext.REQUEST_SCOPE);
     forwardURL = backURL;
     catch (IbuRegException e)
TransactionScope.setRollbackOnly();
     errorMessage = e.getMessage();      
     errorStack = e.getStack();
     pageContext.setAttribute("errorMessage", errorMessage , PageContext.REQUEST_SCOPE);
     pageContext.setAttribute("errorStack", errorStack , PageContext.REQUEST_SCOPE);
     forwardURL = backURL;
     catch ( Exception e )
TransactionScope.setRollbackOnly();
     errorMessage = e.getMessage();      
     errorStack = IbuRegException.getStack(e);
     pageContext.setAttribute("errorMessage", errorMessage , PageContext.REQUEST_SCOPE);
     pageContext.setAttribute("errorStack", errorStack , PageContext.REQUEST_SCOPE);
     forwardURL = backURL;
//throw new FrameworkException( e , "IBU_UNEXPECTED_EXCEPTION");
     finally
TransactionScope.releaseConnection( conn );
TransactionScope.end ( lockx );
     if (forwardURL == null)
     forwardURL="jtflogin.jsp";
%>
     <jsp:forward page= "<%= forwardURL %>" />
<%@ include file="jtferlp.jsp" %>

dear sir,
i have to important question.
i am pasting the code of a jsp file below.... please look in to this...Note that this is an OCI forum. Since your code is using Oracle's JDBC driver to connect, I would suggest posting in the JDBC forum for more information.
in this page.. how is he making a database connection...
try
conn = (OracleConnection)
TransactionScope.getConnection();
     catch ( Exception e )
throw new FrameworkException("Error getting connection..");
and in this page
where are the select statements and queries.... There may be queries in the Employee objects or in the include files.
Justin

Similar Messages

  • TS3694 My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many than

    My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many thanks.

    Hi
    I followed this guy's instructions and it worked:
    http://evsiphone.blogspot.com/2009/05/iphone-iphone-could-not-be-restored.html
    I did disable the security (AVG and Zone Alarm) when I tried on my own PC. My wife's laptop which eventually got it working also uses AVG and Zone Alarm but on an XP O/S whereas my PC is Vista - maybe this is why.
    Cheers for you help.
    Andy
    Message was edited by: bigbadandy

  • I have just updated to iOS7, no icon for browser, was using Safari, how do I get it back and can I reverse the upgrade and go back to iOS6?

    I have just updated to iOS7, no icon for browser, was using Safari, how do I get it back and can I reverse the upgrade and go back to iOS6?  Thanks to you from the UnTechie

    The icon for Safari has probably moved to make room for new apps. Scroll the Home screen to look for it.
    You cannot reverse the upgrade.

  • My MacBook Pro persistently will not connect to my wireless router. The message "connection timeout" appears. What is a connection timeout and how can I fix?

    My MacBook Pro persistently will not connect to my MiFi Verizon wireless router. The message "connection timeout" appears. What is a connection timeout and how can I fix?

    Hi there terri900!
    You may want to try configuring your router settings to match the recommended settings for iOS and OS X devices, which can be found here:
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/ht4199
    You may also find some helpful information for troubleshooting this issue in this article, which can help you with any manner of issues with Wi-Fi connections:
    Wi-Fi Quick Assist
    http://support.apple.com/kb/HT1145
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • I had Premier pro given me by the college I attend and do no use wi fi and do not use cloud. My laptop completely died and will be sent back to Apple for exchange. How can I reinstall Premier Pro on a new Apple computer since the old one is completly dead

    I had Premier pro given me by the college I attend and do no use wi fi and do not use cloud. My laptop completely died and will be sent back to Apple for exchange. How can I reinstall Premier Pro on a new Apple computer since the old one is completly dead and could not be unregistered?

    Hi,
    You have not specified which version of Premiere Pro was given to you. If you don't have the disc (which i suppose you don't have) you will have to download it online.
    As far as your registration is concerned, for Premiere Pro CS6 or earlier you will have to reach Adobe chat support for further help: http://helpx.adobe.com/contact.html
    For Premiere Pro CC and later, you will not have much problems reactivating it.
    Thanks,
    Rameez

  • What's the Commitment item? And how to use it?

    When I create a G/L account by FS00 I need to input a Commitment item.
    But I don't know how to use it.
    Can you tell me what's the Commitment item? And how to use it?
    Thank you very much.
    Moderator: Try pressing F1 or going to help.sap.com

    >>In SAP XI / PI, WS adapter is not thier frm standard SAP.
    Are you sure about this?
    WS is a standard adapter shipped along with PI 7.1 installation.
    Quote from help.sap.com
    Using the WS adapter you can configure the communication of systems, which communicate with each other using the Web service runtime either directly (point-to-point) or using the Integration Server
    Refer:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/37d73b80554c2ce10000000a1553f6/frameset.htm
    If you are not sure about what you are saying, it is better not to say it.

  • How to create the servlet as acontroller  and how to use it

    how to create the servlet as acontroller and how to use it

    >
    John
    Please update your forum profile with a real handle instead of "914824".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I am going to have over 50 buttons in a page, Why? This would be a most unusual UI paradigm. I've never seen such a page, which suggests that whatever you want to do is normally done another way. Please explain the requirement in more detail.
    just wanted to know if its possible to do something like this in java.
    Java is not used in programming APEX UI behaviour. Java and JavaScript may share initial syllables, but they are not closely related.
    It's possible to achieve a great deal in JavaScript, but a clear definition of the requirements is necessary. Do you mean the buttons should be dynamically generated? If so, yes, this is possible in JavaScript. What would drive the process?
    Also, i would like to have dynamic action on it, for example, when the button is pressed, fill a string of text into other items(text field) within the page. Without more detail its not possible to make any specific suggestions. For example, I certainly would not want to create 50+ individual dynamic actions relating to different buttons.

  • The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password.  I have an HP laptop

    The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password? I have an HP laptop. 

    Chances are, there was a signficant power surge or voltage fluctuation just before the power went out. This type of thing can cause the AirPort Extreme to reset back to default settings.
    If this occurs, your only option is re-configure the device again, just as you did originally.
    In order to improve your chances this next time this happens, (especially if you live in an area where thunderstorms are severe), a good quality surge suppressor / voltage limiting power strip will really help, and may save you the entire device or a nearby computer next time something like this occurs.

  • I have been trying to download and install a trial. What is the best browser to use and how do i do it?

    I have been trying to download and install a trial. What is the best browser to use and how do i do it? The set up and everything is on the desktop but it never seems to load anything?

    what file (name and extension) is on your desktop and what os?
    what have you done to install the desktop file and what do you see when you do that?

  • I am living now in UAE if I bought an I pad from your website is the warenty for it and how I will use the waranty

    I am living now in UAE if I bought an I pad from your website is the warenty for it and how I will use the waranty

    You can find authorized Apple dealers in Abu Dhabi by clicking here. They can answer purchase questions and most can handle warranty service.
    By the way, this forum is for questions about the iPod touch, not the iPad. If you have questions specific to the iPad, it would be best to ask them in the iPad forum.
    Regards.

  • What are the benefits of Yosemite, and how do I use them?

    I upgraded to Yosemite on my iMac.  I can see it looks different, but I don't know what the benefits are or how to access them.  I only upgraded because I have been told that I should use the newest version of software, as that is what is being maintained and improved.  Is there a site or a document somewhere that will describe the changes in Yosemite, and how to utilize them to the best advantage?

    The easiest graphical way I would recommend is to search for an example "whats new in yosemite" on youtube, I am sure you will find lots of videos on that.

  • I use to administrate my DSL modem via an ip-address. When I enter it into FF8 I am asked where to save the file. Why and how can I prevent FF8 from doing that?

    I use to administrate my DSL modem via an ip-address. When I enter it into FF8 I am asked where to save the file. Why and how can I prevent FF8 from doing that?
    And now anytime I am entering an ip-address I am asked if I want to download the file.

    It happens when the modem server doesn't send the file as text/html, but with another MIME type.<br />
    I tried the index.html addition in case the server might send that file as text/html.<br />
    If your DSL modem has a support website then you can try to ask there for advice about how to configure the modem server.

  • "Cannot get mail, connection to the service failed". why and how do I repair it?

    "Cannot get mail, connection to the service failed". why and how do I repair it?

    Thanks. However...these links are to basic troubleshooting.  Good stuff, except I -- like it seems others -- have multiple email accounts coming into their iPhones (my case, iPhone 5 running latest version of iOS) that until this past Friday evening (September 12, 2014).... worked perfectly, then just all stopped.
    In my case, I also lost access to an internet forum I frequent multiple times daily.  All worked fine, until things abruptly stopped working the evening of September 12.
    Seems like anything with a stored login/password got hosed.
    I went into the profiles to make sure my passwords were still there (thought they may have somehow gotten wiped out), but they were there.  I re-entered them just in case, no change.
    Now just this morning, Sunday September 14, two emails from the same (employer) email account have trickled in.  But nothing from the others (gmail, yahoo mail).
    Spouse is having same issue on an iPhone 5.

  • I have no idea how to find my serial number to launch Lightroom. I have the student teacher edition and I'm using a mac

    I have no idea how to find my serial number to launch Lightroom. I have the student teacher edition and I'm using a mac.

    How did you purchase Lightroom? Download? Package?
    Have you followed the instructions to verify that you qualify for academic discount?

  • I would like to delete all Apps archived in the clouds of "purchased" and not in used now and in the future. How is possible to remove definitively these Apps?

    I would like to delete all Apps archived in the clouds of "purchased" and not in used now and in the future. How is possible to remove definitively these Apps. Thank you

    All you can do is hide them from your purchased list.  You cannot permaneently delete anything from your purchased history.
    Also, these are not stored in your iCloud account storage space.  The purchases reside in the online store and all you see is a list of those purchases made with your account, with a cloud-link to redownload them, but you are merely re-downloading them directly from the store.

  • HT5624 I just did the IOS 7 upgrade and it is using my email address instead of my cell number for my text and Imessage...How do i change that

    I just did the IOS 7 upgrade and it is using my email address instead of my cell number how do i change it

    Hi there,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    -Griff W.

Maybe you are looking for

  • Nokia 5610 does not recognize memory card

    I have acquired a Nokia 1GB microSD memory card for Nokia 5610 d-1. But  the memory card is not recognized. In Nokia 6303 the same memory card is recognized. I have formatted them with this mobile phone. Nevertheless, the 5610 (v10.00) does not recog

  • Spawn a java process using runtime.exec() method

    Hi, This is my first post in this forum. I have a small problem. I am trying to spawn a java process using Runtime.getRuntime().exec() method in Solaris. However, there is no result in this check the follwoing program. /* Program Starts here */ impor

  • HTML editor (URGENT...PLEASE PLEASE)

    Hi, I developp an HTML editor (JTextPane) and I have several problems : 1) when I use setText() to load some code I have generated previously, there is a new line which is inserted at the end of the document (new paragraph in fact). how can I remove

  • Using ACS as a web authentication server

    I have an ACS I use for Tacacs and Radius, and was wondering if I could use it to authenticate a web site for logins. I have an internal site that runs on Windows, but may move to Linux, and would like to have the techs use their Tacacs/Radius logins

  • Stack implementation

    I need help in my assignment to implment a stack with push and pop functions. if anyone is an expert in this section pliz help me out.....