Create both onscreen and database storage JSP application

Hi,
My JSP application is a JSP form with name, address, phone number, etc. and a submit button. The output currently shows onscreen with no database connection. Can someone please tell me how I store this in the Oracle database and would it be possible to do both - show the output on screen and also store it in the database.
TIA,
Sassan
Code:
Create jsp form:
<html>
<head>
<title>Create Form</title>
</head>
<body>
<form action="/Create_Form_html/RetrieveFormData.jsp" method="post">
<table align="center" cellspacing="2" cellpadding="2" border="1">
<tr>
<td colspan="3">
<b>Company Name:</b>
<%
String company = request.getParameter("company");
if ( company != null ) {
%>
<input type="text"
name="company name"
value="<%=company %>"
size="40" maxlength="40">
<%
else {
%>
<input type="text"
name="company name"
size="40"
maxlength="40">
<%
%>
</td>
<tr>
<td colspan="3">
<b>Street:</b>
<input type="text"
name="street"
size="43"
maxlength="43">
</td>
</tr>
<tr>
<td>
<b>City:</b>
<input type="text"
name="city"
size="20"
maxlength="20">
</td>
<td>
<b>State:</b>
<input type="text"
name="state"
size="2"
maxlength="2">
</td>
<td>
<b>Zip:</b>
<input type="text"
name="zip"
size="5"
maxlength="5">
</td>
</tr>
<tr>
<td>
<input type="Submit" value="Submit">
</td>
</tr>
</table>
</form>
</body>
</html>

You can use JDeveloper's Data Web Beans - these are data-aware controls for JSPs.
Start by creating a JSP from scratch using the Business Components JSP application wizard. Instructions are in the online documentation, under:
User Guides
->Developing Applications
->Developing Web Applications
->Creating a JSP application
Or you can learn how to do this by stepping through the Business Components tutorial. The tutorial is also in the online documentation, under Tutorials and Sample Applications.
Once you're more familiar with data-aware JSPs, you can customize a data-aware JSP or create your own from scratch. Instructions for customizing JSPs are also in the online documentation, following the instructions for creating a JSP.
Regards
Blaise

Similar Messages

  • How to configure automatical startup of both ASM and Database

    I created a ASM and a database that uses this ASM for file storage management. I also edit the /etc/oratab file as followings:
    +ASM:/u01/app/oracle/product/10.2.0/asm:Y
    orcl:/u01/app/oracle/product/10.2.0/db_1:Y
    However, when I reboot the system, both ASM and database instances cannot be started up automatically.
    How can I configure automatical startup of both ASM and Database at system reboot?
    Thanks in advance!

    try the following
    Create file called startdb.sh in $ORACLE_HOME/bin and put following line into startdb.sh and
    change the permission of the file with following command.
    $vi $ORACLE_HOME/bin/startdb.sh
    su - oracle -c 'sh /oracle/product/10.2.0/db_1/bin/dbstart'
    Please replace /oracle/product/10.2.0/db_1/ with your ORACLE_HOME
    $chmod 777 $ORACLE_HOME/bin/startdb.sh
    Open /etc/inittab file and append following two lines in /etc/inittab.
    h2:35:once:/etc/init.d/init.cssd start >/dev/null 2>&1 </dev/null
    h3:35:wait:/oracle/product/10.2.0/db_1/bin/startdb.sh >/tmp/stdb.out 2>&1
    If you have h2,h3 in the inittab file please feel free to change it to h4,h5 or whatever is unique, but it has to be unique name
    Please replace /oracle/product/10.2.0/db_1/ with your ORACLE_HOME.
    Reboot machine and check out whether both instances are getting started or not.Please check $ORACLE_HOME/startup.log for more information.
    rgds
    alan

  • How do I create both endnotes and footnotes in same doc in Pages? I have iWork 2008. I understand how to create one or the other, but not both.

    How do I create both endnotes and footnotes in same doc in Pages? I have iWork 2008. I understand how to create one or the other, but not both.

    You have to select one or the other.
    Try making two documents and see if you can merge the .pdfs, but their will be problems with page flow, making the pages shift. Can't see it working really.
    Pages is not the only solution out there or the best for most jobs (let alone the safest). Try Word for Mac, LibreOffice (free) or any App that has the features you need.
    Peter

  • Using MS-Access database in JSP application

    Hi, all. I am new in JSP world. I have an Access database and I�d like to access it in my JSP Application.
    Does anybody know I could do this?
    TIA
    Fernando

    Define your database as an ODBC source and then use the JDBC/ODBC bridge. It's actually only a few lines of code - see http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

  • Create another sid and "database"?

    Hello,
    I've just installed a Oracle 8.0.5 into a linux box and
    making some tests using the SID (ora) I gave to the installer
    prompt. This means I can make a connection to this
    database using sqlplus, e.g sqlplus user/passwd@ora.
    I'm missing some terminology here, but I'd like to create
    another database/tablespace/instance/whatever to be something
    for testing, e.g. sqlplus user/passwd@tdev.
    This far I've managed to alter the files listener.ora and
    tnsnames.ora, so that the listener now says:
    ./lsnrctl status
    Services Summary...
    extproc has 1 service handler(s)
    ora has 1 service handler(s)
    tdev has 1 service handler(s)
    But what is the next step here? When I try to create a
    database that corresponds with the SID "tdev" I get:
    ./svrmgrl
    connect internal
    shutdown
    startup nomount
    create database tdev <lots of parameters>
    ORA-01501: CREATE DATABASE failed
    ORA-01504: database name 'TDEV' does not match parameter db_name
    'ora'
    Yours,
    Marko
    null

    Many thanks for your advice, now it almost works.
    I was able to create the database tdev and
    after after adding users in it, I'm able to
    connect it as well.
    However, if I now try to connect any other database
    (those ones on the same machine or those ones that
    are depicted in tnsnames.ora), I always get the message:
    ORA-01034: ORACLE not available
    tnsping to those databases works fine and lsnrctl start
    command gives me:
    Services Summary...
    extproc has 1 service handler(s)
    ora has 1 service handler(s)
    tdev has 1 service handler(s)
    The command completed successfully
    Yours,
    marko
    Anstefan (guest) wrote:
    : To create a new instance you have to do the following:
    : * choose the name of the instance
    : * set the environment variable ORACLE_SID to this value
    : * go to the admin directory and create a new directory with
    this
    : name
    : * copy the subdirectories from another database (for example
    ORCL)
    : * go to the new subdirectory pfile and rename the files
    : config<SID>.ora and init<SID>.ora
    : * change the necessary parameters (be careful that you don't
    : overwrite files from a already existing instance)
    : * create a link from the dbs directory to the pfile directory
    : for the init<sid>.ora file.
    : * start server manager
    : * startup nomount pfile= (name of your init<sid>.ora file
    : with fullpath)
    : * create database command
    : * create data dictionary
    : * create additional tablespaces and rollback segments
    : * insert database in the file /etc/oratab
    : * insert new instance in listener configuration
    : Stefan
    : Have fun with your new instance.
    null

  • Is it possible for buyer to create both RFQ and supplier response (i.e. quotations) in Sourcing module?

    Hi,
    In Vision Demo, after buyer (e.g. cbaker) creates a RFQ, then i can logon as supplier account (e.g. 'industrial') to input corresponding quotation.
    But as our site doesn't allow suppliers to logon our EBS directly and we receive paper quotations, then, is it possible for buyer to input quotation for these RFQs in Sourcing module?
    Thanks
    Leo

    private String createTransmitter() {
    localAddr = new SessionAddress( InetAddress.getLocalHost(), port);
    destAddr = new SessionAddress( ipAddr, port);You can do instead:
    localAddr = new SessionAddress( InetAddress.getLocalHost(), SessionAddress.ANY_PORT);

  • Database storage vs. File system

    Hi,
    We'll be setting up a new Oracle UCM 10g* environment in a production scenario - we have access to high-speed SAN for file storage, but we can also use an Oracle 11g database for file storage (using the File Store Provider) - the database's tablespace files will anyway be stored on the SAN. We're not quite sure which way to go - assuming we have complete ha/dr for both SAN and database solutions, which way is the best?
    I'm also aware that if we don't select the webless option we'll anyway need a similar amount of storage on the file-system as the weblayout will contain a copy (or a web-rendition) of the checked in file - we could create a webless ucm, with inbound refinery only creating files in weblayout.
    Any input on the matter would be appreciated.
    *11g not chosen due to WebLogic licencing requirements for our client - anyone know if 11g will ever be released standalone?
    EDIT - re: 11g licensing - sorry about that i misunderstood the licensing issue of our client.
    Edited by: Etienne Azzopardi on 04-Feb-2011 13:44

    Sorry, but I will start my reaction from the last point:
    *11g not chosen due to WebLogic licencing requirements for our client - anyone know if 11g will ever be released standalone?What do you mean? UCM license contains a restricted license of Weblogic EE for the purpose of hosting UCM. In other words, WLS is there for free (only it cannot host anything else). 11g will never be standalone - it will only support other application servers, namely, Websphere and JBoss (it follows the logic for other non-Oracle middleware products).
    File system vs. database - there's been a couple of posts on this topic.
    In a nutshell:
    - with regard to the speed: unless you have really a lot of items (millions a month at least, maybe even millions a day), file system will be slightly faster or equal
    - in Oracle DB 11.2 or higher you can use SecureFiles, which can effectively work with unstructured content. It can squeeze the disk space needed for storage, speed up operations (checkins, but also e.g. backups)
    - with DB you will effectively have one system to manage - well, UCM still requires file system (shared storage for clusters), because some operations like conversions cannot run on the content in the database
    - DB gives you further options like partitioning, hierarchical storage management, advanced security, etc. Your SAN storage can have some of these too.

  • Does Pool & Cluster tables has the same structure in both Dictionary and Db

    ------------ Exists with the same structure both in dictionary as well as in database exactly with the same data and fields
    a. Pool Table
    b. Cluster Table
    c. Transparent Table
    d. All the above
    To my knowledge, I know transparent table has the same structure in both Dictionary and database.
    Can anyone tel me the answer for the above question.. whether it is
    c. Transparent table
    or
    d. All the above

    Transparent Table:
    A physical table definition in the database for the table definition which is stored in the ABAP Dictionary for transparent tables when the
    table is activated. The table definition is translated from the ABAP Dictionary to a definition of the particular database.
    A transparent table in the dictionary has one to one relationship with a table in the database.
    For each transparent table in the data dictionary there is one associated table in the database.The database table has the same name, the same number of fields and fields have same names as the transparent table definition. Transparent tables are used to hold application data. Application data is master data or transaction data used by an application.
    e.g. master data - table of customers
    Transaction data - order placed by the customers.
    Pooled tables:
    Pooled tables can be used to store control data (e.g. screen sequences,program parameters or temporary data). Several pooled tables can be
    combined to form a table pool. The table pool corresponds to a physical table on the database in which all the records of the allocated pooledtables are stored.
    Pooled table in R/3 has a many to one relationship with a table in the database. For one table in the database there are many tables in the R/3 data dictionary.R/3 uses pooled tables to hold large number of very small tables. You might create a table pool if yoou need to create hundreds of small tables that each hold only a few rows of data.
    Cluster tables :
    Cluster tables contain continuous text, for example, documentation.Several cluster tables can be combined to form a table cluster. Severallogical lines of different tables are combined to form a physical record in this table type. This permits object-by-object storage or
    object-by-object access. In order to combine tables in clusters, atleast parts of the keys must agree. Several cluster tables are stored in
    one corresponding table on the database.
    A cluster table is similar to pool table . It has many to one relationship with the table in the database.
    They are used to hold the data from a few(approximatelly 2 to 10) very large tables. They would be used when these tables have a part of their primary keys in common and if data in these tables are all accessed simultaneously.A cluster is advantageous in the case where data is accessed from multiple tables simultaneously and those tables have at least one of their primary key fields in common.Cluster table reduce number of database reads and thereby improves performance.

  • JSP applications

    hi,
    I am new to SAP NetWeaver Developer studio,my doubt is .. is it possible to create RDBMS in database and access this database with JSP applications? if yes how should I aproach?
    Thanky in advance.
    Cheers
    Majjigapu

    Hello,
    we do not prefer nor recommend this approach as our software usually is three tier and therefore needs a business level in between . However, this would be possible to do and there are lots of examples in the internet how to do this. You can go with our examples to ge the details of NetWeaver Studio.
    Regards,
    Benny

  • Creating a RAC standby database for a single instance database

    Dear All,
    I have a task of migrating a 500GB single instance database to a two-node RAC database with a little downtime at hand. My migration strategy is to:
    1) Create a RAC physical standby for the Single Instance database
    2) Switchover to RAC standby.
    Primary and Standby OS and DB configurations:
    OS: Windows Server EE 2003 (64-bit)
    DB: Oracle 10g Database Release 2 (10.2.0.4)
    Oracle 10g Clusterware Release 2 (10.2.0.4)
    To create a RAC standby, I will:
    a) Install Clusterware (10.2.0.1)
    b) Install Database (10.2.0.1)
    c) Patch both Clusterware and Database (10.2.0.4)
    d) Create ASM instance for both the nodes (+ASM1 & +ASM2)
    e) create standby controlfile on primary
    f) Move standby controlfile, RMAN backup of primary, pfile, listener.ora, tnsnames.ora, password file to standby host-1
    g) make necessary changes to the pfile on standby host-1 like cluster_database, instance_name, thread, ...
    h) mount standby database and restore backup
    Kindly validate my steps and if there already exists such a document then please do provide me with a link.
    Regards

    Please refer to MAA whitet paper :
    [http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10g_RACPrimaryRACPhysicalStandby.pdf]
    [MAA website|http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm]

  • How to get gps and acceleration in a application??

    Situation:
    I only can get acceleration or gps seperately.
    Purpose:
    Get both acceleration and gps in an application.
    Question:
    Does anyone know how to get the both accelerations and gps data??
    My code:
    if (bps_event_get_domain(event) == sensor_get_domain()) {
                handle_acceleration_response(event);
    }else if (bps_event_get_domain(event) == geolocation_get_domain()) {
                handle_geolocation_response(event);
    Thank your attention.
    -Fight with BB10

    Native sdk.
    Thx
    -Fight with BB10

  • Different values on form and database

    hi all
    i have a field which counts the number of rows
    on the form which is showing a different value (which is correct)
    and in the database it is showing a different value (incorrect)
    i have issued commit
    i am not understanding why this is happening ..
    please help me
    Mandar

    listening for the first time but u r facing the problem, reconfirm that the query/properties are correct in form properties, check it by creating new form module for just checking weather it is showing correct in that form. and c if there is when_new_form_instance trigger or When_Validate_windows trigger used for some execution. and one more thing just check if u didnt change the column and create it again and database type is NO ( properties )

  • D800 file compatibility:  Has anyone experienced problems with loading D800 files onto the iPad using the camer connector kit?  I have tried both RAW and JPEG using SDHC and CF cards and the iPad(3) doesnt recognise any of the files.

    Has anyone experienced problems with downloading Nikon D800 files to the iPad3 using the camer connector kit?  I have tried .RAW and JPEG (of various sizes) on both SD and CF cards, but the iPad doesn't recognise the files. 
    I have seen various forums discussing Lightroom and PSE updates that are required to process .NEF files but I can't find anything on the iPad/camera connector issue.
    I dont have any problem if I put the SD card straight into the SD slot in my iMac and Aperture will process the files fine, but I would really like to be able to download and view files on the move on the iPad.
    Any advice appreciated?
    PS - saw something that suggested the iPad had a maximum file size of 16mb for photos, not sure if this is correct, but I have tried smaller JPEG files and they still aren't recognised.

    If your camera supports both PTP and Mass Storage Device modes, it may be necessary to use both modes to import all media content.
    If some files do not import as expected using one mode, try switching to the other mode and importing again.
    Note: Some cameras may refer to PTP as Pictbridge or PTP/Pictbridge.

  • Creating a drag and drop converter?

    Does anyone know if there is a simple way to create a drag and drop converter type application?
    I have a small command line application that converts an input file to an output file. It can take a few extra options, but these aren't necessary. To make this functionality available to more people I would like to convert it into a simple "drag and drop" style applcation, which would call the binary.
    Does anyone have any recommendations or pointers to a tutorial on doing something similar? I am a bit of a newbie in terms of Mac development and I am thinking this could be a practical way of getting me introduced?

    You might take a look at Pashua - it is designed to tack a GUI onto things that don't have one.  Otherwise, you are probably looking at something more serious, such as Xcode.

  • Is "sp_purge_data" available only to datawarehouses or can it be used with both a normal database and Azure storage as well ?

    Is "sp_purge_data" available only to datawarehouses or can it be used with both a normal database  and Azure storage as well ?

    Thank you for the reply Qiuyun , the article was really helpful!
    I do have couple of other questions for you :
    How do we execute our SQL queries on Windows Azure tables and create horizontal partitions ? (I know that we have our SQL Server management Studio to execute normal queries on a SQL database , do we have a similar platform for Azure or do we have to get a local
    copy of the database to execute our queries and the  publish everything back to Azure)? I am looking to partition data on one of our databases and would like to know if it can be done in Azure directly or if we have to bring a local copy down ,write the
    partition function and
    and partition scheme or create a partition key and a row key - do the needful and publish it back to Azure?
    Also, how do I create a partition key and row key in Windows Azure?
    I am in the process of designing data archiving strategy for my team and would like to know more about the questions I just mentioned.
    Hoping to hear back from you soon.
    Thanks in advance for all the help!
    -Lalitha.

Maybe you are looking for

  • How can I check from where a user is signed in to Lync / force a log off?

    Hi there, in my support organization we have personalized accounts and one general account that is used for chat support. Now as Lync is delivering the instant messages on a first come - first serve basis, I would like to check from where someone is

  • Pictures taken with Playbook are not saved

    Hello all,  I found myself taking a few pics today with the Playbook at work, thinking I could review them later and prepare a report. To my surprise they were nowhere to be found. This is the first time something like this happens and as a user it's

  • Internet connection at boot system

    Every times when I boot the system, i need to do this comands to my net works: # ip link set enp0s3 up # dhcpcd enp0s3 -K How can I do this permanent? Ps> I'm running Arch under VirtualBox to learn, I don't know if has differences Last edited by Mayk

  • Using attribute variables in the planning folders

    Hi all, Is there way to use attribute variables in the planning folders? There is a following situation. We have a number of cost centers (0COSTCENTER). Cost center has responsible person (0RESP_PERS) as attribute. We planning some costs for cost cen

  • Incorrect results for calculation based on diff dimensions - 11.1.1.5

    Hello All, OBIEE gives incorrect results when i try to perform a calculation (for eg: addition) based on 2 measures. For eg: (Note: "->" signifies 1:M) Rpd (Physical model & BMM): dim_fe -> dim_gl-> Fact_Legder <- Dim_param Fact_Ledger (agg measures)