Results 1 to 6 of 6

Thread: JDBCTemplate

  1. #1

    Angry JDBCTemplate

    We are using JDBCTemplate (Spring) with MySQL as database and AES Encryption.
    Our client is using special ASCII characters. That encrypts and decrypts correctly as a query. However when we display it on Web the ASCII characters shows question marks ? for ASCII (espacially for extended ASCII) character.
    ================================================== =====
    SOURCE
    ================================================== =====
    public SqlRowSet getReportFollowUpForProcessing(Integer reportId) {
    DataFetchQueries dataFetch = new DataFetchQueries();
    String sql = (String) dataFetch.GET_FOLLOWUP_REPORT_FOR_PROCESSING(repor tId);
    return jdbcTemplate.queryForRowSet(sql);
    }
    ================================================== =====
    we open it by using
    rowset.getObject("COLUMN-NAME");

    PLEASE HELP ME TO ELEMIATE THE PROBLEM

    Thanking you in advance

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    And what happens if you use plain old JDBC?
    Last edited by karldmoore; Aug 30th, 2007 at 06:11 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3

    Default

    Quote Originally Posted by karldmoore View Post
    And what happens if you use plain old JDBC?
    It works fine

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Interesting, I'm not sure what the JdbcTemplate would do to break this. Is it possible to see the code you are running? A TestCase would be nice as well. If you wrap this in [code] [ /code] tags, it will make it sooooo much easier to read!
    Last edited by karldmoore; Aug 30th, 2007 at 06:11 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  5. #5

    Default

    Code:
    public SqlRowSet getReportFollowUpForProcessing(Integer reportId) {
       DataFetchQueries dataFetch = new DataFetchQueries();
       String sql = (String) dataFetch.GET_FOLLOWUP_REPORT_FOR_PROCESSING(repor tId);
       return jdbcTemplate.queryForRowSet(sql);
    }
    ================================================== =====
    we open it by using
    Code:
    rowset.getObject("COLUMN-NAME");

  6. #6
    Join Date
    Feb 2005
    Location
    Boston, MA
    Posts
    1,142

    Default

    Can you post the equivalent JDBC code?
    Bill

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •