HTML output from PL/SQL

What are my options for this?
I will appreciate the information.
Thx,
SriDHAR

PSPs use the same web toolkit as the htp and htf calls. You set up the same way. If you have Oracle 9iAS, you have an Apache web server set up with the mod_plsql module. If you install the PL/SQL Gateway with the 8.1.7 or later database, you have the same thing. All you need to do is configure a Database Access Descriptor (DAD) that tells mod_plsql which database to connect, and optionally, the username and password.
In 9iAS Release 1, this is done though the configuration form that you can get to via the documentation pages that are set as your default home page when the application server is installed. In Release 2, this is part of the web-based Enterprise Manager. All of this is well documented - check documentation pages here on OTN, or on Metalink.

Similar Messages

  • HTML output from Maven report

    Is there a way to get HTML output from the Maven report? When I do a site generation, I see pmd.xml in the target directory and a flexpmd.html file in target/site, but flexpmd.html is essentially empty. I don't see any configuration option for this. The "regular" PMD plugin always outputs HTML and the XML output is an option (although it defaults to on): http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#format

    Actually, flex-pmd-maven-plugin 1.0.RC4 understands this in the configuration tag:
         <outputDirectory>${project.build.directory}/site</outputDirectory>
         <targetDirectory>${project.build.directory}/site</targetDirectory>
    With this, "pmd.xml" and "flexpmd.html" are placed in the site folder, but "flexpmd.html" is replaced later with the empty site report template. So, no real gain here.
    Any ideas on how to integrate the "flexpmd.html" file with the site reports?

  • HTML output from within PL/SQL

    I have some procedures that use dynamic SQL to select data. I would like to post this data by email using the HTML table format.
    Is there some simple way to produce html from PL/SQL?
    I would like to get the output similar to a SET command in SQL (SET MARKUP HTML ON), how can this be acomplished in PL/SQL?

    but my basic problem is how to generate a HTML table as a result of some select statement (which is dynamic, so i don't know the columns and their types at the time of programming).How about
    SQL>  declare
    p_thequery long := 'select * from dept';
    p_max_rows number := 100;
    param_val owa.vc_arr;
    thepage htp.htbuf_arr;
    irows number := 1000000;
    begin
    param_val (1) := 1;
    htp.adddefaulthtmlhdr (false);
    owa.init_cgi_env (param_val);
    htp.tableopen ();
    owa_util.cellsprint (p_thequery,
                          p_max_rows);
    htp.tableclose ();
    htp.get_page (thepage,
                   irows);
    for i in 1 .. thepage.count
    loop
      dbms_output.put_line (thepage (i));
    end loop;
    end;
    <TABLE >
    <TR>
    <TD>10</TD>
    <TD>ACCOUNTING</TD>
    <TD>NEW YORK</TD>
    </TR>
    <TR>
    <TD>20</TD>
    <TD>RESEARCH</TD>
    <TD>DALLAS</TD>
    </TR>
    <TR>
    <TD>30</TD>
    <TD>SALES</TD>
    <TD>CHICAGO</TD>
    </TR>
    <TR>
    <TD>40</TD>
    <TD>OPERATIONS</TD>
    <TD>BOSTON</TD>
    </TR>
    </TABLE>
    PL/SQL procedure successfully completed.?

  • Help: No Parameters, HTML Output from Java Servlet

    I have a Java Servlet that reads parameters passed from an HTML form and displays them to another HTML page. I know the servlet is being invoked; however, I am not seeing any HTML output. Sending the output to a file reveals the parameters are coming in as NULL as well.
    I attempted a simple sample app with the same results. Here is what I am running:
    The HTML Form:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Collecting Three Parameters</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1 ALIGN="CENTER">Collecting Three Parameters</H1>
    <FORM ACTION="ThreeParams">
    First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
    Second Parameter: <INPUT TYPE="TEXT" NAME="param2"><BR>
    Third Parameter: <INPUT TYPE="TEXT" NAME="param3"><BR>
    <CENTER><INPUT TYPE="SUBMIT"></CENTER>
    </FORM>
    </BODY>
    </HTML>
    The Java Code:
    public class ThreeParams extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Reading Three Request Parameters";
    out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
         "Transitional//EN\">\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">" + title + "</H1>\n" +
    "<UL>\n" +
    " <LI><B>param1</B>: "
    + request.getParameter("param1") + "\n" +
    " <LI><B>param2</B>: "
    + request.getParameter("param2") + "\n" +
    " <LI><B>param3</B>: "
    + request.getParameter("param3") + "\n" +
    "</UL>\n" +
    "</BODY></HTML>");
    What happens when I "submit" from the form is the same form reloads with the query string in the URL: "http://localhost:8080/ThreeParams/?param1=1&param2=2&param3=3"
    Any assistance with either (or both) would be thoroughly appreciated:
    a) why the parameters are not being passed correctly to the servlet
    b) why the HTML output page is not displayed
    Thanks in advance!
    - Steve

    I have found the answer to my problem listed in another thread.
    Thank you.

  • JDev generated webservices encodes XML output from PL/SQL procedure

    I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
    Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
    Here is an example of the SOAP message that the webservice returns:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
    Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
    & gt;diensten& lt;
    & gt;dienst>some value& gt;/dienst& lt;
    & gt;/diensten& lt;
    </ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
    (I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
    The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
    How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?

    Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
    At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
    Any help is greatly appreciated.

  • Capture generated html output from jsf page in bean

    Hi Member,
    I have need to capture the html output coming form jsf page. means aftr rendering what html is displayed before user, we have need to get it in programm.
    like if we use:
    <h:dataTable......>
    <h:colum>heloo</h:column>
    </h:dataTable>
    then their ouput will be:
    <table>
    <tr><td>heloo</td></tr>
    </table>
    and i have need of these complete line with <table> ......</table>
    Please help me...
    Thanks
    Shailendra Kumar

    Thnx for quick reply.
    But i want to capture it in render response phase. May it will be possible??? Is render response phase is responsible for generation of HTML format?? If yes then how can we capture output coming from this phase.
    URLConnection if fine but it still hit server once. I don't want that. I want to store page html format during its view preparation for html.
    Thanks
    Shailendra Kumar

  • Pass output from PL/SQL proc back to ODI for logging

    Hi,
    In ODI (10g), is there any way to pass output from a PL/SQL procedure back to the calling stage?
    I am working on the run time of a batch, one part of which calls a procedure and so currently black box.
    I'd like to instrument the proc so that I can see in Operator some kind of timed activity so that I can profile its activity better.
    The best I've had suggested so far is to write out to file from the procedure and then use ODI to parse this and spit it out in the stage log. I don't like this approach for two reasons:
    1) Our DBAs quite rightly get very itchy with the privs required for writing to files, and another app to read from the same
    2) It's messy :)
    Any ideas?
    thanks, Robin.

    Robin
    I don't know ODI. However if you are calling a stored proc procA and you have control over what you call, at the very least you could write a wrapper procB as
    CREATE OR REPLACE PROCEDURE PROCB (parms)
    AS
    BEGIN
    SYS.DBMS_MONITOR.SESSION_TRACE_ENABLE();
    MYUSER.PROCA(parms);
    SYS.DBMS_MONITOR.SESSION_TRACE_DISABLE();
    END;
    / If ODI sets service,module and action (as it should) then you could ask the DBA to set SERV_MOD_ACT_TRACE_ENABLE instead.
    Niall Litchfield
    http://www.orawin.info/

  • Output from pl/sql procedure

    The output from my pl/sql block is not being captured in the spool file. This would help to debug.
    Thanks in advance...

    You have to put "set serveroutput on" if you use package dbms_output or check you path for spool file

  • Need Formatted html output from Xalan

    We use xalan xslt processor to convert
    xml document to html. Everything works
    fine, except the output is unformatted html.
    (ie. several HTML elements appear on the
    same line. Some lines are longer than 1000
    characters). This happens inspite of me
    specifying the HTML elements in different
    lines in the xsl.
    I would like to know if there is any way, I can generate formatted html output.
    Thanks

    have u tried
    <xsl:output indent="yes"/>
    in your stylesheet?
    ravi <[email protected]> wrote:
    We use xalan xslt processor to convert
    xml document to html. Everything works
    fine, except the output is unformatted html.
    (ie. several HTML elements appear on the
    same line. Some lines are longer than 1000
    characters). This happens inspite of me
    specifying the HTML elements in different
    lines in the xsl.
    I would like to know if there is any way, I can generate formatted html
    output.
    Thanks

  • ADF Report output from PL\SQL Table

    Hi,
    I am some complex calcualtions in the report and the report has a fixed number of columns and reports. Is there any way i can do all the programming in pl\sql and call this procedure/package from ADF and return the pl\sql table type?
    Can i create a VO from pl\sql table?
    Thanks,
    Lakshmi.

    On Database
    create or replace type empRow as object (
    Employee_ID Number,
    First_Name Varchar2(20),
    Last_name Varchar2(25)
    create or replace type empTable as table of empRow;
    create or replace function getEmployees
    (aDepartmentID Number)
    return empTable
    PIPELINED
    as
    begin
    for rec in (select Employee_ID, First_Name, Last_name
    from employees
    where Department_ID = aDepartmentID) loop
    pipe row(new empRow(rec.Employee_ID, rec.First_Name, rec.Last_name));
    end loop;
    return;
    end;
    THEN create a VO based on this Query below:
    select * from table(getEmployees(:deptid)
    and you are ready to Go.

  • Script task to convert output from a sql query into send mail task body formatting

    SSIS 2008R2 Version
    Code from script task
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_29dd6843bd6c4aee9b1656c1bbf55ba8.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            public void Main()
                Variables varCollection = null;
                string header = string.Empty;
                string message = string.Empty;
                Dts.VariableDispenser.LockForWrite("User::gsEmailMessage");
                Dts.VariableDispenser.LockForWrite("User::gsWebserviceName");
                Dts.VariableDispenser.LockForWrite("User::gsNoOfCallsInADay");
                Dts.VariableDispenser.LockForWrite("User::gsCalledBySystem");
                Dts.VariableDispenser.GetVariables(ref varCollection);
                //Set the header message for the query result
                if (varCollection["User::gsEmailMessage"].Value == string.Empty)
                    header = "Hi, Count is greater then 50 :\n\n";
                    //header = "Execute SQL task output sent using Send Email Task in SSIS:\n\n\n";
                    header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
                    header += string.Format("{0}\t\t\t\t{1}\t\t{2}\n", "WebService Name", "No Of Calls In A Day", "Called By System");
                    header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
                    varCollection["User::gsEmailMessage"].Value = header;
                //Format the query result with tab delimiters
                     message = String.Format("<HTML><BODY><P>{0}</P><P>{1}</P><P>{2}</P></BODY></HTML>",
                                            varCollection["User::gsWebserviceName"].Value,
                                            varCollection["User::gsNoOfCallsInADay"].Value,
                                            varCollection["User::gsCalledBySystem"].Value);
                varCollection["User::gsEmailMessage"].Value = varCollection["User::gsEmailMessage"].Value + message + "\n";
                Dts.TaskResult = (int)ScriptResults.Success;
    Above code will return data in below format and then i send this output in aemail using send mail task.
    Hi, count is greater then 50 :
    WebService Name                                                         
    No Of Calls In A Day                        Called By System
    WebServiceone                                                     1                             
    Internetbutiken
    WebServiceGetdetailstwo                                                  1                             
    Internetbutiken
    Servicenamethree                                                            2                             
    MOB
    As you can see above code is not in align as if we service name is shorter then 2nd column get disallign and its not look good.I need output should be like below.
    Hi, count is greater then 50 :
    WebService Name                                                         
    No Of Calls In A Day                        Called By System
    WebServiceone                                                              1                             
    Internetbutiken
    WebServiceGetdetailstwo                                              1                             
    Internetbutiken
    Servicenamethree                                                          2                             
    MOB
    Please suggest something...
    Thanks 
    SR_MCTS

    See code explained here
    http://microsoft-ssis.blogspot.in/2013/08/sending-mail-within-ssis-part-2-script.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    This will not help.As I am not creating smtp connectin ,send from ,send to in script task.I am just creating email body from sql output.

  • Calling an HTML function from PL/SQL stsement

    The pl/sql statement below is in attempt to raise an alert window whenever a new record is added to the database by an automatic page refresh.
    Pls help me edit the statement below to call a HTML function named attention()from within the pl/sql statement or better still review the stuff to achieve the objective.
    declare
    v_count number;
    attention varchar2(100);
    begin
    select count(move_id)
    into v_count
    from move
    where move_status = 'Approved';
    if v_count > :f100_move_count then
    attention();
    end if;
    end;
    Thanks gents
    Sirdeeq

    Sorry, the function is Javascript not HTML

  • Get server output from pl/sql stored procedure

    Hi Colleagues,
    I would like to get and watch the server output of my PL/SQL stored procedure
    when I run my java program and call it from. The Stored proc. uses "dbms_output.put_line".
    If it is clearly and possible (or not), will you send me your answer!
    Thanks a lot
    Ulve

    Hi,
    You can redirect the standard output to the console (i.e., the SQL output) using the
    DBMS_JAVA.SET_OUTPUT() method.
    SQL> SET SERVEROUTPUT ON
    SQL> call dbms_java.set_output (5000);But, the output is only printed when the stored procedure exits, and this setting works only for one call (i.e., the SQL call that immediately follows the invocation of DBMS_JAVA.SET_OUTPUT()). The minumum and default value is 2,000 characters and the maximum is 1,000,000 (1 million) characters. Notice the “SET SERVEROUTPUT ON” which enables displaying the outputs of stored procedures (Java or PL/SQL blocks) in SQL*Plus.
    Kuassi http://db360.blogspot.com

  • HTML Output from CDATA

    I have the following XML code:
    <Deliverables><![CDATA[<P><B>test</B></P>]]></Deliverables>
    When output into HTML I get the following from that element:
    &lt;P&gt;&lt;B&gt;test&lt;/B&gt;&lt;/P&gt;
    What flag/property can I use in the template to get the actual contents ?
    <P><B>test</B></P>
    Thanks
    -Gabe

    Hi
    I'm trying to do something similar to your example.
    Have you found a solution?
    Thanks in advanced
    Vitor

  • Can i pass output from PL/SQL Block (Urgent)

    Dear All,
    I am calling ABC.sql from Shell Script using input parameters.
    eg.
    Declare
    X varchar(12) := &1;
    Begin
    Select..........................
    Exception
    End;
    This &1 parameter i am passing from shell script.
    Like that, is it possible to pass output parameter to Shell script.
    Thanks,
    Vikas

    I don't usually do Windows but ...
    C:\TEMP>type t.bat
    @@echo off
    for /f %%D in ('sqlplus -s user/password@instance @t.sql 1') do (
       set res=%%D)
    echo result is %res%
    C:\TEMP>type t.sql
    var x VARCHAR2(10);
    set pages 0 feedback off echo off verify off;
    BEGIN
       SELECT 'Hello' INTO :x
       FROM dual
       WHERE 1 = &1;
    END;
    print x;
    exit;
    C:\TEMP>t.bat
    result is Hellosprings to mind as one way to do it.
    Amiel:
    Yes, you can use the sqlplus exit command to return a value but there are couple of limitations. The return value must be a number (enforced by sqlplus), and it must be less than 256, and on some operating systems less than 128.
    John

Maybe you are looking for

  • App store is not working i'm new in iphone 5c...

    app store is not working i'm new in iphone 5c...

  • Bluetooth in MacBook Pro won't pair with anything

    Hello all.  I have two MacBook Pros, each about 6 months old.  They are both running the latest version of Lion.  Neither one will pair with any bluetooth device.  I always get an error message saying "this device does not have the necessary services

  • Firefox window will not scale down past 420px wide

    For some reason on both my work Mac and home Mac I am unable to shrink my browser window past 420 - 425px wide. Both computers are using mavricks. It does not matter the website. I disabled all addons and toolbars. Updated me version. But have had no

  • How to display employee lower hierarchy.

    Hi all,     I am trying to generate a report of manager's lower hierarchy, As to get all the employee who are working under particular manager. But, I want to get his under working employee's under working employee and so on..,    I think we have to

  • Mail notes not showing up in in box

    when I make a note I am suppose to be able to see the note in my inbox anywhere I can see my mail. When I make a note in leopard and then look in my inbox through yahoo or on my iphone it is not there unless I forward it to myself and then it is ther