DISPLAY SPATIAL DATA USING JDBC ON A JAVA FRAME

I am trying to set up some spatial data and need help in getting some sample
code for displaying the data on a Java Frame using JDBC.
The shapes I am setting up are simple polygons, lines, circles. I was going
through the samples in the demo directory under $ORACLE_HOME/md/demo/examples, but could not find any JDBC
I would really appreciate if you can point me towards some sample code and any other spatial resources.
Madhukar

Here you go. It uses JDBC to fetch geoms, convert them into Java JGeometry objects, which then create Java2D shapes (these are functions of the public sdoapi.jar library). It then uses some class in the sdovis.jar library (the rendering engine of MapViewer) to setup the necessary viewport transform. If you know how to setup the viewport transform, then you dont even need sdovis. sdovis.jar is found in an deployed MapViewer's WEB-INF/lib directory. Or you can extract it from the mapviewer.ear's web.war file.
import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
import java.awt.image.*;
import java.sql.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import oracle.jdbc.OracleDriver;
import oracle.sdovis.*;
import oracle.sdovis.style.*;
import oracle.sdovis.util.*;
import oracle.spatial.geometry.JGeometry;
import oracle.sql.STRUCT;
* A very simple program that shows stuff from db in a JFrame
* <p>
public class tilsvgui2 extends JFrame
  final static int mapWidth  = 640;
  final static int mapHeight = 480;
  static JSDOGeometry geom = null;
  public tilsvgui2()
    setSize(mapWidth+40, mapHeight+40);
                setVisible(true);
    this.addWindowListener(new java.awt.event.WindowAdapter() {
      public void windowClosing(WindowEvent e) { System.exit(0); }
        public void paint(Graphics g)
                super.paint(g);
    int w = this.getWidth(), h = this.getHeight();
    Insets inset = this.getInsets();
    double[] mbr = geom.getMBR();
    //from sdovis; it will setup the viewport transform
    XFViewPort xfp = new XFViewPort();
    xfp.setDeviceView(inset.left, inset.top, w-inset.left-inset.right-1, h-inset.top-inset.bottom-1);
    xfp.setDataView(mbr[0], mbr[1], mbr[2], mbr[3]);
    AffineTransform af = xfp.getAffineTransform();    //get the viewport transform
    Shape shp = geom.createShape(af);    //create a proper shape that fits the viewport
    Graphics2D g2 = (Graphics2D) g;
    g2.setColor(Color.red);
    g2.drawRect(inset.left, inset.top, w-inset.left-inset.right-1, h-inset.top-inset.bottom-1);
    //draw the shape itself
    g2.setColor(Color.blue);
    g2.draw(shp);
  public static void getStuff() throws Exception
    System.out.println("Loading geometry...");
    Connection conn = getConnection("mapsrus.us.oracle.com", "1521", "orcl", "scott", "tiger");
    Statement  stmt = conn.createStatement();
    ResultSet  rset = stmt.executeQuery("select geom, totpop from counties where county='Merrimack' and state_abrv='NH'");
    while(rset.next())
      STRUCT st = (STRUCT) rset.getObject(1);
      geom = JSDOGeometry.loadFromDB(st);
      int population = rset.getInt(2);
      break; //displaying only the first geometry
    rset.close();
    stmt.close();
    conn.close();
  private static Connection getConnection(String host,
                                          String port,
                                          String sid,
                                          String username,
                                          String password)
    throws SQLException
    String thinConn = "jdbc:oracle:thin:@"+host+":"+port+":"+sid;
    Driver d = new OracleDriver();
    Connection conn = DriverManager.getConnection(thinConn,username,password);
    conn.setAutoCommit(false);
    return conn;
  public static void main(String[] args)
    try{
      getStuff();
    }catch(Exception e)
      e.printStackTrace(System.err);
    new tilsvgui2();
}

Similar Messages

  • Updating spatial data USING JAVA

    I want to update spatial data using java.Does anyone know how can i do this;;;
    for example i have created the following table.
    CREATE TABLE customers (
    customer_id NUMBER,
    last_name VARCHAR2(30),
    first_name VARCHAR2(30),
    street_address VARCHAR2(40),
    city VARCHAR2(30),
    state_province_code VARCHAR2(2),
    postal_code VARCHAR2(9),
    cust_geo_location SDO_GEOMETRY);
    HOW CAN I UPDATE THE FIELD:cust_geo_location,
    WHICH TYPE IS: SDO_GEOMETRY;;;;;
    I wrote a programm in java, which updates the FIELD CUSTOMER_ID.
    ( rset.absolute(3);
    rset.updateInt("CUSTOMER_ID",2222 );
    CUSTOMER_ID = rset.getInt("CUSTOMER_ID");
    rset.next();
    rset.updateRow(); ).
    ---------- THE FULL JAVA PROGRAMM
    import java.sql.*;
    import java.io.*;
    import java.util.Date;
    public class update{
    public static void main (String args [])
    throws SQLException, IOException
    System.out.println ("Loading Oracle driver");
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    catch (ClassNotFoundException e)
    System.out.println ("Could not load the driver");
    e.printStackTrace ();
    System.out.println ("Connecting to the local database");
    try{
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:XE", "sp", "spgianna");
    Statement stmt = conn.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    // String LAST_NAME,FIRST_NAME ;
    int CUSTOMER_ID ;
    ResultSet rset = stmt.executeQuery("SELECT CUSTOMER_ID FROM CUSTOMERS");
    /* while ( rset.next() ) {
    CUSTOMER_ID = rset.getInt("CUSTOMER_ID");
    LAST_NAME = rset.getString("LAST_NAME");
    FIRST_NAME = rset.getString("FIRST_NAME");
    System.out.println( CUSTOMER_ID+""+LAST_NAME + " " +FIRST_NAME);
    rset.absolute(3);
    rset.updateInt("CUSTOMER_ID",2222 );
    CUSTOMER_ID = rset.getInt("CUSTOMER_ID");
    rset.next();
    rset.updateRow();
    System.out.println(CUSTOMER_ID);
    catch(SQLException sqle) {
    System.out.println("SQL Exception encountered: " );
    } catch(Exception e) {
    System.out.println("Unexpected Exception: " );
    HOW CAN I UPDATE THE FIELD:cust_geo_location,
    WHICH TYPE IS: SDO_GEOMETRY;;;;;;;;;;;;;;

    Hi Guys,
    Dont forget to close your stmt and connection after execution
    Use this as a template if you like:
    try{
         /**make connection**/
         ServerConnection sc = new ServerConnection();
    Statement stmt = sc.conn.createStatement();
    /**create statement & execute**/
    String insertstmt = "insert into .......";
    //execute
    stmt.execute(insertstmt);
    /**Close and catch exception**/
    stmt.close();
    sc.conn.close();
    catch(SQLException sqlE){
         sqlE.printStackTrace();
         System.out.println(sqlE.getMessage());
    As for the string "insertstmt" itself, this is where your standard SQL statement goes
    So get it working using a standard SQL editor first, then copy and paste it in to this string variable. The string should be a series of concatenated strings and variables to recreate the SQL atatement in Java. For example
    the SQL statement:
    insert into Mytable(SESSIONID, TIME1) values ('300', '4.45pm' );
    assuming the values are stored in variables called 'sessionnumber' and 'time'
    will become
    String stmt =
    "insert into Mytable(SESSIONID, TIME1) values ('"+sessionnumber+"', '"+time+"')";
    Hope this helps.
    E
    Ps. Do a system.out.println after you create the stmt. The statement printed out to the console should be a valid SQL statement that you can use in your editor. (minus the ;)
    ...keep working on the string until you can do this.

  • Spatial data through JDBC driver

    Hi,
    I have a spatial table which has polygon, linestring and points stored in the geometry column. Is there any API available to know whether the stored data is ploygon/point/linestring. I am using thin JDBC driver to connect to Oracle. Also are there APIs available to get the coordiniates, offset etc from polygon. Please let me know if there are any tutorials/examples available for working with spatial data and JDBC driver.
    Smitha

    Hi,
    You could use Oracle Spatial Java Class Library, available at: http://www.oracle.com/technology/software/products/spatial/index.html
    It is quite easy to use it.
    Regards,
    Andrejus

  • How to display today date using formcalc

    Hi all,
    how to display today date using formcalc, eg April 20, 2009?
    Thanskks

    Num2Date(Date(), "DD/MMM/YYYY", "de_GB")

  • Unload dynamic data using JDBC into a file

    Hi,
    I have to download the result of a dynamic SELECT query into a file.
    The query will be provided at runtime. So I am unsure of the number of columns and the data types of the columns.
    Also I am unable to use io on the returned resultset object.
    So basically i have to persist the data from the resultset object into a file.
    Any hints
    Thanks in advance

    Also I am unable to use io on the returned resultset object.What do you mean by this?
    See the JDBC tutorial: http://java.sun.com/docs/books/tutorial/jdbc/index.html
    and the file I/O tutorial: http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • How to Limit the Displaying of Data Using PointTheme over the map

    Hi,
    I have the following requirement, which i'm trying to implement with <dvt:map & <dvt:PointTheme components.
    *The requirement is ... I have a base map, which is being accessed via <dvt:map component. And i'm using point theme to display certain data over the map. Let us consider, over the US map ... i'm displaying 24 points(for each polygonone point .... taking the centroid of each polygon) when the map zoom level is 0.
    At this zoom level '0', user can see all 24 points. But when the user start clicking on '+' to Zoom In(Now the zoom level is '1'), at this zoom level user can see only 18 points. User can see the remaining 6 points by dragging the base map to either sides.
    This mean, irrespctive of the zoom level the point theme is rendering the all the points over the map. Instead, i would like to display the data specific to the polygons that are visible to the user. At zoom level '0', if the user is able to see all the polygons, then display all 24 points. And at zoom level '1'...if the user is able to see 18 polygons and then display only those 18 points. And if the user tries to see the other polygons data ... user may drag the base map either sides. In that case, the point theme should render data specific to the polygons that the user is able to see.
    Similarly, if the user is at zoom level '2'...at this zoom level user is able to see 13 polygons over the IE. so the point theme should render only 13 points specific to each polygon. If the user tries to do dragging the base map either sides...then display the points, specific to the polygons that the user is able to see.
    Similarly for other zoom levels ... Please let me know if you require any other information.
    Thanks & Regards,
    Kiran Konjeti

    You'll need to do a little software workaround on the values you read from your counter.   But first a little tutorial to explain *why*.
    The E-series boards use 24-bit counters.  When LabVIEW requests an integer count value, the count is returned in a 32-bit unsigned integer datatype, where the 24 lowest bits represent the value in the board's count register.  The upper 8 bits are *always* 0's.
    The count register can increment from 0 to 16 million plus (2^24 - 1), then it must "roll over" back to 0 again just like an odometer.  Similarly, when it decrements past 0, it next goes to the max value of 2^24 -1 as you observed.
    So we need a little software workaround that'll convert (2^24 -1) to (-1) and (2^24 -2) to (-2), etc.  The way to do it is to first detect whether the highest bit is a 1.  One way is to compare whether the count value is >= 2^23, making sure to use integers to do the comparison.  Whenever the value is >= 2^23, subtract 2^24 from it to create your new count value which will then decrement 3,2,1,0,-1,-2,-3, etc. as desired.
    Here's a link to a similar explanation.  Couple more notes too.  First, if this is a continuously rotating encoder, you may still encounter a discontinuity when the revised count value crosses the +/- 2^23 boundary.   Second, direct connection of a quadrature encoder to an E-series board isn't recommended because of unrepeatability when measureing direction changes.
    -Kevin P.

  • Using JDBC in multithreaded Java application?

    Hello everyone
    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    The Java dababase client application will run on Linux and on Windows (64-bit).
    If its supported to use JDBC in multi-threaded way - will it scale up well or am I better off using mutiple single-threaded Java applications instead?
    Are there any rules to follow when using JDBC from multiple-concurrent threads (such as: do not share any JDBC objects among threads, etc).
    Thank you
    Yuri Budilov

    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    Of course.
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    You should use a separate connection pool for each database.
    See the JDBC Dev Guide and use the latest Oracle driver and the latest connection methods shown in that doc
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/toc.htm

  • Reading CLOB data using jdbc thin driver

    Hi,
    When I try reading data for a CLOB column using thin jdbc driver, I get the following error message
    "Exception: ORA-06550: line 1, column 22:
    PLS-00302: component 'GETCHUNKSIZE' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored".
    This error message is displayed when the call is made to get the character stream from the Clob object.
    Do I need to any server side setup before I can access CLOB data from the database?
    thanks.
    Puru Balakrishnan

    I updated to the latest jdbc drivers, 816classes12b.zip, and the problem went away.
    null

  • Displaying diff dates using PL/SQL expression for 'display only' item ?

    Hi ,
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    I tried it doing under 'Source ' of item using PL/SQL expression and PL/SQL function body. Not working
    Can someone help ?
    Thanks & Regards
    Umer

    Nice1 wrote:
    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
    :P2_FROM_DATE := to_char(sysdate-1);
    end if;
    end;I tried this under " PL/SQL function body " in "Source " tab of the item P2_FROM_DATE
    When I run this , nothing is displayed corresponding to the item P2_FROM_DATEExactly as expected. This code will only set a value for <tt>P2_FROM_DATE</tt> when run on Mondays in territories where the first day of the week is Sunday, and when run on Tuesdays where Monday is the first day of of the week:
    SQL> var P2_FROM_DATE varchar2(30)
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> select sysdate from dual
    SYSDATE
    Mon 25-JUN-2012
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    Sun 24-JUN-2012
    SQL> alter session set nls_territory='UNITED KINGDOM';
    Session altered.
    SQL> exec :p2_from_date := null
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    SQL>Hence the questions about language above.
    >
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    >
    The coming Monday is 25-JUN-2012.
    Aren't these rules equivalent to "Monday this week, where Monday is the first day of the week"? In which case the PL/SQL Expression you require is:
    trunc(sysdate, 'iw')For example:
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level <= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level &lt;= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.Also note that using the item source properties will only set the <tt>P2_FROM_DATE</tt> in the rendered page, not in session state.

  • Displaying Master-Data using ADF DI

    Hi
    I'm trying to display a master data(as a form) and a detail data(as a table) in excel sheet using ADF DI.
    The process I followed is as below.
    1. This is on HR schema. I created a departmentsVO, and dragged Departments from the data control to the top half of a jspx page as a form, and Employees datacontrol that is wihtin the Departments datacontrol into the lower half of the page.
    2. I ran the page, and the master-detail is perfect i.e., when i click navigate the departments form, corresponding employees of that department are coming in a table in the lower half.
    But the problem is when i used this pagedef file to use in an excel file.
    1. Alll form elements are available in the excel as individual components. Table is available as a tree component.
    2. I binded all the form elements in the excel, also bound prev and next buttons, all at the top section of the excel file.
    3. Binded the table component in the bottom of the excel file.
    3. Defined table download action and Worksheet downsync action as worksheet properties. Workbook prop are also defined properly.
    When I ran the page,
    Form elements and table is prefilled, navigation of form is also working fine. But when I navigate through the form, the corresponding employees are not changing, they are all employees of the first department id.
    My requirement is to change the employee table as the department form is being navigated.
    Can someone pls give some suggestions. What i think I may be missing is that the table is not getting refreshed as I navigate the form(But I already associated the table download action to the worksheet properties).
    Thanks in advance,
    Ravi.

    Found a solution. This might be helpful to others...so m posting it :-)
    While binding the 'Next' button, I added 'Download' component action of the table to the actionset of the button(which already has UpSycn, Next, DownSync).
    So, on click on the button, it actually downloads the latest data to the table. And master - details were shown just perfectly :-)

  • Displaying japanese chars using servlet (posted in Java programming too)

    I am trying to display the japanese characters inputed by the user using
    html form and I am using servlet...
    After reading the input and when i try to display i get ????
    how can i solve this.
    It was originally posted in Java Programming forum. but i think the question suits here....heres the link for original post
    http://forum.java.sun.com/thread.jspa?threadID=670419&tstart=0
    sorry for posts at two different forums

    After reading the input and when i try to displayDisplay on what?
    Usually, if request.getCharacterEncoding() doesn't return viable result, then you should call
    request.setCharacterEncoding() with a proper value. If user send Shift_JIS string as form
    input, then the argument value should be also "Shift_JIS". When in doubt, use "UTF-8".
    Then, you call response.setContentType("text/html; charset="Shift_JIS"), etc.

  • How to read value within XML Tag data using IO Stream in Java

    We have xml data into a Stream and we need to extract values again into a Stream from the particular XML tag <Data> inside the Stream. PFB the sample XML which will be contained inside the stream and can someone help us to hint the java code for this. We require it using the IO API only and we need to look <DATA> for the begining of the stream and </DATA> as the end of the stream.
    Please note that input is stream and output require also is a stream.
    <?xml version = "1.0" encoding="UTF-8" ?>
    <GenericDataEnvelope>
    <DataFormat>PlainText</DataFormat>
    <Name>1111</Name>
    <Security>NA</Security>
    <senderName>abc</senderName>
    <Protocol>HTTP</Protocol>
    <Data>
    SElQRlhDVElQRlBCTktERUZGMDYxMDAyMDc0MzUyMDAwMTA2MTAwMjA3NDM1MlRDSEFTVVMzMzAw
    MDAwMDAwMDAwMTc4LDEyMDAwMTc4MTIKezQ6TVQxMDM6CjoyMDowMDYwMDQ5MjQxMDA2NzcwCjoy
    M0I6Q1JFRAo6MjNFOlNEVkEKOjMyQTowNjEwMDVDQUQwLDAxCjozM0I6RVVSMCwwMQo6MzY6MSwz
    TNzcwQU5WLVJFTlRFIE9DVCAwNgowLDAxLzEsMTcxOQo6NzFBOlNIQQo6NzI6L1JFQy84NDM2MTU3
    MTA2Ci19ClRJUEYK
    </Data>
    <DataType>INVOICE</DataType>
    </GenericDataEnvelope>

    The example you've showed is valid and it is also text.
    Think seriously about this ... for example, do you have a rule that says </DATA> can't appear in the binary data?
    But in any case I can't see the problem. If you want to use IO classes directly, just read lines until you see <DATA>, then read data until it ends with </DATA>, and remove that.
    But I would certainly use SAX myself until proven otherwise that it won't work..

  • Not able to fetch updated data using jdbc and oracle 10g

    Whenever i m updating the data and fetching the same record after updating i m not able to get the fresh/new updated data , old record is fetched every time, but when i checked in database the record gets updated successfully , even if i fire the query two times after 10 seconds using Thread.sleep even then problem persist.
    Please help me out!!!!!!!!
    Implementation has been stucked up!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :(

    Well its okWhat is OK? Your stuff working now?
    i m doing the same thing Apparently not.
    please go thru the below code fragment:
    code for Update :::
    DataAccessBean1 partsHistoryDataAccessBean = new
    DataAccessBean1(context);
    partsHistoryDataAccessBean.setData(data);
    partsHistoryDataAccessBean.update();
    After Updating i m forwading it to the other servletForwarding what? Why do you need another servlet? Just do the query, put the new data into the response object, and return.
    According to your assumption i should get the updated
    data on the other screen but Nope, you don't understand what I'm saying.
    %

  • Help with displaying spatial data

    Hi, i am new to spatial and have a table (temp_properties) that has numerous columns, one of which is called shape and is of mdsys.sdo_geometry type.
    I also have a table in another database that also has a shape column the same, we cannot seem to use the shape column across the database link as we keep getting 'remote operations not permitted on object tables or user-defined type columns'
    is this a known limitation or is it just the way i am trying to do it?
    We would also like to be able to retrieve the coordinates in sql from this shape column, but keep getting errors.

    Hi,
    before just one question : have you an column wich is called
    se_anno_cad_data in your table with the shape field.
    Spatial Operator :
    For example if you have polygone in your shape field
    you can obtain the centroid of the polygone by this
    query:
    select c.code_topo, c.centroid.sdo_point.x as X, c.centroid.sdo_point.y as Y
    from (select e.code_topo, sdo_geom.sdo_centroid(sdo_geom.sdo_convexhull(e.geom, 0.05), 0.05) as CENTROID
    from expl_local e) c
    with expl_local : my table with the sdo_geometry type field and geom the name of the sdo_geometry field
    sdo_geom.sdo_centroid and sdo_geom.sdo_convexhull are
    spatial operator from Oracle Spatial Option.
    nice to read you
    Pascal

  • Code to read xml file  and display that data using sax parser

    Hai
    My problem I have to read a xml file and display the contents of the file on console using sax parser.

    here you go

Maybe you are looking for

  • Lost Internect Connection and Poor Performance

    System Setup Motorola SB5100 Cable Modem->WRT610->WRT310 I have tried many configurations to get a consistent performant network with very little success. Problems: 1) My DMA2100 Wireless Media Center cannot get consistent performance on either eithe

  • How to rebuild index on a table in a faster way

    Hi All, We have using Oracle 9.2.0.3 On weekly basis we are loading around 20-30 million of data into a table using sqlloader. Before loading the data into the table, we are dropping all the indexes adn rebuilding the same once done. There are 6 inde

  • Is it possible to set up a split audio track....

    ...while recording and create 2 channels with their own effects settings. I have a Tascam US-122MKII audio interface. If one guitar is plugged into LEFT channel and one into RIGHT channel, can they be split up while recording?  I don't quite know if

  • Process order deletion not possible through PRARCHP1but can do in COR2

    Hi Guru's, I want to set Process order status to DLFL through program PRARCHP1 but getting message as "there are no Log messages" however I am able to set deletion flag through COR2. It appears strange to me. I am try to set to DLFL status for TECO o

  • Create photo books using Shutterfly

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f561c711e12e28a900cc- 7ff1.html