How to display retrieved data from DB on web page

Dear all,
how to display retrieved data from oracle database on web page,Does anyone can give me an simple example?
thanks
WJ

Hi,
I use JRun tags but you can use Oracle tags or just JDBC... First u need to install jdbs connection and set e connection by using JMC (For JRun) named nomad.
U can also try the link below for JRun tags..
http://wds.its.uiowa.edu/cache/docs/jrun/html/JRun_Custom_Tag_Library/contents.htm
<%@ page import="java.sql.*,javax.sql.*,java.text.*,allaire.taglib.*" %>
<%@ taglib uri="jruntags" prefix="jrun" %>
<%@ page contentType="text/html; charset=ISO-8859-9" %>
<html>
<head>
<title> Test Page </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
</head>
<body>
<BODY BGCOLOR="#FFFFFF" LEFTMARGIN=15 TOPMARGIN=20 >
<jrun:sql datasrc="nomad" id="q1">
select empno,
     ename
from emp
order by ename
</jrun:sql>
<center>
<table border = 0 cellpadding = 3 cellspacing = 1>
     <th>EmployeeNo</th><th>Name</th>
<jrun:param id="q1" type="QueryTable"/>
<jrun:foreach group="<%= q1 %>">
               <tr>
               <td> <%= q1.get(1) %> </td>
               <td> <%= q1.get(2) %> </td>
               </tr>
</jrun:foreach>
</table>
</center>
</body>
</html>
----------------------

