Generating a table

hello all
I have this app that gets connected to a database, and then when i pass a parameter, it should return a result set. now what i have to do is present that table in a jsp page. How can i generate that table in a dinamic way?

don't pass the result set to the jsp. load it into a data structure or object of some kind and close it in the scope of the method in which it was created.
add that data structure or object at request or session scope as an attribute and have the jsp display it using jstl. if it's a collection, use <c:forEach> to iterate over the collection and create a <tr> for each row.
maybe something like this:
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jsps/JstlSql.jsp.html
%

Similar Messages

  • VLD-1119: Unable to generate Multi-table Insert statement for some or all t

    Hi All -
    I have a map in OWB 10.2.0.4 which is ending with following error: -
    VLD-1119: Unable to generate Multi-table Insert statement for some or all targets.*
    Multi-table insert statement cannot be generated for some or all of the targets due to upstream graphs of those targets are not identical on "active operators" such as "join".*
    The map is created with following logic in mind. Let me know if you need more info. Any directions are highly appreciated and many thanks for your inputs in advance: -
    I have two source tables say T1 and T2. There are full outer joined in a joiner and output of this joined is passed to an expression to evaluate values of columns based on
    business logic i.e. If T1 is available than take T1.C1 else take T2.C1 so on.
    A flag is also evaluated in the expression because these intermediate results needs to be joined to third source table say T3 with different condition.
    Based on value taken a flag is being set in the expression which is used in a splitter to get results in three intermediate tables based on flag value evaluated earlier.
    These three intermediate tables are all truncate insert and these are unioned to fill a final target table.
    Visually it is something like this: -
    T1 -- T3 -- JOINER1
    | -->Join1 (FULL OUTER) --> Expression -->SPLITTER -- JOINER2 UNION --> Target Table
    | JOINER3
    T2 --
    Please suggest.

    I verified that their is a limitation with the splitter operator which will not let you generate a multi split having more than 999 columns in all.
    I had to use two separate splitters to achieve what I was trying to do.
    So the situation is now: -
    Siource -> Split -> Split 1 -> Insert into table -> Union1---------Final tableA
    Siource -> Split -> Split 2 -> Insert into table -> Union1

  • How can I generate a table of contents from bookmarks

    How can I generate a Table of Contents from bookmarks in Adobe Acrobat XI?

    Something to try.
    Rick Bostein  provided a "Create Bookmark Report" Acrobat Action.
    With this report as a PDF you could insert it at the start of your PDF document to serve as a "TOC". 
    Go here:
    https://acrobatusers.com/actions-exchange 
    Scroll down some.
    Be well...

  • I cannot generate a table of contents in INDesign3

    Hi There:
    I'm fairly new to Indesign CS3 and I need to generate a table of contents. I created a book file which consists of 20 chapters. I also created a Frontmatter file, which is also part of the book file. According to the help menu, I should open up the FM file and choose, LAYOUT>TABLE OF CONTENTS to begin. However this option under layout doesn't exist. Is there a plug-in I am missing. HELP! I need to generate this TOC at some point today.
    thanks much to whomever can help.
    -Lisa

    As far as I know, it should be there always unless the menus themselves have been turned off by someone. Might as well check though.
    1) GO to Edit > Menus (opens Menu Customization)
    2) Select Application Menus from the Category field
    3) Expand "Layout" under Application Menu Command and make sure the Visibility icon is active for the TOC items (at bottom)
    edit: Of course you could also go to Window > Workspace and select reset menus

  • Can you generate a Table of Contents using bookmarks?

    Hi,
    I am a newbie to InDesign and am probably missing the obvious but...
    I am creating a document in InDesign and want to generate a Table of Contents. I have just created a de facto ToC with Bookmarks for the exported PDF version of the file, but there seems to be no way to take this information and use it to creat an actual ToC in the ID file itself. My bookmark list contains the information for all the chapter and sub headings along with the page locations, all the data I need to create my ToC, but I can't find a way to do this. I don't understand why I have to use paragraph styles to set this up? It is overly complicated for my needs, added to that it is duplicating my work. If I have to set up paragraph styles for the print version and bookmarks for the PDF version, why can't one set of information be used to generate both version of a Toc?

    You don't consider 100 pages a long doc? Ouch. If it needs a TOC, I'd say that's pretty definitive for it being long.
    I know users who set up styles for even one-page projects. I figure it's worth setting up a style for any formatting that will repeat more than twice, regardless of document length. It's pretty fast using the format/select/define style method  of formatting text the way you want, then selecting it and choosing "New Style" from the appropriate panel.

  • Populating values in dynamically generated internal table

    Hi,
    We can generate internal tables dynamically and also populate them with values from database.But is there any way to populate the dynamically generated internal table(has 2-3 selected fields) with values from another internal table(has all fields required by the program) being populated within the same program?
    Thanks & Regards,
    Savitha

    Hi
    Dynamic internal table is internal table that we create on the fly with flexible column numbers.
    For sample code, please look at this code tutorial. Hopefully it can help you
    Check this link:
    http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
    Reward points if useful
    Regards
    Anji

  • Strange name of generated XML table

    Hi,
    I have registered schema and I got XMLType table with name like:
    "mainElem514_TAB".
    I know that I can use annotation to change the name.
    Is it possible to generate the table(without annotation) with name mainElem514_TAB ?
    I mean without "".
    regards,
    Cezary

    Annotation is the preferred way of doing this, particularly if you want to work with the XML repository feature. You can create tables manually. Look at the XDB Documentation for more info...
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10790/xdb05sto.htm#sthref510

  • Error when generating create table script

    Hi,
    I am trying to generate create table script from an existing table. But I get the following error when doing so,
    ORA-20001: Rem Unable to generate DDL for ORA-06502: PL/SQL: numeric or value error ORA-31605: the following was returned from LpxXSLResetAllVars in routine kuxslResetParams: LPX-1: NULL pointer ORA-22921: length of input buffer is smaller than amount requested .
    Any suggestions on what could be wrong?
    Thanks.
    -B

    this is my bad, i should have updated this thread when we originally troubleshot this issue...
    that error you're getting on htmldb.oracle.com when you try to generate ddl for tables and such is a manifestation of a database bug (#3372908) that's recently been filed. checking the worklog for that bug suggests that those guys are still working out the issue. unfortunately, there's no current work-around on htmldb.oracle.com at the moment. if you want to generate ddl for your objects, you'd have to query the appropriate data dictionary views to get the info you need.
    ...i'll update the htmldb.oracle.com interface in a bit to prevent other users from hitting this issue. so you know, this is only an issue on db versions 9.2.0.3 and 9.2.0.4 running on some platforms and only (as far as i know) those using the AL32UTF8 characterset ...which does include our hosted site for now.
    hope this helps,
    raj

  • Transform generated proxy tables into 'z' tables

    Hello to everyone,
    My doubt is really persistent and it's an important one...
    Imagine we have an wsdl and we create a enterprise service proxy client. The R3 will generate 'Z' tables for the structure which the webservice needs for the request and the response.
    How can I transform those generated proxy tables into normal 'Z' tables from the R3 Dictionary database?
    Is it possible? Or do I have to create similar tables to the proxy tables?
    The problem is that the response structure is really huge, and the work needed to create all the tables necessary to acomodate and all the mapping between the generated proxy tables and the ones that I'll have to create is HUGE!!!... Can I transform in any way those proxy tables?
    Any help will be appreciated....

    Hello Gonçalo
    The generated proxy tables are indeed structures (and table types). In your case you have plenty of these structures that have to be "converted" into normal Z-tables.
    One approach would be to use an
    eCATT for this task. The steps could be as following:(1) Create a new z-table
    (2) Include the corresponding proxy structure
    (2.a) Transfer fields from include and remove .INCLUDE reference
    (3) Remove obsolete fields
    (4) Add additional fields
    (5) Generate the z-table
    Regards
       Uwe

  • Out of Disk Space Error while Generating Pivot Table

    Hi!
    I encountered the following error while Generating Pivot Table -
    View pivotTableView!1 returned the following message:
    Odbc driver returned an error (SQLExtendedFetch).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC
    Location: saw.odbc.statement.fetch,
    saw.cube.engine.execute.dataTraversal, saw.cube.engine.execute,
    saw.cube.cache.processCube, saw.views.pivottable.displayer,
    saw.subsystem.portal, saw.httpserver.request,
    saw.rpc.server.responder, saw.rpc.server,
    saw.rpc.server.socketServer, saw.threadPool, saw.threadPool,
    saw.threads
    File: ./project/webodbcaccess/odbcresultsetimpl.cpp, Line: 182
    State: S1000. Code: 10058. [NQODBC] [SQL_STATE: S1000] [nQSError:
    10058] A general error has occurred. Out of disk space. (S1000)

    user11204020, what's your question?? :)
    You're getting an out of disk space error ... which means you've run out of disk space, no?
    Since it's saw related I'm guessing you'll need to make more space available to your OracleBIdata/tmp directory

  • Generate "create table" stmt based on oracle8.1.7 dictionary

    I plan to create a DEMO database as a copy of our production database. The storage allocation of the tables should in the DEMO database be much smaller than in the production one. I assume, I have to write an sql-script to export the table definitions from the oracle dictionary (oracle 8.1.7) generating CREATE TABLE statements, which are written to a flat file.
    Do you maybe already have a working solution?

    you can create a schema, then a dblink to the db you want to copy, set up your default sizings to the size you want in your DEMO database and then
    select
    'create table '||table_name||' as select * from '||table_name||'@dblink where 1=0;'
    from user_tables
    save and run the output.
    That's the way I do it sometimes. Hope that's handy enough.

  • After generating a table into xml how can i save the result in a XML table?

    Hello everyone,
    I’ve used this function to generate a table into XML schema :
    example :
    SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
    xmlforest(name as "Name", population as "Population")) from state;
    result:
    <Statexmlns:gml="http://www.opengis.net/gml">
    <Name>Wilkopolska</Name>
    <Population>35000</Population>
    </State>
    Now I need to insert the result into a XML table, because i need to save the result to use it latter ,I hope that someone can help and if there's other solution to do this it would be great.
    Thanks a ot and best regards,
    Lama.

    Just insert into a table....
    insert into t
    SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
    xmlforest(name as "Name", population as "Population")) from state; and a complete example:
    SQL> create table t (test xmltype)
      2  /
    Table created.
    SQL>
    SQL> create table state
      2  (name varchar2(10)
      3  ,population number
      4  )
      5  /
    Table created.
    SQL>
    SQL> insert into state values ('WI', 35000)
      2  /
    1 row created.
    SQL>
    SQL> SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
      2  xmlforest(name as "Name", population as "Population")) from state;
    XMLELEMENT("STATE",XMLATTRIBUTES('HTTP://WWW.OPENGIS.NET/GML'AS"XMLNS:GML"),XMLFOREST(NAMEAS"NAME",P
    <State xmlns:gml="http://www.opengis.net/gml"><Name>WI</Name><Population>35000</
    SQL>
    SQL>
    SQL> insert into t
      2  SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
      3  xmlforest(name as "Name", population as "Population")) from state;
    1 row created.
    SQL> select *
      2    from t
      3  /
    TEST
    <State xmlns:gml="http://www.opengis.net/gml"><Name>WI</Name><Population>35000</

  • How can i generate html tables

    i have a ArrayList of string arrays with following type of data
    u1 d1 1 t
    u1 d1 2 f
    u1 d1 3 t
    u1 d2 4 f
    u1 d2 5 t
    u2 d1 6 f
    u2 d1 7 t
    u2 d2 8 f
    what is the most efficeint logic to generate html table for this data with all reepeated values are merged (using <td rowspan>

    for
    u1 d1 1 t
    u1 d2 1 f
    only first column need to be merged
    Is the data capable of being mapped to a tree?
    ie:u1 d1 1 t
    u1 d1 2 fis OK, butu1 d1 1 t
    u1 d2 1 fEither can't happen, or the third
    column isn't merged.
    Pete

  • Local Object....as seen while generating a table..

    Hello ,
    What is the function of "LOCAL OBJECT" , as displayed on the pop up screen , while generating  a table.?
    I will appreciate , if some one can explain.
    Thanks , and kind regards,
    Archer

    Hi Archer Naz
    Once you generate save the condition table you will have the option save button and local object  to save the condition table
    Local object - If you click on local object you can't transfer from one server to another server .and there is no need to give any package also .
    Save -   If you click on save button system will ask for description to create a new transport request . Because of  this a the condition table which you are saving can be transported from one server to another server . But we need to assign a package before clicking on save icon
    Regards
    Srinath

  • Generate create table script?

    If I have a table called "customer" in my oracle database and I want to create the same table on another server. There are any way to generate Create table script to create this table?
    Thank you for your help.
    Regards,
    Kevin

    The documentation for the GET_DDL method in the DBMS_METADATA package is here
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_metad2.htm#1024701
    Basically, you'll want something like
    DECLARE
      l_clob CLOB;
    BEGIN
      l_clob := dbms_metadata.get_ddl( 'TABLE', '<<table name>>');
      <<Do something with the DDL>>
    END;Justin

Maybe you are looking for

  • OS 10.4.6 won't restart or shut down

    I installed 10.4.6 on my powerbook g4 that was running 10.3.9 without a problem. Big mistake. I repaired permissions, then custom installed 10.4.6 skipping the foreign language fonts and printer drivers I don't need. Installation was successful. Set

  • 9.2.0.8 singleInstance migration to 11.2.0.2 RAC 2xnode

    Hi, Good Day! We have A scenario of database upgrade + migration. Detail are provided below: Current plateform - 1xnode: HPUX 11.11 Database 9.2.0.8 SingleInstance Migrated Plateform - 2xnode 'new nodes': HPUX 11.31 Database 11.2.0.2 RAC In totality

  • Local weather in Weather app different than the same city

    In the Weather app on iOS 7, the temperature for the city of Charlotte, NC (where I am) is one number, but the temperature for the local city, also Charlotte, NC, is different. I don't understand how this happens. It's the same city. Does anyone know

  • How to extract closed captions from DVD

    Hi all, been doing research for the past week and testing out different free programs on mac & PC, but I can't seem to figure out a way to extract a CC track from a DVD a client gave me.  Basically I'm re-authoring a DVD with a new menu in Encore.  I

  • VGA P20 - 552 (vertical lines)

    Hi i need big help i am having problem in my VGA when i start it shows vertical lines then when it boots to OS the screen becomes black i had tried to use system restore it did work after a reboot then i rebooted the problem started again it since th