Proper way to handle people raising dead threads?

Someone just 'bumped' a thread from 2008
Re: Problem providing download link for BLOB data in apex report
What is the polite way to handle this?
thanks
MK

Yep, as jgarry points out, the lifetime of a thread is not fixed, and the mods have to look at each one in context.
As an example, yesterday, someone dragged up an old(ish) thread that already had answers marked as correct and helpful (and I could see they were from experts and they were correct answers).  This new member had added their answer to it, which was just repeating answers that had already been given and added nothing new to the thread.  The nature of the question and the answers given meant that there really was nothing new that I could envisage being added to the discussion, and so I put a standard message about not reviving old threads on there, and locked it.
In other examples, we have people dragging up old threads from years ago, just to ask the OP how they solved their problem.... an OP who quite clearly in a lot of cases is no longer active on the forums and isn't likely to answer them.  If the person dragging up the thread has an issue, they should start their own question, referencing that old thread if they need, but not drag it back out of history.
The other problem is when people drag up an old thread to provide an answer, often saying that the previous answers are not good and that it can be done "this way...", providing some method of resolving the issue that uses new features of the database.... new features that weren't around when the question was originally asked e.g. using LISTAGG function of 11g to solve an issue that was asked around the time of 9i when sys_connect_by_path had to be used.  Posting such answers on old threads help nobody, as there are plenty of recent threads that already have examples of that new functionality being used to answer similar questions.  In these cases, I suspect that the person is just seeing a question that is 'unanswered' and thinking they can get some points for themselves, and perhaps haven't realised just how old the thread is, or that the OP is no longer around.
Of course, there are those discussions which are open-ended, and can be revived after some time if people have new and relevant information to add.  Those sorts of discussions I wouldn't necessarily consider locking.
There are no hard and fast rules for it, the moderators have to use discerned judgement.

