Still Can't Figure Out Returning to Page with URL Parameters

Hi,
I am trying to figuring out how after submitting a form to
return to a previous webpage with URL parameters in it.
Any ideas?
Thanks,
Craig

I am using dreamweaver and coldfusion. I have been searching
everywhere for the answer so if you can shed some light on this
that would be great.
Thanks,
Craig

Similar Messages

  • I still can't figure out how to manage & sync my medias.

    Hi everyone
    I have to admit, I've owned an Iphone for 2 years now and I still can't figure out how to manage my pictures. I'm confused, I don't know how to get them out, import them...I have 3 albums in my phone taking a huge amount of space with duplicates in : camera roll, photo library , last importation ...!
    same goes for Adress book.
    Can anybody help and explain to me how that works ? Explain it to me as if I'm a 4 year old !
    Here are some specific questions :
    where are the pictures saved on the macbook ?
    how to manage and delete them in batch ?
    how to keep one folder in the phone ?
    How does this Syncing business work?
    Thanks for your help
    D

    Is this article of any help http://support.apple.com/kb/HT4236 ?

  • I have an iPod touch that is synced with my library.  I just got a new Nano and I want to sync that with the same library but I can't figure out to do it with iTunes 11

    I have an iPod touch that is synced with my library.  I just got a new Nano and I want to sync that with the same library but I can't figure out to do it with iTunes 11

    I watched the new itunes tutorial, and if you double click on the  blank part of the bar that says music, videos, apps, etc, a button will show with your ipod's name.

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • Please Help!  I have been writing using - Pages - app for years.  I still can not figure out how to make single spaces between paragraphs.  Pages automatically double spaces between paragraphs.

    I have been writing on - Pages- app for several years.  Pages automatically uses double space between paragraphs. I can not figure out how to make single space between paragraphs. Tried everything.  Please help!  

    Pages User Guide >  http://manuals.info.apple.com/en_US/Pages_UserGuide.pdf
    Open the user guide then press Command + F on your keyboard.
    Type line spacing in the search field top right corner of that window.

  • I can't figure out why this page splits in live preview... but not in the browser?

    I've finally got my site up and it all runs great... except I can't figure out why this one page behaves like it's too wide.
    http://www.johnnez.com/mainbooks.html
    It comes apart in the Live Preview.... but not in the browser preview.
    Thanks for any tips...
    jn

    john nez wrote:
    HTML is a total incrutable mystery to me... a mystery inside a mystery inside a mystery!
    Sounds to me like you've almost cracked it!
    You have one error that could cause problems and that's the stray </blockquote> tag.  Just delete it.
    The alt="" text will show as an error on the validator but that's easy to fix and worth doing.
    Here's an easy article on that: http://www.456bereastreet.com/archive/200412/the_alt_and_title_attributes/
    In one of your CSS files (JonzheaderindexCSS.css) you have this:
    body {
    margin-top: 20px;
    padding: 0;
    color: #666;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: normal;
    background-attachment: fixed;
    background-color: #E1B852;
    background-image: url(../images/orange%20plaid.jpg);
    background-repeat: repeat;
    html { overflow-y: scroll; }
    It should be like this:
    html {
    overflow-y: scroll;
    body {
    margin-top: 20px;
    padding: 0;
    color: #666;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: normal;
    background-attachment: fixed;
    background-color: #E1B852;
    background-image: url(../images/orange%20plaid.jpg);
    background-repeat: repeat;
    It looks like you have that rule repeated further down the page like this:
    html { overflow-y: scroll; }
    There's an extra curly brace there (}) anyway, so it is badly formed but the whole rule and extra curly brace can go.
    You can fix those errors but I have a sneaky suspicion that it isn't gong to solve the issue you describe.
    Fix those issues anyway and post back.  Maybe if you can show a screen shot of what you are seeing in DW it might help?
    Martin
    PS: It's never a good idea to have file names on the web that have spaces in.  Your background rule has this:
    background-image: url(../images/orange%20plaid.jpg);
    That .jpg should be orangeplaid.jpg or orangePlaid.jpg or orange_plaid.jpg and the change should be reflected in the reference to the image so, orangePlaid.jpg should be:
    background-image: url(../images/orangePlaid.jpg);

  • I can't figure out what's wrong with this code

    First i want this program to allow me to enter a number with the EasyReader class and depending on the number entered it will show that specific line of this peom:
    One two buckle your shoe
    Three four shut the door
    Five six pick up sticks
    Seven eight lay them straight
    Nine ten this is the end.
    The error message i got was an illegal start of expression. I can't figure out why it is giving me this error because i have if (n = 1) || (n = 2) statements. My code is:
    public class PoemSeventeen
    public static void main(String[] args)
    EasyReader console = new EasyReader();
    System.out.println("Enter a number for the poem (0 to quit): ");
    int n = console.readInt();
    if (n = 1) || (n = 2)
    System.out.println("One, two, buckle your shoe");
    else if (n = 3) || (n = 4)
    System.out.println("Three, four, shut the door");
    else if (n = 5) || (n = 6)
    System.out.println("Five, six, pick up sticks");
    else if (n = 7) || (n = 8)
    System.out.println("Seven, eight, lay them straight");
    else if (n = 9) || (n = 10)
    System.out.println("Nine, ten, this is the end");
    else if (n = 0)
    System.out.println("You may exit now");
    else
    System.out.println("Put in a number between 0 and 10");
    I messed around with a few other thing because i had some weird errors before but now i have narrowed it down to just this 1 error.
    The EasyReader class code:
    // package com.skylit.io;
    import java.io.*;
    * @author Gary Litvin
    * @version 1.2, 5/30/02
    * Written as part of
    * <i>Java Methods: An Introduction to Object-Oriented Programming</i>
    * (Skylight Publishing 2001, ISBN 0-9654853-7-4)
    * and
    * <i>Java Methods AB: Data Structures</i>
    * (Skylight Publishing 2003, ISBN 0-9654853-1-5)
    * EasyReader provides simple methods for reading the console and
    * for opening and reading text files. All exceptions are handled
    * inside the class and are hidden from the user.
    * <xmp>
    * Example:
    * =======
    * EasyReader console = new EasyReader();
    * System.out.print("Enter input file name: ");
    * String fileName = console.readLine();
    * EasyReader inFile = new EasyReader(fileName);
    * if (inFile.bad())
    * System.err.println("Can't open " + fileName);
    * System.exit(1);
    * String firstLine = inFile.readLine();
    * if (!inFile.eof()) // or: if (firstLine != null)
    * System.out.println("The first line is : " + firstLine);
    * System.out.print("Enter the maximum number of integers to read: ");
    * int maxCount = console.readInt();
    * int k, count = 0;
    * while (count < maxCount && !inFile.eof())
    * k = inFile.readInt();
    * if (!inFile.eof())
    * // process or store this number
    * count++;
    * inFile.close(); // optional
    * System.out.println(count + " numbers read");
    * </xmp>
    public class EasyReader
    protected String myFileName;
    protected BufferedReader myInFile;
    protected int myErrorFlags = 0;
    protected static final int OPENERROR = 0x0001;
    protected static final int CLOSEERROR = 0x0002;
    protected static final int READERROR = 0x0004;
    protected static final int EOF = 0x0100;
    * Constructor. Prepares console (System.in) for reading
    public EasyReader()
    myFileName = null;
    myErrorFlags = 0;
    myInFile = new BufferedReader(
    new InputStreamReader(System.in), 128);
    * Constructor. opens a file for reading
    * @param fileName the name or pathname of the file
    public EasyReader(String fileName)
    myFileName = fileName;
    myErrorFlags = 0;
    try
    myInFile = new BufferedReader(new FileReader(fileName), 1024);
    catch (FileNotFoundException e)
    myErrorFlags |= OPENERROR;
    myFileName = null;
    * Closes the file
    public void close()
    if (myFileName == null)
    return;
    try
    myInFile.close();
    catch (IOException e)
    System.err.println("Error closing " + myFileName + "\n");
    myErrorFlags |= CLOSEERROR;
    * Checks the status of the file
    * @return true if en error occurred opening or reading the file,
    * false otherwise
    public boolean bad()
    return myErrorFlags != 0;
    * Checks the EOF status of the file
    * @return true if EOF was encountered in the previous read
    * operation, false otherwise
    public boolean eof()
    return (myErrorFlags & EOF) != 0;
    private boolean ready() throws IOException
    return myFileName == null || myInFile.ready();
    * Reads the next character from a file (any character including
    * a space or a newline character).
    * @return character read or <code>null</code> character
    * (Unicode 0) if trying to read beyond the EOF
    public char readChar()
    char ch = '\u0000';
    try
    if (ready())
    ch = (char)myInFile.read();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (ch == '\u0000')
    myErrorFlags |= EOF;
    return ch;
    * Reads from the current position in the file up to and including
    * the next newline character. The newline character is thrown away
    * @return the read string (excluding the newline character) or
    * null if trying to read beyond the EOF
    public String readLine()
    String s = null;
    try
    s = myInFile.readLine();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (s == null)
    myErrorFlags |= EOF;
    return s;
    * Skips whitespace and reads the next word (a string of consecutive
    * non-whitespace characters (up to but excluding the next space,
    * newline, etc.)
    * @return the read string or null if trying to read beyond the EOF
    public String readWord()
    StringBuffer buffer = new StringBuffer(128);
    char ch = ' ';
    int count = 0;
    String s = null;
    try
    while (ready() && Character.isWhitespace(ch))
    ch = (char)myInFile.read();
    while (ready() && !Character.isWhitespace(ch))
    count++;
    buffer.append(ch);
    myInFile.mark(1);
    ch = (char)myInFile.read();
    if (count > 0)
    myInFile.reset();
    s = buffer.toString();
    else
    myErrorFlags |= EOF;
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    return s;
    * Reads the next integer (without validating its format)
    * @return the integer read or 0 if trying to read beyond the EOF
    public int readInt()
    String s = readWord();
    if (s != null)
    return Integer.parseInt(s);
    else
    return 0;
    * Reads the next double (without validating its format)
    * @return the number read or 0 if trying to read beyond the EOF
    public double readDouble()
    String s = readWord();
    if (s != null)
    return Double.parseDouble(s);
    // in Java 1, use: return Double.valueOf(s).doubleValue();
    else
    return 0.0;
    Can anybody please tell me what's wrong with this code? Thanks

    String[] message = {
        "One, two, buckle your shoe",
        "One, two, buckle your shoe",
        "Three, four, shut the door",
        "Three, four, shut the door",
        "Five, six, pick up sticks",
        "Five, six, pick up sticks",
        "Seven, eight, lay them straight",
        "Seven, eight, lay them straight",
        "Nine, ten, this is the end",
        "Nine, ten, this is the end"
    if(n>0)
        System.out.println(message[n]);
    else
        System.exit(0);

  • Can't figure out what is wrong with recovery DVDs

    Last year, right after turning my laptop ON, I've created 4 DVDs as such: http://i56.tinypic.com/6i79rn.jpg
    Recovery DVD Disk 1
    Recovery DVD Disk 2
    Recovery DVD Disk 3
    Windows Recovery Environment 64-bit
    My Laptop is Qosmio F60-14R, with Windows 7 Home Premium.
    Now all I want to do is format my laptop and re-install windows 7 Home premium using those 4 DVDs. However I can't figure out why I cannot re-install or get the laptop back to the factory state.
    This have wasted 8 hours straight of my time and frustrated me by great deal. Can you kindly tell me what I have to do? I am lost!

    Here is what I have done so far:
    I inserted 'Windows Recovery Environment (64-bit)' DVD and booted the laptop from it.
    First thing that loads up is a window with two options:
    - Toshiba Recovery Wizard
    - System Recovery Options
    Taking Toshiba Recovery Wizard as choice, clicking Next.
    It asks me: "Please set 1st Recovery Media and press Next to Continue.
    So, I insert Recovery DVD 1 and then click Next. However it ejects the disc drive (seems Recovery DVD 1 is not the correct Disk!).
    So I repeat the same process with Recovery DVD 2 and Recovery DVD 3 and again the Disk Drive ejects the Disks.... As a desperation attempt I even put the Windows Recovery Environment Disk inside but that as well get ejected.
    Okay, so the Toshiba Recovery Wizard is not the right choice 'it seems'.
    So, I restart the laptop and inserted 'Windows Recovery Environment (64-bit)' DVD and booted the laptop from it.
    First thing that loads up is a window with two options: (First choice failed, now trying second choice)
    - --Toshiba Recovery Wizard--
    - System Recovery Options
    So, choosing System Recovery Options this time and clicking Next. I Choose US as Keyboard, then click Next. A small window appears which gives me two further options:
    - Use Recovery tools that can help fix problems starting Windows. Select an Operating System to repair.
    - Restore your computer using a system image that you created earlier.
    So, I already tried the first choice and it takes me to another window with several recovery tools. One of the tools is System Image Recovery but when I click it, it gives a Warning messagebox that says:
    Windows cannot find a system image on this computer. etc.
    But when I insert every disk, still the warning messagebox shows up as if all the four recovery DVDs are irrelevant.
    So, it seems the first choice doesn't lead me anywhere. So, remains the second choice:
    - Restore your computer using a system image that you created earlier.
    Turns out it is exactly the same 'System Image Recovery' from first option mentioned few lines earlier. So, there you have it, checkmate.
    Please guide.

  • I am able to access a shared library, but can't figure out how to sync with my ipod

    My son got a new laptop for Christmas. I set up his itunes acct and he lost most songs that were on his ipod. They are in my library so I have set up home shareing. I can access my library in his itunes account, but can't figure how to sync that library to his ipod. When I do click sync, it only syncs a couple of songs that are already on his ipod.
    I've tried highlighting all songs and dragging to "hisipod", but they will not drag.

    Click on the Layout button lower right and choose a Vertical lyout from the dropdown

  • Can't figure out why my page has a "gap" ?

    Hi everyone, I'm new to building a website and have a question about my page. I will post two images, and the HTML code for my site. One image will be my template, the other image will be my site as it looks in Internet Explorer, I will post the HTML code for my template. The question I have is why does my page separate from my menu bar and my content div? When I have a blank page and preview it in Internet Explorer and Firefox the page looks fine, all the divs are attached. The second I write a sentence or a paragraph my page will have a gap between my menu bar and my content div. Check out the screen shot below. Thank you anyone who can help me. I'm currently using Dreamweaver C.S. 5.5.
    The image below is not in "live view" see how the menu is attached to the content div?
    The image below is how the site looks in "live view" and now the menu has a "gap" from the content div. I would like the site to be together with no gaps.
    My HTML code for my template is pasted below.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="../style.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
    background-image: url();
    background-repeat: repeat;
    background-color: #000;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header"><img src="../assets/Banner Image.jpg" width="806" height="105" alt="Banner Image" /></div>
      <div id="menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="../index.html">About Us</a>      </li>
          <li><a href="../wreaths.html">Wreaths</a></li>
          <li><a href="../bouquets.html">Bouquets</a>      </li>
          <li><a href="../feedback.html">Feedback</a></li>
        </ul>
      </div>
      <div id="content">
        <p> </p>
        <hr />
        <!-- TemplateBeginEditable name="content" --><!-- TemplateEndEditable -->
        <p> </p>
      </div>
      <div id="footer"><a href="../index.html">About Us</a>  <a href="../wreaths.html">Wreaths</a> <a href="../bouquets.html"> Bouquets</a>  <a href="../feedback.html">Feedback</a></div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    Sorry it didn't post correctly I'm new and kind of confused on how to post the code. I also don't have a testing server. I'm just going by the preview option in dreamweaver. I will copy and paste the code directly from dreamweaver.
    HTML code below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="../style.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
    background-image: url();
    background-repeat: repeat;
    background-color: #000;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header"><img src="../assets/Banner Image.jpg" width="806" height="105" alt="Banner Image" /></div>
      <div id="menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="../index.html">About Us</a>      </li>
          <li><a href="../wreaths.html">Wreaths</a></li>
          <li><a href="../bouquets.html">Bouquets</a>      </li>
          <li><a href="../feedback.html">Feedback</a></li>
        </ul>
      </div>
      <div id="content">
        <p> </p>
        <hr />
        <!-- TemplateBeginEditable name="content" --><!-- TemplateEndEditable -->
        <p> </p>
      </div>
      <div id="footer"><a href="../index.html">About Us</a>  <a href="../wreaths.html">Wreaths</a> <a href="../bouquets.html"> Bouquets</a>  <a href="../feedback.html">Feedback</a></div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    this image is what the site looks like in live preview

  • Still can't figure out how to share apps with two different itunes accounts, two different apple ids (homesharing for music works fine) this is between my wifes iphone 4s and my ipad 3 4g anyone help ?

    My wife has an iphone 4s. I have an ipad 3 4g. Homesharing between the pc, the ipad and the iphone is fine, but only for music. Many forums say that apps can be shared between devices but HOW ???? I can't find a solution anywhere. My wife and I have separate apple ids, separate icloud accounts and separate itunes details....
    Anyone help ?

    Select the name of the shared library in the source pane of your itunes, and click on the wee disclosure triangle to the left of the name of the library. Does "Apps" appear beneath the name of the library?
    Here's a screenshot of what I mean. (Unfortunately, it's not showing "Apps" because there aren't any in that library. But fingers crossed it should give you an idea of what you're looking for.)

  • Ireset my ipod and I still can not figure out the restrction password

    I reset my ipod and I am still unable to reset my restriction password

    and that restoration will have to be as a new device, not using a backup, which will mean that you'll lose all your app data.
    Regards.

  • I still can't figure out which archived Flash to use for nexus 7/firefox

    Details as to which one please

    Hey mhmiller,
    Please remember that flash is no longer supported on Android, therefore it may or may not work for you.
    Other users have had success by following [http://www.pcadvisor.co.uk/how-to/google-android/3417930/how-get-flash-in-android-jelly-bean/ this article].

  • Can't figure out what's wrong with my code

    Hello everyone. I'm new here and I am trying to write this program and am completely stuck. What i want the program to do is to read in two directory paths from the user and compare those directories and print out the differences. The catch is i only want it to compare 2 directories deep. For example, to compare the music folder on my hard drive and on my external hard drive. My folders are organized: my music>artist>albums, so i just want it to be able to search these folders, not the files inside the albums folders, to show what's different. I hope that makes sense... Anyways, here is the class that I have written to do the comparison. The error it is giving me is:
    Exception in thread "main" java.lang.NullPointerException
         at ToArrayList.ArrayToArrayList(ToArrayList.java:15)
         at NewFunctionClass.compareDirs(NewFunctionClass.java:44)
         at MainMenu.main(MainMenu.java:37)
    Any suggestion on how to make this work/why it doesn't work or any suggestion on a more efficient way to go about doing it would be greatly appreciated. Thank you.
    public class MainMenu {
         public static void main(String[]args)
              boolean flag = true;
              int userInput;
              String dir1;
              String dir2;
              System.out.println("****************************");
              System.out.println("*   Directory Comparison   *");
              System.out.println("*         v 1.2            *");
              System.out.println("****************************");
              while(flag)
                   System.out.println(" Make a selection:");
                   System.out.println(" 1. Compare new directories");
                   System.out.println(" 2. (coming soon)");
                   System.out.println(" 3. exit");
                   System.out.println(">");
                   userInput = inputClass.readInt();
                   switch(userInput){
                   case 1:
                        System.out.println("Enter the location of the first directory:");
                        dir1 = inputClass.readString();
                        NewFunctionClass.readDir1(dir1);
                        System.out.println("Enter the location of the second directory:");
                        dir2 = inputClass.readString();
                        NewFunctionClass.readDir2(dir2);
                       System.out.println("Differences in directories");
                       System.out.println("---------------------------");
                        System.out.println();
                        NewFunctionClass.compareDirs(dir1, dir2);
                   }//end case 1
                        break;
                   case 2:
                   }//end case 2
                   case 3:
                        flag = false;
                        break;
                   }//end switch
              }//end while
         }//end main
    }//end class
    import java.io.*;
    import java.util.*;
    public class NewFunctionClass {
         private static File[] mainDir1;
         private static File[] mainDir2;
         private static File[] subDir1;
         private static File[] subDir2;
         public static void readDir1(String dirName1) {
              File dir1 = new File(dirName1);
              mainDir1 = dir1.listFiles();
         }// end readDir1
         public static void readDir2(String dirName2) {
              File dir2 = new File(dirName2);
              mainDir2 = dir2.listFiles();
         }// end readDir1
         public static void compareDirs(String dir1, String dir2) {
              int i,j;
              List<File> mainDir1List;
              List<File> subDir1List;
              List<File> mainDir2List;
              List<File> subDir2List;
              ToArrayList a = new ToArrayList();
              // compare first directory to second
              for (i = 0; i < mainDir1.length; i++) {                                      //<<<<<
                   if (mainDir1.isDirectory()) {                                //<<<<< From here to the rest of the class is where most of the
                        subDir1 = mainDir1[i].listFiles(); //<<<<< error seems to be
                   }// end if
                   mainDir1List = a.ArrayToArrayList(mainDir1);
                   subDir1List = a.ArrayToArrayList(subDir1);
                   for (j = 0; j < mainDir2.length; j++) {
                        if (!mainDir1List.contains(mainDir2[j])) {
                             System.out.println("Didn't find " + mainDir2[j].toString()
                                       + " in " + dir1);
                        }// end if
                        if (!subDir1List.contains(mainDir2[j])) {
                             System.out.println("Didn't find " + mainDir2[j].toString()
                                       + " in " + dir1);
                        }// end if
                   }// end for
              }// end for
              // now compare second directory to first
              for (i = 0; i < mainDir2.length; i++) {
                   if (mainDir2[i].isDirectory()) {
                        subDir2 = mainDir2[i].listFiles();
                   mainDir2List = a.ArrayToArrayList(mainDir2);
                   subDir2List = a.ArrayToArrayList(subDir2);
                   for (j = 0; j < mainDir1.length; j++) {
                        if (!mainDir2List.contains(mainDir1[j])) {
                             System.out.println("Didn't find " + mainDir1[j].toString()
                                       + " in " + dir2);
                        if (!subDir2List.contains(subDir1[j])) {
                             System.out.println("Didn't find " + mainDir1[j].toString()
                                       + " in " + dir2);
                   }//end for
              }//end for
         }// end method
    }// end class
    import java.util.*;
    import java.io.*;
    public class ToArrayList {
         List<File>myArrayList;
         public ToArrayList(){
              myArrayList = new ArrayList<File>();
         public List<File> ArrayToArrayList(File[] myArray)
              int i;
              for(i = 0; i < myArray.length; i++)
                   myArrayList.add(myArray[i]);
              return myArrayList;
    }//end class
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    public class inputClass {
         public static String readString(){
              String str = "";
              InputStreamReader isr = new InputStreamReader(System.in);
              BufferedReader br = new BufferedReader(isr);
              try {
                   str = br.readLine();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              str = str.trim();
              return str;
         }//end readString
         public static int readInt() {
              * Method for reading from keyboard and returning int
              String str = "";
              int i = 0;
              InputStreamReader isr = new InputStreamReader(System.in);
              BufferedReader br = new BufferedReader(isr);
              try {
                   str = br.readLine();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              i = Integer.parseInt(str);
              return i;
         }// end readInt
    }//end inputClass

    Start by looking at line 15 of the ToArrayList class. That's where you are trying to use a variable which is still null. And don't fuss about making it "more efficient", it doesn't even work yet.

  • When I boot up my Mac, Messages opens automatically. I quit the app, but it just re-opens itself. It won't stay off!!! I can't figure out what's wrong with it!

    For the past few months, my Mac has been acting weird. EVERY time I boot up the computer, Messages opens automaticallly (I am runing OS X 10.8.x). I quit the app, but it just re-opens a few seconds later! It just won't stay off! I've looked it up online and nothing helps. I have no idea what to do!!!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

Maybe you are looking for

  • A problem about the policy of RMS which is added more than 500 principals

    Hello specialists ,     I've a question about RMS , when I added more than about 500 principals (users & groups ) into a policy in the RMS , it will report an error for any operation about the policy , and I find the error message as followed (for th

  • Dynamic Actions in Custom Development

    I have a dynamic action running for an action. But when the same action is called through BDC or in the program this doesnot work. Can anyone suggest the reason as to why the dynamic actions are not getting called for the same process in the developm

  • Music for slide show

    I am creating a slide show and the music I use is a bit short so it plays twice. It there any way to eliminate the delay (silence) when it starts again. Maybe this is something I need to do in iTune? Thanks for all the great tips I keep reading on th

  • Jdeveloper 10.0.3 screen freezing

    Hello, When I'm using jdeveloper, and changing the window to another application (i.e: notepad), when I try to return to the Jdeveloper window, it is frozen for several seconds. I KNOW that the problem is that Jdeveloper tries to connect somewhere in

  • URL Param + ManagedBean + form submit Question

    Hey, I have a managed bean and configured the bean so that i takes params from the url and sets them automatically. The bean parameter is a integer value. So when i call samplePage.faces?param1=23 then the bean takes the parameter from the url and i