Date returning false

I am trying to return the date when the file was last modified, but it seems like it is coming bak false.  am i using the date function wrong?
http://pastebin.com/eihhJS8R

Date format is irrelevant if you use a date/timestamp column in your database, and a java.sql.Date object in your JDBC code.
So use java.text.SimpleDateFormat to convert your String to a date.
String sDate = "01/5/2008";
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
java.util.Date date = sdf.parse(sDate);
java.sql.Date sqlDate = new java.sql.Date(date.getTime());
Can now compare sqlDate with the date from the database.
Cheers,
evnafets

Similar Messages

  • How do i change the path of data ajax false from returning to homepage, when using a PHP mail form in jquery mobile?

    I have a put a php mail form in the quote page of my mobile site. However when i send the form it returns to the route page rather than the quote page, i have used the data ajax false action as i dont want to send via ajax. i have left the thanks page blank as i want it to remain on the same page showing sent or declined message.  Can someone help please? 
    <?php
    // OPTIONS - PLEASE CONFIGURE THESE BEFORE USE!
    $yourEmail = "[email protected]"; // the email address you wish to receive these mails through
    $yourWebsite = "www.firstcalltransport.co.uk"; // the name of your website
    $thanksPage = ''; // URL to 'thanks for sending mail' page; leave empty to keep message on the same page
    $maxPoints = 4; // max points a person can hit before it refuses to submit - recommend 4
    $requiredFields = "name,email,collection,delivery,comments"; // names of the fields you'd like to be required as a minimum, separate each field with a comma
    // DO NOT EDIT BELOW HERE
    $error_msg = array();
    $result = null;
    $requiredFields = explode(",", $requiredFields);
    function clean($data) {
      $data = trim(stripslashes(strip_tags($data)));
      return $data;
    function isBot() {
      $bots = array("Indy", "Blaiz", "Java", "libwww-perl", "Python", "OutfoxBot", "User-Agent", "PycURL", "AlphaServer", "T8Abot", "Syntryx", "WinHttp", "WebBandit", "nicebot", "Teoma", "alexa", "froogle", "inktomi", "looksmart", "URL_Spider_SQL", "Firefly", "NationalDirectory", "Ask Jeeves", "TECNOSEEK", "InfoSeek", "WebFindBot", "girafabot", "crawler", "www.galaxy.com", "Googlebot", "Scooter", "Slurp", "appie", "FAST", "WebBug", "Spade", "ZyBorg", "rabaz");
      foreach ($bots as $bot)
      if (stripos($_SERVER['HTTP_USER_AGENT'], $bot) !== false)
      return true;
      if (empty($_SERVER['HTTP_USER_AGENT']) || $_SERVER['HTTP_USER_AGENT'] == " ")
      return true;
      return false;
    if ($_SERVER['REQUEST_METHOD'] == "POST") {
      if (isBot() !== false)
      $error_msg[] = "No bots please! UA reported as: ".$_SERVER['HTTP_USER_AGENT'];
      // lets check a few things - not enough to trigger an error on their own, but worth assigning a spam score..
      // score quickly adds up therefore allowing genuine users with 'accidental' score through but cutting out real spam
      $points = (int)0;
      foreach ($badwords as $word)
      if (
      strpos(strtolower($_POST['comments']), $word) !== false ||
      strpos(strtolower($_POST['name']), $word) !== false
      $points += 2;
      if (strpos($_POST['comments'], "http://") !== false || strpos($_POST['comments'], "www.") !== false)
      $points += 2;
      if (isset($_POST['nojs']))
      $points += 1;
      if (preg_match("/(<.*>)/i", $_POST['comments']))
      $points += 2;
      if (strlen($_POST['name']) < 3)
      $points += 1;
      if (strlen($_POST['comments']) < 15 || strlen($_POST['comments'] > 1500))
      $points += 2;
      if (preg_match("/[bcdfghjklmnpqrstvwxyz]{7,}/i", $_POST['comments']))
      $points += 1;
      // end score assignments
      foreach($requiredFields as $field) {
      trim($_POST[$field]);
      if (!isset($_POST[$field]) || empty($_POST[$field]) && array_pop($error_msg) != "Please fill in all the required fields and submit again.\r\n")
      $error_msg[] = "Please fill in all the required fields and submit again.";
      if (!empty($_POST['name']) && !preg_match("/^[a-zA-Z-'\s]*$/", stripslashes($_POST['name'])))
      $error_msg[] = "The name field must not contain special characters.\r\n";
      if (!empty($_POST['email']) && !preg_match('/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+ ' . '(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i', strtolower($_POST['email'])))
      $error_msg[] = "That is not a valid e-mail address.\r\n";
      if (!empty($_POST['url']) && !preg_match('/^(http|https):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\ /?/i', $_POST['url']))
      $error_msg[] = "Invalid website url.\r\n";
      if ($error_msg == NULL && $points <= $maxPoints) {
      $subject = "Automatic Form Email";
      $message = "You received this e-mail message through your website: \n\n";
      foreach ($_POST as $key => $val) {
      if (is_array($val)) {
      foreach ($val as $subval) {
      $message .= ucwords($key) . ": " . clean($subval) . "\r\n";
      } else {
      $message .= ucwords($key) . ": " . clean($val) . "\r\n";
      $message .= "\r\n";
      $message .= 'IP: '.$_SERVER['REMOTE_ADDR']."\r\n";
      $message .= 'Browser: '.$_SERVER['HTTP_USER_AGENT']."\r\n";
      $message .= 'Points: '.$points;
      if (strstr($_SERVER['SERVER_SOFTWARE'], "Win")) {
      $headers   = "From: $yourEmail\r\n";
      } else {
      $headers   = "From: $yourWebsite <$yourEmail>\r\n";
      $headers  .= "Reply-To: {$_POST['email']}\r\n";
      if (mail($yourEmail,$subject,$message,$headers)) {
      if (!empty($thanksPage)) {
      header("Location: $thanksPage");
      exit;
      } else {
      $result = 'Your mail was successfully sent.';
      $disable = true;
      } else {
      $error_msg[] = 'Your mail could not be sent this time. ['.$points.']';
      } else {
      if (empty($error_msg))
      $error_msg[] = 'Your mail looks too much like spam, and could not be sent this time. ['.$points.']';
    function get_data($var) {
      if (isset($_POST[$var]))
      echo htmlspecialchars($_POST[$var]);
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="CSS/stylesheetnew.css" rel="stylesheet" type="text/css">
    <link href="../jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css">
    <script src="../jquery-mobile/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="../jquery-mobile/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
    <style type="text/css">
      p.error, p.success {
      font-weight: bold;
      padding: 10px;
      border: 1px solid;
      p.error {
      background: #ffc0c0;
      color: #F00;
      p.success {
      background: #b3ff69;
      color: #4fa000;
    </style>
    </head>
    <body>
    <div data-role="page" id="home">
      <div data-role="header" data-position="fixed">
       <h1>FIRSTCALL TRANSPORT</h1>
    </div>
        <div data-role="navbar" data-position="fixed">
                                    <ul>
                                      <li><a href="#about">About</a></li>
                                      <li><a href="#services">Services</a></li>
                                      <li><a href="#contact">Contact</a></li>
                                      <li><a href="#quote">Quote</a></li>
                                    </ul>
      </div>
      <div data-role="content"> </div>
         <div data-role="footer" data-position="fixed" > </div>
    </div>
    </div>
    <div data-role="page" id="quote">
      <div data-role="header" data-position="fixed">
        <h1>GET A QUOTE</h1>
      </div>
      <div data-role="content">
       <?php
    if (!empty($error_msg)) {
      echo '<p class="error">ERROR: '. implode("<br />", $error_msg) . "</p>";
    if ($result != NULL) {
      echo '<p class="success">'. $result . "</p>";
    ?>
    <form action="<?php echo basename(__FILE__); ?>" method="post" data-ajax="false"  >
    <noscript>
      <p><input type="hidden" name="nojs" id="nojs" /></p>
    </noscript>
    <p>
      <label for="name">Name: *</label>
      <input type="text" name="name" id="name" value="<?php get_data("name"); ?>" /><br />
      <label for="email">E-mail: *</label>
      <input type="text" name="email" id="email" value="<?php get_data("email"); ?>" /><br />
            <label for="company">Company:</label>
      <input type="text" name="company" id="company" value="<?php get_data("company"); ?>" /><br />
      <label for="collection">Collection: *</label>
      <input type="text" name="collection" id="collection" value="<?php get_data("collection"); ?>" /><br />
        <label for="delivery">Delivery: *</label>
      <input type="text" name="delivery" id="delivery" value="<?php get_data("delivery"); ?>" /><br />
      <label for="comments">Message: *</label>
      <textarea name="comments" id="comments" rows="5" cols="20"><?php get_data("comments"); ?></textarea><br />
      <input type="submit" name="submit" id="submit" value="Send" <?php if (isset($disable) && $disable === true) echo ' disabled="disabled"'; ?> />
    </p>
    </form>  </div>
         <div data-role="footer" >  </div>
      </div>
      </div>           
    </body>
    </html>

    My wife has left me for four weeks, favouring to be with our son who lives 4,000 km away. I now have to cook for myself and the steaks taste horrible. What am I doing wrong?
    If you do not know what I have (not) done to make the steak taste horrible, my question is as hard to answer as your question above.
    Please give us more info like giving us the code that sends the page to the homepage rather than to the previous page.

  • BufferedReader.ready() keeps returning false using JSSE 1.0.2/jdk 1.2.2

    I'm running into difficulties reading a response data stream from a server via HTTPS. The SSL sets up fine (I can see both the client side and server side certificate chains, and the two sides can handshake and agree on a cipher (SSL_RSA_WITH_RC4_128_SHA in this case)). I get no errors getting the output or input streams from the socket, and the GET request seems to work (no errors reported by the PrintWriter), but in.ready() returns false, and the while loop exits immediately. But I know there is data available (I can paste the printed url into Netscape and get data back). Since this should not be all that complex once the SSL session is established, I'm probably missing something silly, Can someone tell me what it is please?
    Thanks
    Doug
    // code excerpt
    // just finished printing the cipher suite, cert chains, etc
    try{
    out = new PrintWriter(
    new BufferedWriter(
    new outputStreamWriter(socket.getOutputStream() )));
    } catch(Exception e) {
    System.out.println("Error getting input and output streams from socket ");
    System.out.println(e.getMessage());
    e.printStackTrace();
    throw(e);
    try{   // time to submit the request and get the data
    // build the URL to get
    // tried constructing it here and nailing it up at declaration time - no difference
    // path = "https://" + dlp.host + ":" + Integer.toString(dlp.port) + "/" +
    // dlp.basePath + "?StartDate=" + longDateFmtURL.format(dlp.startDate) +
    // "&EndDate=" + longDateFmtURL.format(dlp.endDate);
    System.out.println("Sending request for URL" );
    System.out.println(path);
    out.println("GET " + path );
    out.println();
    out.flush();
    * Make sure there were no errors
    if (out.checkError()){
    System.out.println("Error sending request to server");
    throw(new IOException("Error sending request to server")
    try{
         in = new BufferedReader(
              new InputStreamReader(
              socket.getInputStream() ));
    } catch(Exception e) {
    System.out.println("Error getting input stream from socket ");
    System.out.println(e.getMessage());
    e.printStackTrace();
    //System.exit(3);
    throw(e);
    if (!in.ready()) {   //  in.ready() keeps returning false
    System.out.println("Error - socket input stream not ready for reading");
    while ((inputLine = in.readLine()) != null) {
    // loop over and process lines if it was ever not null
    }

    Never mind.
    The problem seems to be related to the development/debugging enviroment (Oracle JDeveloper 3.2.3), When I run things outside of that eviroment using the "plain" runtime, it works as expected (back to System.out.println() for debugging). That said, I usually find it to be a nice development/debugging enviroment for Java.

  • REP-1825: Before Report Trigger returned FALSE

    Is there any work around for this error...??
    I am running a report in a batch mode. I have an old version 3.0.5.14 for unix.
    There is logic on the Before Report Trigger and an email is sent. A blank email if nothing needs to be reported or with data if there is anything to be reported.
    I updated the report (a different program unit), recompiled it and now I am getting this error and no email.
    any ideas?
    thanks
    simona

    Hi Simona,
    Does this happen when you are not running in batch mode? It sounds like you will need to step through the report, possibly with some srw.message calls to output some of the data values to find out why the Before Report Trigger is now returning false. Without seeing the logic, it's difficult to say.
    Toby

  • Record Collection Count = 1, but Exists is return false?

    Hi All,
    OracleDB: 10g
    I have a collection record I am using to store information in a sproc. Before I do any work with it I check if any data exists in the record (l_tab_cost_rec.EXISTS(1)).
    What is strange is l_tab_cost_rec.EXISTS(1) is returning false, but l_tab_cost_rec.Count is returning a count = 1?
    Why is Exists returning false, but the count is returning 1?
    Record Definition:
    TYPE type_cost_rec IS RECORD
    (item_id NUMBER
    ,item_cost NUMBER
    ,org_id NUMBER
    TYPE tab_cost_rec IS TABLE OF type_cost_rec INDEX BY BINARY_INTEGER;
    l_tab_cost_rec tab_cost_rec;

    Becaues exists(1) checks if an element exists that has index 1:
    SQL> declare
      2  type t is table of number index by binary_integer;
      3  v t;
      4  begin
      5   v(0):=0;
      6   dbms_output.put_line('count='||v.count);
      7   if v.exists(1) then
      8      dbms_output.put_line('1 exists!');
      9   else
    10      dbms_output.put_line('1 doesn''t exist!');
    11   end if;
    12   if v.exists(0) then
    13      dbms_output.put_line('0 exists!');
    14   else
    15      dbms_output.put_line('0 doesn''t exist!');
    16   end if;
    17  end;
    18  /
    count=1
    1 doesn't exist!
    0 exists!
    PL/SQL procedure successfully completed.Max
    http://oracleitalia.wordpress.com

  • Cstmt.execute() returning false

    I am trying to insert values in db table by using
    CallableStatement
    but
    cstmt.execute() always returning false
    here is code
           try
                 //Connection conn = (Connection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection(); 
                   Connection conn = am.getOADBTransaction().getJdbcConnection();
                   CallableStatement cstmt = conn.prepareCall("{call apps.xx_GL_Vacancies.insert_transaction(?)}");
                   String project_id;
                   if(vo.getCurrentRow().getAttribute("VacancyId")!=null)
                     project_id=vo.getCurrentRow().getAttribute("VacancyId").toString();
                   //project_id=Integer.parseInt(project_id);
                    cstmt.setString(1,project_id);
                        pageContext.putDialogMessage(new OAException("hello"+project_id) );
                      boolean temp=cstmt.execute();
                         pageContext.putDialogMessage(new OAException("hello"+project_id+"temp"+temp) );
                       cstmt.close();
                     catch(Exception e)
                         String message = "Error in Data Saving: " + e;
                         throw new OAException(message, OAException.ERROR);
                        }

    HA,
    Replace the code
    public void processFormRequest(OAPageContext pageContext,OAWebBean webBean) {
                super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getRootApplicationModule();
            OAViewObject vo = (OAViewObject)am.findViewObject("IrcEditVacancyVO");
                 if(pageContext.getParameter("FndSubmit")!=null)
                          try
                                  System.out.println("Inside Button Action");
                                //Connection conn = (Connection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection(); 
                                  Connection conn = am.getOADBTransaction().getJdbcConnection();
                                  CallableStatement cstmt = conn.prepareCall("{call apps.xx_GL_Vacancies.insert_transaction(:1)}");
                                  String project_id;
                                  if(vo.getCurrentRow().getAttribute("VacancyId")!=null)
                                         System.out.println("Inside VO Action");
                                    project_id=vo.getCurrentRow().getAttribute("VacancyId").toString();
                                  //project_id=Integer.parseInt(project_id);
                                    cstmt.setString(1, project_id);
                                    pageContext.putDialogMessage(new OAException("hello"+project_id) );
                                    boolean temp=cstmt.execute();
                                          pageContext.putDialogMessage(new OAException("temp"));
                                    cstmt.close();
                                     catch(Exception e)
                                      String message = "Error in Data Saving: " + e;
                                      throw new OAException(message, OAException.ERROR);
               Note - Execute the Page and get the SOP's value. This SOP's will be helpful to trace whether the flow is moving inside all the blocks.
    Regards,
    Gyan

  • Applet selection return false?

    Hi,
    In the spec, there may be cases that the applet select() method return false. I am suspecting which cases cause the applet return false?
    In my mind, before selection, the applet is in idle state so that it should be ready to be selected. Hence invoking its select() method should always return true in all cases.
    regards,
    Hoang Long

    For some applicative reasons, an applet may refuse to be selected:
    - it could be a "server" applet, whose only purpose is to provide a shareable object to other applets
    - the applet may have been "invalidated" by the card issuer (expiration date, theft/loss, etc...)
    It's up to the application provider to define the cases where an applet refuses selection.

  • Businessobject.isValid always returns false

    Hi,
    I have created an object against to BOXXXXX business object by using below method having all the input values to formal arguments.
    CreateAction(actType As String,sfakna1 As String,Date1 As Date,Date2 As Date,description As String) As BusinessObject
    Dim boActivity As BusinessObject
    boAction = BusinessRootObject.BusinessFactory.CreateBusinessObject("BOXXXXX", "")
    We have some mandatory attributes and some normal attributes in BOXXXXX. We are setting values for all the mandatory attributes and setting 5 values to normal attributes. by using this code.
    With boActivity
                 ''''Normal attributes
                .SetAttribute("A", False)
                .SetAttribute("C", sfakna1)      
                .SetAttribute("D", description)
                .SetAttribute("E", Date1)    
                .SetAttribute("F", Date2)
                ''Mandatory attributes.
                .SetAttribute("F", "1")      
                .SetAttribute("G", "ABC")         
                .SetAttribute("H", "ACT")        
                .SetAttribute("B", actType)    
            End With
    But during verifying the boAction which always returns false in below condition.
           If boAction.IsValid() Then
           End if
    Please provide me the way to make that boAction returns true.
    Thanks in advance.
    Thanks,
    Naidu

    Thanks Shankar for your prompt response.
    Verified that we have set same lengh in our input parameters as in businessobject and verifed that each attribute(normal+mandatory) returns true. Verified with individually by using the below code.
    boAction.IsValidAttribute("A")  ''Normal
    boAction.IsValidAttribute("F")   ''Mandatory
    We have included all the mandatory fields in our function with same data types and same properties.
    Please suggest  me the inputs and share me the code if any to findout the causing attribute which makes boAction.IsValid() condition false.
    Thanks in advance
    Regards,
    Naidu

  • The ResultSet.next() returns false....

    Hai,
    I am working on jdbc. The connection credentials all correct, and its getting connected to the sybase without any problems. But I am not able to perform any 'select' or "update" statements...There are no exception or any errors...But the ResultSet.next() returns false and executeUpdate returns 0 . .
    I think you can help me.....Thanks...

    Yes the query is sameAs already pointed out, there are ONLY two possibilities.
    1. The query is not the same
    2. The database is not the same.
    You are making assumptions about what is going on and then drawing conclusions.
    You need to understand that you assumptions are wrong. So it doesn't matter what conclusion you draw.
    In terms of why the query isn't the same there could be any number of reasons but usually it is because you are passing in data and that data isn't what you think (assume) it is. It can also be that you are constructing the SQL and that construction is different. It could be that the environment that you use to test as settings which impact SQL.

  • DirFile.setLastModified(someLong) returns false

    JDK 1.2.2 Win ME
    File dir = new File("c:/abc"); // doesn't matter whether c:/abc, c:\abc, c:\\abc, etc.
    dir.mkdir(); // works okay
    dir.setLastModified(someLong); // returns false & timestamp of new directory is set to the present
    What must I do to set the timestamp of a directory to an arbitrary value?

    I could be wrong, but I don't think you can set the modification date of a directory - period. The date it shows is derived based on the last time an actual FILE in the directory was modified (I think). So my guess is this isn't isolated to WinME. Try updating an actual file's modification date.

  • No data return from BI7 via MDX drvier in Crystal report

    I have:
    Windows 2000 SP4
    SAP BI7 patch level 16
    SAP GUI 710 patch level 7 (BW3.5 addon patch 3, BI 710 patch 5)
    Crystal report XI R2 SP4
    SAP_Integration_Kit_XI R2-SP4
    and the BW tranports already imported in BI7.
    I can create a report over a Bex query in Crystal report using BW Query driver and retirved datafrom BI7
    Then I tried to create a report over the same Bex query in Crystal report using MDX driver, I got no data return from BI7.
    So I used the RSRTRACE transaction to trace the log when refreshing data in Crystal report, and then go to debug the call 10- GET_CELL_DATA and I have data from the MDX excution in BI7.
    So I think Crystal report can pass the MDX query to BI7 and BI7 can excute it without any problem, the issue is no data return to Crystal report.
    Could anyone help please?
    Thanks.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP]
    "TraceDir"="C :\\Crystal Report\\"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP\BW MDX Query Driver]
    "Trace"="Yes"
    "ExcludeSummaries"="Yes"
    Above are the right code in Reg and I have tried "C:\" as well, but still no trace file created.
    I was create the CR MDX report via SAP tool bar (and I create 2 reports base on the same Bex query with MDX and BW query just to compare, that one via BW query return data from BW)
    Thanks a lot.
    Allen
    Edited by: Wen Allen on Aug 25, 2008 5:32 PM

  • Bug Report: ResultSet.isLast() returns false when queries return zero rows

    When calling the method isLast() on a resultset that contains zero (0) rows, false is returned. If a resultset contains no rows, isLast() should return true because returning false would indicate that there are more rows to be retrieved.
    Try the following Java source:
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    public class Test2 {
    public static void main (String [] args) throws Exception {
    Connection conn = null;
    String jdbcURL = "jdbc:oracle:thin:@" +
    "(DESCRIPTION=(ADDRESS=(HOST=<host computer>)"+
    "(PROTOCOL=tcp)(PORT=<DB port number>))"+
    "(CONNECT_DATA=(SID=<Oracle DB instance>)))";
    String userId = "userid";
    String password = "password";
    try{
    // Load the Oracle JDBC Driver and register it.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // *** The following statement creates a database connection object
    // using the DriverManager.getConnection method. The first parameter is
    // the database URL which is constructed based on the connection parameters
    // specified in ConnectionParams.java.
    // The URL syntax is as follows:
    // "jdbc:oracle:<driver>:@<db connection string>"
    // <driver>, can be 'thin' or 'oci8'
    // <db connect string>, is a Net8 name-value, denoting the TNSNAMES entry
    conn = DriverManager.getConnection(jdbcURL, userId, password);
    } catch(SQLException ex){ //Trap SQL errors
    // catch error
    //conn = new OracleDriver().defaultConnection(); // Connect to Oracle 8i (8.1.7), use Oracle thin client.
    PreparedStatement ps = conn.prepareStatement("select 'a' from dual where ? = ?", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); // Use any query that will return zero rows.
    ps.setInt(1, 1); // Set the params so that the query returns 0 rows.
    ps.setInt(2, 2);
    ResultSet rs = ps.executeQuery();
    System.out.println("1. Last here? " + rs.isLast());
    while (rs.next()) {
    // do whatever
    System.out.println("2. Last here? " + rs.isLast());
    ps.close();
    rs.close();
    EXPECTED RESULT -
    1. Last here? true
    2. Last here? true
    ACTUAL RESULT -
    1. Last here? false
    2. Last here? false
    This happens to me on Oracle 9.2.0.1.0.

    387561,
    For your information, I discovered this problem from
    running a query that did access an actual DB table.
    Try it and let me know.I did say I was only guessing, and yes, I did try it (after I posted my reply, and before I read yours). And I did check the query plan for the queries I tried -- to verify that they were actually doing some database "gets".
    In any case, the usual way that I determine whether a "ResultSet" is empty is when the very first invocation of method "next()" returns 'false'. Is that not sufficient for you?
    Good Luck,
    Avi.

  • In a javascript function invoked from an onsubmit handler, if the function returns false, the form is still submitted. If I find an error in a form, how do I cancel the submit?

    HTML form has: action="/TTFFRP/addlicense.rex" method="get" onsubmit="validate_data();"
    validate_data is defined in tags:
    function validate_data()
    alert('in validate routine');
    if (document.getElementById('custname').value == '')
    alert('Customer name must not be blank; put in name of organization licensing File RePackager');
    return false;
    }

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    [http://forums.mozillazine.org/viewforum.php?f=25]
    You'll need to register and login to be able to post in that forum.

  • BW Error: No Data returned by XI

    Hello
    I am working on an BW(proxy) XI (synchronous)XMII scenario. The scenario is working fine in the DEV environment. I have transported objects to QA when BW is running the query it is givng an error which states no data returned by XI. Is the error due to improper transports on XI side ?
    I tested the scenario for XI to xMII connection and it is working fine. At BW end it is giving error.
    Thanks. I truly appreciate your help in this case.
    Kiran
    Edited by: KIRAN SAKHARDANDE on Apr 1, 2008 12:03 AM

    I performed the sldcheck and I think the error is caused since BW is unable to detect business system BWT
    BW Error 1:
    GET_BUSINESS_SYSTEM_ERROR: An error occured when determining the business sytem NO_BUSINESS_SYSTEM
    BW Error 2:
    No data returned by XI
    I will keep you update with the resolution.
    Thanks.
    Kiran

  • How do I find a word in all my document, return false if it's not in there.

    Hi,
    I struggle with something that should be easy, and didn't find any answer on this forum.
    I have a list of word that I want to search in a 300 pages catalogue in InDesign. I'd like to know how can i:
    1) Look for the word
    2) Return true if it's in the document
    3) Return false if it's not
    FYI, the words i'm searching are product code, so if they're not in the catalogue, the product isn't in the catalogue.
    Thanks a lot,
    Olivier

    Hi Oliver,
    Use this,
    var doc = app.documents;
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.findWhat = "Text";
    var foundtext = app.activeDocument.stories.everyItem().paragraphs.everyItem().findText();
    for (var i=0;i<foundtext.length;i++){
            if (foundtext[i].length != 0){
                alert("True");
            else{
                alert("False")
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;

Maybe you are looking for

  • Illustrator CS2 Download

    I am posting here in hopes that somone will have the ability to assist me.  A kind individual within my organization has thoughtfully taken our only copy of Illustrator CS2 for their very own.  I know, my fault for not paying enough attention.  Think

  • How would you use Aperture 3 Labels & Flags in your workflow?

    Now that A3 has the ability to use Labels & Flags, I'm trying to incorporate their use into my workflow but am struggling to find the most effective way. I've used the star rating for selections & refining the selections. In A2 I used keywords on ima

  • Printing from iPhoto om HP Officejet

    I'm not sure this would happen only on an HP Officejet but it does. My g85 model officejet worked really well with iPhoto5, now when I go to print a picture it doesn't properly load the paper and always tells me I have no paper. I have used this in o

  • Jpeg and bmp image

    Hiiii, I m trying to display a jpeg image on a component but i am not able to do so...............i am able to do with agif one ,,,,,,,is thr any diff approach for jpeg? can any body give me some codelines reg this....

  • MeetingPlace 7.0.3 manual port disconnect?

    Hi all: If you have a particular audio port being used on your media server and you know that the caller is using it maliciously, is there a way to disconnect that port manually at the application server CLI or audio server blade CLI? Thanks in advan