Similar Messages

  • Proper way of handling errors in servlets?

    Hi
    What is the best way of handling errors in servlets? There are dozens of IOExceptions and SQLExceptions and I'm not quite sure what to with them. Now I just throw a new ServletException.

    IOException and SQLException is throw by your own code, so I think you should catch the exception and handle it, for example, direct user to a error page and display the reason of the error.

  • I have been filling up my internal memory on my laptop after years of video editing. I now want to export all this footage to an external hard drive. What is the proper way to do this.

    I have been filling up my internal memory on my laptop after years of video editing. I now want to export all this footage to an external hard drive. What is the proper way to do this.

    Are the videos being stored in iMovie or another application? Have you exported/shared the video? If the video is in iMovie what version of iMovie are you using? Give as much info as possible, and you may also want to post the question in the iLife section of this forum since more people with video skills will be reading the iLife/iMovie threads.

  • Floating Dead Threads and old collection

    We run an application inside a "container" (for lack of a better word) that creates threads to try and connect outgoing connections. We have hundreds of these outgoing connections defined and most of them end up getting connected. A few (5-6?) however remain unconnected (there isn't a listener on the other side, the IP is pointing to a loopback address, etc.). This causes the container to create threads every few seconds (per connection) to try and connect these connections.
    We finally turned on memdbg for -Xverbose and we see that all of our old garbage collections are because of "Floating Dead Threads." Below is a sample of the gc logging.
    --- [snip] ---
    [memory ][Wed Dec 24 06:49:01 2008][02747] Changing GC strategy to Generational Concurrent Mark & Sweep
    [memdbg ][Wed Dec 24 06:53:21 2008][02747] Adding 1 final handles from dying thread 11888 'Socket Opener'.
    [memdbg ][Wed Dec 24 06:53:23 2008][02747] Adding 1 final handles from dying thread 11893 'Socket Opener'.
    [memdbg ][Wed Dec 24 06:53:23 2008][02747] Adding 1 final handles from dying thread 11899 'Socket Opener'.
    [memdbg ][Wed Dec 24 06:53:23 2008][02747] GC reason: Other, cause: Floating Dead Threads
    [memdbg ][Wed Dec 24 06:53:23 2008][02747] Stopping of javathreads took 5.722 ms
    [memdbg ][Wed Dec 24 06:53:23 2008][02747] old collection 14 started
    --- [snip] ---
    I have a ticket opened with the vendor to see if there's a way to stop creating all these threads (I imagine the answer is going to be do not define connections that won't get connected). My question here is the following: Is there a way to make JRockit not perform an old collection for these final handles of the dying threads?
    The current JVM parameters are:
    DEBUGGCFLAGS="-Xverbosetimestamp -Xverbose:gc,memory,memdbg -Xverboselog=/home/core/CORE/ttDESCore/bin/gc_output.core2.txt -Xmanagement:ssl=false,authenticate=false"
    GCFLAGS="-Xmx24g -Xns512m -XgcPrio:pausetime -XpauseTarget=400ms -XXcallProfiling -XlargePages -XXlargeObjectLimit:8k -XXnoSystemGC"
    Thx for any help!
    Edited by: user10720003 on Dec 26, 2008 4:54 AM

    Finally a reply! :) Thanks for taking the time to respond. A few points:
    1) Sun's JVM doesn't seem to have this problem (or at least it doesn't trigger an old collection like JRockit). Any ideas as to why?
    2) The finalizers are actually not in our application code (it's vendor code). For whatever reason, any connections (these are TCP/IP connections) that we define as initiate=true, the vendor creates a thread for each connection every 5 seconds to try and make the connection. If it succeeds the thread lives to perform additional work (and hence no finalizer needed). If it does not connect, the thread dies and a finalizer is added.
    3) There were two connections that we had that did not make a successful connection so I had operations disable those connections. As soon as we did that, the "Add 1 handle for dying thread..." message went away in the memdbg log. However, JRockit still insisted on performing an old GC every 1.5 minutes for 'Floating Dead Threads'. Any idea why the old GC would still happen for this reason? Is it because all the finalizers still haven't been cleaned up?
    A question about the finalize() method and finalizers. I looked through our code and we create about 80 objects that have a finalize() method implemented. These objects never go out of scope (so in reality, I suppose the finalize method doesn't need to be there). Does leaving it defined still hurt the gc performance? Or do finalizers only causes problems (i.e. kick off old gcs) once they become garbage?
    Thx,
    Josh
    Edited by: user10720003 on Dec 29, 2008 8:03 AM
    Edited by: user10720003 on Dec 29, 2008 8:15 AM
    Edited by: user10720003 on Dec 29, 2008 8:21 AM

  • What's the proper way to charge my iPod?

    What's the proper way to charge my iPod? I am confused because some people say that the ipod fast charges for up to 80% in 2 Hours and full charges up to 100% for the next 2 Hours, 4 Hours total. Now, i sync my iPod on the PC and charges it up to 2 Hours and the indicator on my iPod and iTunes already displayes the "PLUG" icon on the battery. Here's the part where i'm confused, how am i supposed to charge my iPod up to 100%/4 Hours if it will already be full w/in 2 Hours? Is it normal? :/

    Lithium ion batteries don't require much special handling. Charge them when ever you want. You don't have to wait until they discharge completely. In fact, the one thing you really shouldn't do with a lithium ion battery is drain it completely and let it sit that way.
    Best of luck.

  • Proper way to stop an in-progress Netflix movie?

    Yesterday I started watching a movie on my TV using the Apple TV and Netflix. After a bit I decided to not continue watching, so I pressed the Play/Pause button, then was navigating through some menus (I've only had the ATV a few days) and later tried to stream some contents from iTunes. When I was trying to stream some video from my computer, the menu screen opened up not full-screen but about half-size and off to the side, and there was what looked like the image of a movie theater on the other side (flickering lights, a screen and people's heads). When I tried to stream the video the ATV had a lot of trouble - it stuttered and flickered a lot, this was new it had no issues before. I think I just didn't actually turn the movie off like I thought and the network couldn't handle playing a movie and streaming from my computer at the same time.
    Q: what is the proper way to stop an in-progress Netflix movie? I go to their website and log in and get an option to 'resume' but not discard/cancel. I don't know that the Apple TV will work properly til it isn't trying to play a movie as well as whatever I'm asking at the time.
    Q: if I get the same visual as I describe here (is this normal?) how would I navigate back to the movie? (the remote wouldn't let me do that)

    As per Speedtest.net, 7 mbps
    It looked too much like a movie theater to be a glitch (cohesive image, not just flickers or such). Plus the menu screen resized itself and moved over to the right.
    Netflix viewing has been just wonderful, I've been very happy with the experience thus far. The computer was asleep when I chose the netflix movie off the ATV menu.
    I've found that when I log in to the netflix website, most of the movies I've watched (in full) are listed as being incomplete and give me the option to resume. Not sure what's up with that.
    I just want to make sure the ATV is doing one thing at a time (:

  • What is the proper way to record line numbers in Master/Detail records?

    Guys and Gals,
    Been thinking about this for awhile, but thought it best to ask the people who really know what they are doing.
    What is the proper way to record & show line numbers in a Master / Detail record set?
    For example, take Master/Detail relationship Orders and OrderItems. Orders has a column Document_Number and OrderItems has Document_Number, Line_Number. Line_Number should contain the row number 1,2,3,4 ... etc. for each row in a document.
    Should I ...
    <ol><li>Add a sequence and a trigger in the database? The FusionOrderDemo does this, but then the sequence never "resets" and I've got row numbers that keep incrementing. So one document has rows 4,5,6 and the next document has 7,8,9 when they should both have 1,2,3.</li>
    <li>Programmatically take care of the row numbers? This seems like I'm asking for trouble. Anytime an insert or delete operation gets done, I'll have to iterate through rows and re-assign row numbers.</li>
    <li>Is there a way to assign row numbers in a table iterator (or data collection?) to an entity?</li></ol>
    Any suggestions would be appreciated. It's looking like #2 is my only option, but if anyone knows different I'd love the input.
    Will

    Thank you both guys.
    As John said, I believe I'm looking for a gap-free sequence per master record.
    The line number of the OrderItems table is the second half of the primary key. The first half of the primary key (DocumentNumber) is the foreign key to the Orders table.
    Think of it like line items on an order or invoice. For example, if you were talking to someone on the phone concerning an invoice, you might say, "The pricing for line item #3 is incorrect." In this case, it's good to have a common reference. Or imagine a Microsoft Excel spreadsheet with no row numbers displayed! You'd never get anywhere if you had to explain something over the phone.
    If this is tricky to perform, I take it using a sequence and trigger such as the Fusion Order Demo is the best way to approach the challenge for simplicity's sake?
    Will

  • Proper way to embed PDF into IE6 or 7

    Does anyone know the official proper way to embed these files?
    I have seen it this way
    [code]
    EMBED src="example1.pdf" width="450" height="450" href="example1.pdf"> /EMBED>
    [/code]
    and this way
    [code]
    OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=728
    HEIGHT=728>  EMBED SRC="manual.pdf"
    HEIGHT=728 WIDTH=728> NOEMBED> Your browser does not support embedded PDF
    files. /NOEMBED> /EMBED>/OBJECT>
    [/code]
    Any help is appreciated.
    (I had to take out all the less-than signs becase it was trying to run the actual code.)
    thanks,
    -brett

    To send an html email, you must first build a web page (with the contents you need) then send that.
    Keep in mind that a lot of people have disabled the option to get the html so they will see garbage.
    Here is a great resource for html email design...
    http://www.mailchimp.com/resources/html_email_design.pdf

  • What are the different ways to handle deadlocks?

    Hi,
    May I know what are the ways to solve a deadlock problem?
    Currently, I have the following code to catch the exception:
    catch (XmlException ex)
                   try
                        ex.printStackTrace();
                        txn.abort();
                   } catch (DatabaseException DbEx)
                        System.err.println("txn abort failed.");
                   }and the resulting error is:
    com.sleepycat.dbxml.XmlException: Error: DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock, errcode = DATABASE_ERROR
    Any other more efficient way to handle deadlock?
    Or better ways to prevent deadlock from happening?
    I am using this environment config
    EnvironmentConfig envConf = new EnvironmentConfig();
                   envConf.setAllowCreate(true); // If the environment does not exits,
                   // create it.
                   envConf.setInitializeCache(true); // Turn on the shared memory
                   // region.
                   // envConf.setCacheSize(25 * 1024 * 1024); // 25MB cache
                   envConf.setInitializeLocking(true); // Turn on the locking
                   // subsystem.
                   envConf.setInitializeLogging(true); // Turn on the logging
                   // subsystem.
                   envConf.setTransactional(true); // Turn on the transactional
                   // subsystem.
                   // envConf.setRunRecovery(true); //Turn on run recovery
                   // envConf.setTxnNoSync(true); // Cause BDB XML to not synchronously
                   // force any log data to disk upon transaction commit
                   envConf.setLogInMemory(true); // specify in-memory logging
                   envConf.setLogBufferSize(60 * 1024 * 1024); // set logging size.
                   // envConf.setTxnWriteNoSync(true); //method. This causes logging
                   // data to be synchronously written to the OS's file system buffers
                   // upon transaction commit.
                   // envConf.setThreaded(true); //default by Java that threaded = true
                   // envConf.setMultiversion(true);
                   envConf.setLockDetectMode(LockDetectMode.DEFAULT); // Reject a
                   // random lock
                   // requestThanks in advance for any help!
    :)

    Hi Vyacheslav,
    here is the code:
    package ag;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Environment;
    import com.sleepycat.db.EnvironmentConfig;
    import com.sleepycat.db.LockDetectMode;
    import com.sleepycat.dbxml.XmlContainerConfig;
    import com.sleepycat.dbxml.XmlDocumentConfig;
    import com.sleepycat.dbxml.XmlException;
    import com.sleepycat.dbxml.XmlManager;
    import com.sleepycat.dbxml.XmlContainer;
    import com.sleepycat.dbxml.XmlDocument;
    import com.sleepycat.dbxml.XmlManagerConfig;
    import com.sleepycat.dbxml.XmlTransaction;
    import com.sleepycat.dbxml.XmlUpdateContext;
    import inter.DBInterface;
    import java.io.*;
    import java.util.Properties;
    import cp.CheckPointer;
    public class SaveMessageinDB implements DBInterface
         Environment myEnv;
         XmlManager myManager;
         XmlContainer myContainer;
         XmlTransaction txn;
         XmlContainerConfig cconfig;
         Properties properties;
         // CheckPointer cp;
         int Counter;
         public SaveMessageinDB()
              try
                   properties = new Properties();
                   properties.load(ClassLoader
                             .getSystemResourceAsStream("Aggregator.properties"));
                   setXmlEnvrionment();
                   setXmlManager();
                   setXmlContainer();
                   // cp = new CheckPointer(myEnv);
                   // cp.start();
                   // System.out.println("Checkpointer started....");
                   Counter = 0;
              } catch (Exception ex)
                   ex.printStackTrace();
         public void saveMessage(String docName, String content) throws Exception
              addXMLDocument(docName, content);
         public void setXmlEnvrionment()
              try
                   File envHome = new File(properties.getProperty("DATABASE_LOCATION"));
                   EnvironmentConfig envConf = new EnvironmentConfig();
                   envConf.setAllowCreate(true); // If the environment does not exits,
                   // create it.
                   envConf.setInitializeCache(true); // Turn on the shared memory
                   // region.
                   envConf.setCacheSize(100 * 1024 * 1024); // 100MB cache
                   envConf.setInitializeLocking(true); // Turn on the locking
                   // subsystem.
                   envConf.setInitializeLogging(true); // Turn on the logging
                   // subsystem.
                   envConf.setTransactional(true); // Turn on the transactional
                   // subsystem.
                   // envConf.setRunRecovery(true); // Turn on run recovery
                   // envConf.setTxnNoSync(true); // Cause BDB XML to not synchronously
                   // force any log data to disk upon transaction commit
                   envConf.setLogInMemory(true); // specify in-memory logging
                   envConf.setLogBufferSize(60 * 1024 * 1024); // set logging size.
                   // envConf.setTxnWriteNoSync(true);
                   // This causes logging
                   // data to be synchronously written to the OS's file system buffers
                   // upon transaction commit.
                   envConf.setMultiversion(true); //Turn on snapshot isolation
                   envConf.setLockDetectMode(LockDetectMode.DEFAULT); // Reject a
                   // random lock
                   // request
                   // myEnv = new Environment(envHome, null); //To adopt Environment
                   // already set by others
                   myEnv = new Environment(envHome, envConf);
                   System.out.println("Environment created...");
              } catch (Exception ex)
                   ex.printStackTrace();
         // All BDB XML programs require an XmlManager instance.
         // Create it from the DB Environment, but do not adopt the
         // Environment
         public void setXmlManager()
              try
                   XmlManagerConfig mconfig = new XmlManagerConfig();
                   mconfig.setAllowAutoOpen(true);
                   mconfig.setAdoptEnvironment(true);
                   mconfig.setAllowExternalAccess(true);
                   myManager = new XmlManager(myEnv, mconfig);
                   // myManager = new XmlManager (mconfig);
                   System.out.println("Manager created...");
              } catch (Exception ex)
                   ex.printStackTrace();
         public void setXmlContainer()
              try
                   cconfig = new XmlContainerConfig();
                   cconfig.setNodeContainer(true);
                   cconfig.setIndexNodes(true);
                   cconfig.setTransactional(true); // set transaction need an
                   // cconfig.setAllowValidation(false);
                   // environment
                   // cconfig.setReadUncommitted(true); // This container allow
                   // uncommitted read (able to read dirty data and not set a deadlock
                   // cconfig.setMultiversion(true);
                   myContainer = myManager.openContainer(properties
                             .getProperty("DATABASE_LOCATION")
                             + properties.getProperty("CONTAINER_NAME"), cconfig);
                   System.out.println("Container Opened...");
              } catch (XmlException XmlE)
                   try
                        myContainer = myManager.createContainer(properties
                                  .getProperty("DATABASE_LOCATION")
                                  + properties.getProperty("CONTAINER_NAME"), cconfig);
                        System.out.println("Container Created...");
                   } catch (Exception e)
                        e.printStackTrace();
              } catch (Exception ex)
                   ex.printStackTrace();
         public void addXMLDocument(String docName, String content)
              try
                   txn = myManager.createTransaction(); // no need to create
                   // transaction. auto commit
                   // by the environment
                   XmlDocumentConfig docConfig = new XmlDocumentConfig();
                   docConfig.setGenerateName(true);
                   docConfig.setWellFormedOnly(true);
                   myContainer.putDocument(txn, docName, content, docConfig);
                   // commit the Transaction
                   txn.commit();
                   System.out.println("documents added.....");
                   Counter++;
                   System.out.println("Document no: " + Counter);
                   txn.delete();
              } catch (XmlException ex)
                   try
                        System.out.println("Occuring in addXMLDocument");
                        ex.printStackTrace();
                        txn.abort();
                   } catch (DatabaseException DbEx)
                        System.err.println("txn abort failed.");
         public void cleanup()
              try
                   if (myContainer != null)
                        myContainer.close();
                   if (myManager != null)
                        myManager.close();
                   if (myEnv != null)
                        System.out.println("All cleaned up done..in sm");
                        myEnv.close();
              } catch (Exception e)
                   // ignore exceptions in cleanup
    }Thanks!

  • Proper way to make bulk changes the Owner ID, Path and file share credentials for my existing subscriptions, ExtensionSettings

    We are going through with an upgrade/migration to SSRS 2012 and moving everything to a different domain. We have about 200 active subscriptions running, the reports are being delivered to a file share.  What is the correct way, in bulk, to change
    the OwnerId, the Path and the FileShare Username password credentials for these subscriptions?  I see these values are being stored in Subscriptions > ExtensionSettings.  I see that the file share path and Owner wouldn't be a problem to change,
    but since I see the file share credentials are encrypted I would not be able change them directly in ExtensionSettings.  Anyone know the proper way to change the Owner ID, Path and file share credentials for my existing subscriptions without having to
    change each one of them manually in the report manager?
    Note: Reporting Services Native upgrade from SSRS 2005 to SSRS 2012.
    Thanks in advance.

    Hi Cygnus46,
    Based on my understanding, you want to change the Owner ID, Path and file share credentials for all existing subscriptions.
    In Reporting Services, the subscription information are stored in the Report Server database. In your scenario, you can go to report server database and run the query to list all the subscriptions, then modify the owner and fileshare paths in the subscriptions
    table. For more information, please refer to this article: Tip: Change the Owner of SQL Reporting Services Subscription. If you want to change
    the file share credentials for subscriptions, you can run the query provided by
    wiperzeus from this similar thread:
    Windows File Share Delivery/ SSRS 2008 R2.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Proper way to Connect to Automatically Connect to SSH Server

    What is the proper way to automatically connect to an ssh server via applescript?
    I've tried a variety of different things, none of them seemed to have worked yet... I've searched Google for quite awhile, and was wondering if anyone could please shed some light.
    1. do shell script "ssh user@hostname"
    Error Msg: Pseudo-terminal will not be allocated because stdin in not a terminal
    2. do shell script "ssh -t -t user@hostname"
    Error Msg: None; However it doesn't allow me to put a password in
    3. do shell script "ssh user@hostname > /dev/null &"
    Error Msg: None; Same as above
    4. tell application "Terminal"
    do script "stty -echo"
    do script "ssh user@hostname"
    end tell
    Error Msg: None. Popups a terminal window for user to enter password
    I've been using password prompt box, for the user to enter a password and would like a way to pass it directly to ssh terminal running in the background.
    I've also though about using SSH RSA keypairs the only way to accomplish this (no login regquired) but would prefer to use user/password authentication rather than trusted RSA keypairs.

    I am trying to setup an automated port forward through ssh -L and run it in the background for someone who has no idea what ssh is..
    Then either Terminal.app or private keys are your option.
    Could you shed some light on why RSA private keys are more secure? Because can't they be used by any user on that machine?
    Not unless you set it up wrong.
    SSH keys require two matching pieces of information - a private key (normally stored in the .ssh directory in your home directory) and a matching public key stored in the authorized_keys file in the .ssh directory of the home directory of the account you're logging in as.
    These two pieces of data have to match and since they're in the home directories of the respective accounts, they are only accessible to the specific user and not everyone.
    Whereas password authentication requires it to typed in.
    And if it's wrong (e.g. a hacker guesses incorrectly) he can try again, and again, and again until he either gets bored (not likely since he's probably using an automated script anyway) or he gets lucky and gets in.
    People are notoriously bad at selecting passwords. All too often passwords are weak and can be broken via simple dictionary attacks (try combinations of common dictionary words) or social engineering techniques. Public keys cannot be broken in such way (or, at least, the brute force attack is estimated to take the average hacker several years to break through).
    There are also trojan keylogger applications (more common on Windows, of course) - these have the ability to record every keystroke made on the system, which makes it easy to capture someone's password any time they type it.

  • Best way to handle large amount of text

    hello everyone
    My project involves handling large amount of text.(from
    conferences and
    reports)
    Most of them r in Ms Word. I can turn them into RTF format.
    I dont want to use scrolling. I prefer turning pages(next,
    previous, last,
    contents). which means I need to break them into chunks.
    Currently the process is awkward and slow.
    I know there wud b lots of people working on similar
    projects.
    Could anyone tell me an easy way to handle text. Bring them
    into cast and
    break them.
    any ideas would be appreciated
    thanx
    ahmed

    Hacking up a document with lingo will probably loose the rtf
    formatting
    information.
    Here's a bit of code to find the physical position of a given
    line of on
    screen text (counting returns is not accurate with word
    wrapped lines)
    This stragety uses charPosToLoc to get actual position for
    the text
    member's current width and font size
    maxHeight = 780 -- arbitrary display height limit
    T = member("sourceText").text
    repeat with i = 1 to T.line.count
    endChar = T.line[1..i].char.count
    lineEndlocV = charPosToLoc(member "sourceText",
    endChar).locV
    if lineEndlocV > maxHeight then -- fount "1 too many"
    line
    -- extract identified lines "sourceText"
    -- perhaps repeat parce with remaining part of "sourceText"
    singlePage = T.line[1..i - 1]
    member("sourceText").text = T.line[i..99999] -- put remaining
    text back
    into source text member
    If you want to use one of the roundabout ways to display pdf
    in
    director. There might be some batch pdf production tools that
    can create
    your pages in pretty scalable pdf format.
    I think flashpaper documents can be adapted to director.

  • Best Way to Handle IOException in ServerSocket

    What is the best way to handle IOException thrown by ServerSocket's accept() method?

    Catch it?
    Seriously, it depends what it is. If it's a SocketTimeoutException it's up to you what to do, it's your timeout. If it's some other kind of SocketException or IOException, most probably the socket is dead and all you can do is close it.

  • Is this a proper way to check if a string exist in a db-column?

    I don't know I am posting this in the right forum... anyway... I am trying to check if a string as an email address exist in a database with jsp (by returning true if the string exist). I have managed to do it but I am not sure if this is the best way.
    As you see I have used stmt.executeQuery( "SELECT myDbColumn FROM myTable where myDbColumn=myInputStr" ) and checked by if rs.next() returning false or true. Here is my code in short format:
    boolean strExist = false;
    String myInputStr = request.getParameter("inputStr");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery( "SELECT myDbColumn FROM myTable where myDbColumn=myInputStr" );
       if(rs.next())
          strExist = true;
       else
          strExist = false;
        return strExist;Is this the proper way of checking if a string exist in a db-column???
    Thanks

    I responded to your first thread [here.|http://forums.sun.com/thread.jspa?threadID=5374902]

  • What is the proper way to deal with cascading triggers in AcroForms?

    (this has already been posted in the Scripting forum. Due to the lack of response, I am coming here to the Land of C/C++ Developers)
    What is the proper way to deal with cascading triggers in AcroForms?
    My question refers to the forms in which there is a binary question such as:
    "Are you interested in travel?"
    When the user clicks "Yes", there are further questions whose interactive fields are dot.hidden (or "!"), depending on the answer.
    So far, I can handle the 1-level cases fine, but my doubt is how to implement nested dependencies. For the sake of simplicity, I would prefer to define the cause-effect relationship once ("Every time the 'Interested in Travel' box is checked, the field 'International or Domestic' should be visible") and send some sort of message/trigger downstream.
    I would like the right things to happen (cascading triggers included) when the "Clear Form" menu command is selected.
    Are those desirable features available in JavaScript (the particular JS used by the traditional AcroForms)?
    Maybe I should look into C/C++ programming?
    TIA,
    -Ramon

    I guess my problem is that I have some basic college experience in digital circuit design, and would like the forms to be programmed and behave in the same fashion as digital logic.
    The "Clear Form" menu item, of course, would be equivalent to the  reset button.
    Perhaps it is possible to hook my code onto the "Clear Form" menu item?
    -Ramon

Maybe you are looking for

  • File appears to be corrupted?

    Got the right link to purchase (thx, Dave). Tried uploading 3 unique pdfs.  Everything comes back with the same error. _______ failed to export to Microsoft Word.  The file appears to be corrupted. What does this mean?  The files open as .pdfs perfec

  • Does Mountain Lion support TRIM for 3rd party SSD's? (I don't mean TRIM enabler)

    I was planning on buying an SSD and doing clean install of Mountain Lion. I went to Mac Rumors and few other forums but they all gave simple answer like 'yes', not even verfying wether they're using Apple SSD's or 3rd party ones. I'm certain that it

  • Including Formfeed in rdf file

    Hello friends, Our client was using Print que on Windows Based PC and moved to Hardware que. Issue we are facing now is in windows que Automatic form feed is triggered whereas in Hardware que it does not eject. client said we need to include form fee

  • (Biztalk 2004) SOAP error

    We have a fairly simple dll that uses a web reference to talk to Biztalk and retrieve data. Works fine in the production system, but the test system, currently testing an updated dll, is throwing this: 'Internal SOAP Processing failure --> The messag

  • Need help--Classic won't start

    I still have a couple of OLD apps that require System 9. When I attempt to open either of them I get the "Classic is starting" progress bar, but it never quite finishes. I can start Classic okay with extensions off but then I can't use the printer, a