Similar Messages

  • How do I retrieve information from an existing web page?

    I'm not sure if I'm in the right place to ask this question,
    but I hope I am. I'm trying to creating a catalog program for
    myself. I am envisioning it to be something like netag or
    pricewatcher. How do I create a search box that will search a
    listing of websites and pull certain information, then add that to
    a databse? Thank you for help on such a bizzare question.

    Read up on CFHTTP at
    http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p58.htm#wp1632966.
    After execution, the variable CFHTTP.FileContent will contain the
    entire Web page. You'll have to build a parser to scrape the
    screen.
    A couple of observations.
    Plan on it taking several seconds for each Web site your
    getting. More an issue of Internet speed and remote server
    responsiveness than any thing else.
    Also, it would be a good idea if you have permission from the
    owners of the sites you plan to tap.

  • How do i retrieve data from a powerbook whose screen lights up but displays nothing? I have a firewire and a second powerbook...

    how can I retrieve data from my old powerbook? It's screen lights up, but displays only pixelated blankness. I have a second powerbook and a firewire cable....

    It would probably be correct to assume that both PowerBook computers are equipped with FireWire. The article below could possibly be of interest to you. With a bit of luck, the old computer will be recognised.
    http://support.apple.com/kb/HT1661
    Otherwise, it may become necessary to open the old PowerBook and remove the hard drive. The drive can then be connected to an appropriate external USB adapter, and read via another Mac.
    Jan

  • How do i retrieve data from my external hard drive?

    how do i retrieve data from my external hard drive?

    If your hard drive can be detected and shows up as a drive letter in my computer but you can't access your files,then you can recover your data off it with data recovery software easily.This way is the easiest and the most inexpensive way to recover your data.If you bring it to a computer repair shop that is available for data recovery servise,they will cost you $500-1000 or more.Hmm, a lot of money.
    I managed to recover data from crashed hard drive with Tenorshare Data Recovery.If needed,you can download it and scan your hard drive for free to preview whether your data can be recovered.It will show you thumbnails for recoverable pictures.

  • How do I retrieve data from external hard drive

    How do I retrieve data from external hard drive

    What problem are you encountering?
    Normally you would connect it to your Mac and just drag and drop.

  • How do I retrieve data from time machine from an old mac (which was running 10.5) on my new iMac running mavericks?

    How do I retrieve data from time machine from an old mac (which was running 10.5) on my new iMac running mavericks?

    See B 5/6.
    Time Machine Troubleshooting

  • How to display the data from database(MS access) to a textbox

    anyone know ?

    how to display the data from database(MS access) to a
    textboxThe reply hasn't changed over these years. Read the tuutorial on how to fetch the data. You can display it anywhere you feel like. :)
    http://java.sun.com/docs/books/tutorial/jdbc/

  • How do I retrieve data from iCloud back on to my iPad

    How can I retrieve data off iCloud back onto my iPad after a full reset. Had to reset to get my FaceTime to work after the new upgrade.

    Welcome to the Apple Community Thomas.
    Have you checked that contacts syncing is switched on in settings > iCloud and that in the contacts app, the iCloud account is checked under the groups setting.

  • How to stop the Browser from caching my web pages

    Hi There
    Can anyone tell how to stop the browser from caching my jsp pages
    I am using
    <%response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    but this does not work anduser is able to go back to the previous page
    which i dont want and i want the browser to display the message the page has expired
    Help appreciated
    Thanks
    Mumtaz

    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
    Srinivasan Ranganathan

  • How do I retrieve data from my broken macbook hard drive?

    My macbook suddenly crashed and I had to do a forced shutdown. When I tried to turn it back in, a folder with a question mark kept flashing and by computer did not start. I looked up what might have been the cause of this, and I found out it was my hard drive or the cable that connects the drive to the mac. But I brought it to my school since they have tech support and they said that my hard drive is pretty much dead, but it can still be possible to retrieve the data from. I really need help because I need to hand in my Extended essay in about one week and I already had done quite a lot for my essay. Please tell me how to get all my data back, or past it to a new hard drive.

    No no, I backed up my computer about 1 month ago but I never thought anything will happen. My mac never crashed before and I just was not expecting anything bad to happen to it, but I agree it was stupid of me to not back it up in daily bases. But thanks a lot for letting me know that I can retrieve my data.

  • How do I retrieve data from a HD that cannot be repaired with utility disk?

    Hi,
    I have a macbook pro 15 inch mid 2010. It has 4gb of ram and 500gb of storage. I recently upgraded to Mavericks OSX10.9,4.
    First of all, when turning on my mac the screen just loads forever, hence it does not pick up the HD. It also displayed the circle with a line through icon once.
    Upon noticing this, I tried to repair the disk but it said it was unable to. The other disks are ok but the MAC HD says it stopped repairing when I attempted to repair it.
    Using single user mode (command + s): I tried this, but it continued to says the same i/o error code:
    disk0s2: i/o error.n
    0 [level 3] [facility com.apple.system.fs] [errtype IO] [IOType Read] [PBlkNum 57547320] [LBlkNum 67604]
    0 [level 3] [facility com.apple.system.fs] [DevNode root_device] {mountPt /] [Path /private/var/db/dyld/dyld_shared_cache_x86_64]
    And it kept going and going.
    I'm afraid to try anything else. I have no Mac back up in time machine (I know) but I have an external. Is it possible to retrieve the data by wiping the external and using the utility disk to transfer to HD to the external? Is that what people call cloning? Is this physical damage/can i still recover the data/use it and section off the damaged parts and use the spare space?
    Help would be appreciated!

    i/o errors generally mean that a part of the disk cannot be read. That can prevent the disk mounting or prevent the entire disk being read after the error.
    Disk Utility is not great at addressing issues like this & data recovery specialists are the safest (and most expensive) option for recovering data from a disk in this state.
    As others have said it's critical to avoid any use of the disk since if it's a mechanical fault it could seize or finally give up functioning.
    If you are intent on recovering 'on your own & on the cheap' you could look at ddrescue – it clones a disk by copying the data stream whilst ignoring errors from the source disk, the data on the second disk could be 'repairable' with additional tools.
    http://www.gnu.org/software/ddrescue/ddrescue.html
    TestDisk & Photorec are also good when used for the right fault.
    http://www.cgsecurity.org
    These are all *nix tools & require competence at the command line! Just installing can be too much for some non technical users.
    You also need lots of spare disks to move data onto to run the tools.
    Kappy, is CNET Downloads really a good recommendation? They have a habit of bundling other junk with third party app installers. Go straight to the vendors site would be my advice (using 'https' where available).

  • How to display multiple data from different table in one table? please help

    Hi
    I got sun java studio creator 2(the separate installation not the one in the net beans)....
    My question is about displaying data that have been taken from the database.... I know how to display data in a table(just click on the table "bind data" )... but my question is that:
    when i want to use a sql statement that taken the data from different table...
    how can i display that data in the table(that will be shown in the web) ??? when i click bind data on the table i can only select one table i can't select more than one....
    Note:
    1) i'm using the rowset for displaying the data in the table, since the sql statement is depending on a condition(i.e. select a from b where c= ? )...
    2) i mean by different table is that( i.e. select a from table1,table2 )..
    thanks in advance...

    Hi,
    937440 wrote:
    Hi every one, this is my first post in this portal. Welcome to the forum!
    Be sure to read the forum FAQ {message:id=9360002}
    I want display the details of emp table.. for that I am using this SQL statement.
    select * from emp where mgr=nvl(:mgr,mgr);
    when I give the input as 7698 it is displaying the corresponding records... and also when I won't give any input then it is displaying all the records except the mgr with null values.
    1)I want to display all the records when I won't give any input including nulls
    2)I want to display all the records who's mgr is null
    Is there any way to incorporate to include all these in a single query..It's a little unclear what you're asking.
    The following query always includes rows where mgr is NULL, and when the bind variable :mgr is NULL, it displays all rows:
    SELECT  *
    FROM     emp
    WHERE     LNNVL (mgr != :mgr)
    ;That is, when :mgr = 7698, it displays 6 rows, and when :mgr is NULL it displays 14 rows (assuming you're using the Oracle-supplied scott.emp table).
    The following query includes rows where mgr is NULL only when the bind variable :mgr is NULL, in which case it displays all rows:
    SELECT     *
    FROM     emp
    WHERE     :mgr     = mgr
    OR       :mgr       IS NULL
    ;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL it displays 14 rows.
    The following query includes rows where mgr is NULL only when the bind variab;e :mgr is NULL, in which case it displays only the rows where mgr is NULL. That is, it treats NULL as a value:
    SELECT     *
    FROM     emp
    WHERE     DECODE ( mgr
                , :mgr, 'OK'
                )     = 'OK'
    ;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL, it displays 1 row.

  • How do I retrieve data from my iBook?

    Hello, my iBook is experiencing logic board issues for the nth time (where n is a large number!). This time around it won't stay on long enough for me to retrieve my data from it. I know I can use target disk mode to retrieve my data from my iBook but I do not have access to another Apple computer to do so. Is there another alternative using a windows PC or something?
    Thanks in advance for your responses!
    Rosaline.

    You may be able to remove the hard drive (a very complicated procedure; it may take professional help), and place it in and external case in order to access it.
    What are your plans regarding the iBook?
    Have you considered trying the shim fix suggested by John Sawyer in the Apple Discussions iBook G3 (Dual USB) Displays Forum in order to attempt to deal with the logic board problem?
    [Y]ou can often fix this yourself by removing the iBook's bottom housing, and placing a shim of any sort, about 1mm to 1.5mm thick, onto the raised square on the bottom shield. I use a Scotch mounting square--you can get them in hardware stores and many grocery stores. When you reinstall the bottom case, it will press against this shim, which will press against the graphics chip, and may allow the chip to come into better contact with the logic board.
    John Sawyer
    CJS Macintosh Repair
    Instructions for removing the lower case:
    iFixit.com

  • How can I retrieve data from one table to another automatic in SQL?

    Hi, everione,
    I am having a big problem, trying to create datebase.
    I have 3 tables: SUPERAVATAR, MASTERAVATAR, MEGAAVATAR.
    - SuperAvatars are heroes in an online role playing gaming. They have an ID, ‘superavatarID’ which contain an UNIQUE NUMBER NOT NULL PRIMARY KEY to identify them.
    A wisdom – ‘trickster’,’conjuror’,’magician’, etc..
    A current owner… who is the user or player of the game and has that Super Avatar– we associate the link to USERID to know the person.
    SuperAvatars can be fathers or mothers of Mega Avatars.
    -MegaAvatars are the children of SuperAvatars…. They also have an ID UNIQUE NUMBER NOT NULL PRIMARY KEY to indentify them.
    A magic power – it can be a ‘Leader’ or ‘Sheep’…
    A ‘parent’ – parent is the number identifying to know to who Super Avatar belongs.
    e.g.
    SUPERAVAT WISD CURRENTOWNER FATHEROF MOTHEROF
    1 Thick 3 1
    2 Mentally Ch. 11 3
    3 Smart 9 2
    4 Genius 16 4
    5 Thick 19
    MEGAAVATARID MAGICPOWER PARENT
    1 MAGICIAN 1
    2 WIZARD 3
    3 SORCERER 2
    4 MAGICIAN 4
    -We see that MEGAAVATAR 1 has a magic power as Magician and his father is ‘1’. ‘1’ identifies the SUPERAVATAR.
    We see SUPERAVATARID…. who has the number ‘1’? the first in the row… who has wisdom – thick and he belongs to the USER with ID number 3.
    -We see MEGAAVATARID… we choose the number 2…. His magic power is as WIZARD… and his father is the number 3.
    We see SUPERAVATARID now… we look up the SuperavatarID 3…. We can see he has a wisdom – GENIUS… who belongs to the USERID 16 and he is father of MEGAAVATAR number 2.
    The list can carry on and never stop.
    I have this Problems:
    We create in this example 3 tables: Users, SuperAvatar, MegaAvatar
    SQL
    CREATE TABLE users(userID NUMBER CONSTRAINT pk_user PRIMARY KEY,email VARCHAR2(50) NOT NULL UNIQUE,password VARCHAR2(15) NOT NULL UNIQUE,subscription CHAR(8) NOT NULL CHECK (subscription IN('ACTIVE' , 'INACTIVE' ) ) );
    CREATE TABLE superavatar(superavatarID NUMBER CONSTRAINT pk_superavatar PRIMARY KEY, wisdom VARCHAR2(19) NOT NULL CHECK (wisdom IN ('THICK', 'MENTALLY CHALLENGED', 'AWAKE', 'SMART', 'GENIUS')), currentOwner NUMBER NOT NULL, fatherOf NUMBER,motherOf NUMBER);
    CREATE TABLE megaavatar (megaavatarID NUMBER CONSTRAINT pk_megaavatar PRIMARY KEY, magicPower VARCHAR2(12) NOT NULL CHECK (magicPower IN('TRICKSTER','CONJUROR','MAGICIAN','WIZARD','SORCERER')), parent NUMBER);
    Now, the 3 tables are created…..
    What happen when we try to insert values to this table?
    In this case we insert to User Table some examples:
    INSERT INTO users VALUES('3','[email protected]','great78','ACTIVE');
    INSERT INTO users VALUES('9','[email protected]','chrisandra)','ACTIVE');
    Now, we insert to SuperAvatar some examples;
    INSERT INTO superavatar VALUES('1','THICK','3','1','');
    INSERT INTO superavatar VALUES('3','SMART','9','3','');
    |
    |
    ‘9’ is the UserID that we already insert to the User table
    What’s the problem?
    We have to insert manually the data from USERID to CURRENTOWNER as we didn’t match or link CURRENTOWNER from SUPERAVATAR Table to USERID from USER Table with a SQL CODE.
    What happen if we have thousands of USERS that they register to this game…? We will never know to how belongs that SUPERAVATAR but if someone do it manually can spend a year.
    I am trying to fix this problem …. I add in SUPERAVATAR TABLE ‘CHECK’ in currentOwner..
    SQL> CREATE TABLE superavatar
    (superavatarID NUMBER CONSTRAINT pk_superavatar PRIMARY KEY, wisdom VARCHAR2(19) NOT NULL CHECK (wisdom IN ('THICK', 'MENTALLY CHALLENGED', 'AWAKE', 'SMART', 'GENIUS')),
    currentOwner NUMBER NOT NULL CHECK (currentOwner IN(SELECT userID FROM users)),
    fatherOf NUMBER,
    motherOf NUMBER);
    ERROR:
    ORA-02251: subquery not allowed here
    It doesn’t work.
    Please HELP, I have exam tomorrow
    thank you
    Desy

    Hallo,
    you can use trigger on table USER and fill the userid in AVATAR.currentowner,
    but i don't understand, how you join these tables ?
    Which user id must come in which column currentowner ?
    Design problem ?
    Regards
    Dmytro

  • How do I retrieve data from combo boxes?

    The past weekend I spent my whole weekend trying to find this
    out and gone through the top 10 pages on google trying all sorts of
    things. I would be grateful for anyone who can help me.
    I have 6 combo boxes in a booking form and I need to retrieve
    the data when someone click submits which gets forwarded on to php
    then my mailbox. They are called box1_cb, box2_cb.....box6_cb All
    in the instance of: ComboBox - which I don't understand what that
    does.
    it does not seem to be retrieving any of the data. For each
    combo box:
    I have the the options people can choose form in "Labels" box
    under "Paramaters", nothing for "Data", Row Count is 8 and nothing
    for "Change Handler" which I don't know what it does.
    Can anyone please provide some help with telling me what
    "change handler" does, do I need the data for each combo box in the
    "Labels" parameter as well as the "Data" box, what an instance does
    (for combo boxes) and what I need to put in the actionscript for
    the submit button as well as do i need to put code in the
    actionscript for each combo box?
    The options people can choose from in the combo boxes are
    there when someone views the site.
    Can anyone please help me..I would greatly appriciate it.
    Thanks.

    If your hard drive can be detected and shows up as a drive letter in my computer but you can't access your files,then you can recover your data off it with data recovery software easily.This way is the easiest and the most inexpensive way to recover your data.If you bring it to a computer repair shop that is available for data recovery servise,they will cost you $500-1000 or more.Hmm, a lot of money.
    I managed to recover data from crashed hard drive with Tenorshare Data Recovery.If needed,you can download it and scan your hard drive for free to preview whether your data can be recovered.It will show you thumbnails for recoverable pictures.

Maybe you are looking for

  • Differences between the "Adobe Acrobat Versions 7 and 9"

    Dear Adobe Support Team, I need to know the differences between the "Adobe Acrobat Versions 7 and 9". I have worked with Acrobat 7 and have used the same script after installing Acrobat 9 for Automation Testing with QTP for validating pdf. The object

  • Could not save because the ICC profile description is invalid

    I'm getting this error whenever trying to do a "save" or "save as" from Photoshop CC. I've tried converting to different color profiles but that doesn't seem to make a difference. Even if I create a new blank document and try to save it, I get the sa

  • User name and password in sqlplus

    I purchased oracle internet developer suite cd pack for MS Win & NT for my class work. I was able to install oracle qluick suite and selectiverly installed oracle forms in my PC (win 95). I went to sql plus 8.0 to create table and I see log on screen

  • Very Slow.......... connection for last week

    Hi, ive been having very very slow speeds for the last 7-10 days speedtests showing anywhere between 200 kbps - 600 kbps which is obviously very bad, when i first move to this address about 2.5 months ago i was getting average of 5.5 mb which is a bi

  • Formatting code with lots of spaces

    Every now and then (but very rarely gladly) dreamweaver is formatting my code and adding LOTS of spaces. 1 extra space between each line of code and sometimes more lines it seems. I can use Apply Source formatting to get the CSS code fine but for the