Simple JSP gives Error Message

The following is a simple welcome.jsp file that I am trying to run on a local J2EE sever. As you can see it tries to import classes one being the FaqCategories.class which is located in the folder Ch03 of the WEB-INF directory. When I call the page up on the browser It gives me that it does not recognize the   FaqCategories class and gives an associative error message.   I am wondering why(Is the import statement wrong? Did I put the class in the wrong directory? Etc... I followed everything the book told me to a que and I still received an error.     <&@ page errorPage="/WEB-INF/errorPage.jsp" import="java.util.Iterator,Ch03.FaqCategories" %>   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  <html> <head> <title>Java FAQ Welcome Page</title> </head>  <body> <h1>Java FAQ Welcome Page</h1> Welcome to the Java FAQ  <%! FaqCategories faqs = new FaqCategories(); %> Click a link below for answers to the given topic. <% Iterator categories = faqs.getAllCategories(); while(categories.hasNext()) { String category = (String) categories.next(); %> <a href="<%= replaceUnderscore(category) %>.jsp"><%= category
%></a> <% } %> <%@ include file="/WEB-INF/footer.jspf" %> </body> </html>  <%! public String replaceUnderscore(String s) { return s.replace(' ','_'); } %>

Iterator categories = faqs.getAllCategories();I think faqs.getAllCategories() seems like a method that returns a Collection class.
should that be replaced by faqs.getAllCategories().iterator()?
I think you should post your stacktrace.

Similar Messages

  • ITunes new version doesn't open at all. Gives error message

    I downloaded 7.4.3 version of iTunes and it doesn't open at all. Gives error message. "iTunes has encountered a problem and needs to close."
    I have previous version of iTunes in my spare HD, in the same computer, and it works perfectly fine.
    I have unistalled and re-installed again and again many times including with the help of Apple Support help in the phone and came up with no clues of what's going on.
    How can I get a previous version of iTunes to download to my PC? I have looking for a place on Apple's website where I could probably have my issue resolved, but I found nothing.
    Thank you.

    Thanks to Jim Zack, the problem is solved.
    If you're having this problem, go find the solution at the following page and read Jim's suggestion.
    http://discussions.apple.com/thread.jspa?threadID=1155613

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Playing mp4 audio gives error message "Video can't be played because the file is corrupt"

    Playing a particular mp4 audio file directly from a website link gives error message "Video can't be played because the file is corrupt". However other mp4 audio files from this same website do work correctly. What can I do to get all the the mp4 audio files to play directly from the same website? I must have the correct plugins, etc. since the other files play. This file is not playing from YouTube, is it on the website.
    Thank you for your help.

    What is the link to the site and file in question?
    MP4 files should be handled by Firefox itself, not a plug-in.
    # Click the ≡ Menu Button and choose Add-ons.
    # Click Plugins.
    # Set every plug-in to "Never Activate".
    # Try loading the file again. Is there any difference?
    You have two versions of Flash Player installed. Perform a clean installation of Flash Player as follows.
    # From the following page, save the uninstaller somewhere handy, like the desktop.
    #* [http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html#main_Download_the_Adobe_Flash_Player_uninstaller Uninstall Flash Player for Windows | Adobe Support]
    # From the following page, save the installer for other browsers. If you also use Flash Player in Internet Explorer, also save the ActiveX version.
    #* [http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#main-pars_text_4 Direct downloads of Flash Player for Windows | Adobe Support]
    # Exit all applications.
    # Run the uninstaller.
    # In Windows Explorer, try to open the following folders. If they still exist, delete them manually.
    #* <pre>C:\Windows\system32\Macromed\Flash\</pre>
    #* <pre>C:\Windows\SysWOW64\Macromed\Flash\</pre>
    #* <pre>%AppData%\Adobe\Flash Player\</pre>
    #* <pre>%AppData%\Macromedia\Flash Player\</pre>
    # Restart your computer.
    # Run the installer for other browsers.
    # Run the ActiveX installer if you downloaded it.

  • In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again.

    In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again."
    I have a iphone 4S. It has been activated on Win 7 computer and synced. But overnight this meassage reappears.

    I have same error except that i get it even when my phone is not connected.

  • HT1222 I tried to download Itunes update 11.1.4 to my windows xp desktop computer. Somehow, It was not succesful. Now , I cannot open Itunes. It gives error message of R6034-runtime error. How can I resolve it?

    Hi,
    I tried to download Itunes update 11.1.4 to my windows xp desktop computer. Somehow, It was not succesful. Now , I cannot open Itunes. It gives error message of R6034-runtime error. How can I resolve it?

    Click here and follow the instructions.
    (99025)

  • Since the last update my i tunes wont launch it just give error message Error 7 (Windows error 127) how do i fix it please?

    Since the last update my i tunes wont launch it just give error message Error 7 (Windows error 127) how do i fix it please?

    Like many others I have been reading about online I am having the same error.  I tried the fix listed above and simply wasted 30 minutes of my time. I scheduled a time for Apple to call and help me through this and their solution was for me to call Microsoft for some reason?!!  iTunes made me upgrade then stopped working - I really don't see how this is a Microsoft problem??
    Like Darren if a solution is not found quickly I will also have to sell my phone as the only way to get videos and music on my phone is through the software that you made me upgrade, broke and won't help me fix.

  • Premiere Pro stops rendering and gives error message when encounters "RGB Color Corrector"

    Premiere Pro (and also Encore) stops rendering and gives error message when it encounters a clip containing the "RGB Color Corrector" in any clip.  It will process clips without RGBCC, but will stop when it gets to one with RGBCC activavted.  PP will render clips if other effects, such as "Fast Color Corrector", "Color Balance (HLS)", and "Three-Way Color Corrector" are selected. However, these do not have the capabilities that The other color correctors will not do what RGB color corrector does, so I need to have this working to finish a large product that is due to the client.  Please help me..... I am not using the Creative Cloud version, and can't find either a download for the new update from 2013, or a phone number to talk to anyone. 

    Using a Win7 computer with 2.8 quad core processor, 24 gig of ram, Nvidia Quadro 5000 video card.  Don't think I have any plugins.  I looked at one a while back for cleaning up grainy video, but I am not sure I paid for that.  Think I deleted it. 
    Incidentally, someone named Jim on another part of the forum mentioned that this problem has been fixed in the CC version of the program.  I am using the non-CC version because I am 68 years old and only do seminars and documentation video.  Don't need so many bells and whistles, and definitely don't need learning curves every few weeks.  CS6.0.3 works fine for me.  By the way, someone else said that maybe version 6.0.1 might work better and I should revert to that.  Not sure if it is the version i have on the disk upgrade to 5.5 that I purchased in December. 
    As it stands now, I have 7.5 hours of a seminar that is ready to go out the door.  If there is an upgrade I can get from Adobe, maybe you can tell me about it. If I have a setting incorrect in the video output format, maybe I can change that.  So far it just happens with clips in my video that have RGB color correction. 
    Rick

  • HT1212 iPhone diabled, tried to use iTunes to restore, but iTunes gives error message (0XE8000084). Now what to try to reset iPhone?

    iphone disabled, tried to use iTunes to restore, but iTunes gives error message (0XE8000084). How to restore iPhone?

    Try here   =   http://support.apple.com/kb/TS3221

  • Should Give Error Message

    Hi all
    Purchasing organization 001 assigned to company code 001,
    when user want to create Vendor with P.Org 001 and comapny code 002
    the system should give error message
    During Vendor creation ,if the wrong purchase organisation is selected, system is allowing to create the vendor master.
    Even though ,I have done the Setting in the following , the error message is not reflectiog
    1. Message Control for Vendor Master Data
    2.T.code : OBMSG
    3.T.code : OBA5
    Kinldy let me know the steps if possible let me know userexit to solve this......
    Thanks & Regards
    chand

    Hi,
    In the exit FM EXIT_SAPMF02K_001 you have your company code and Purch. Org. in the following fields:
    I_LFB1-BUKRS (Company Code the vendor is being created in)
    I_LFM1-EKORG (Purch. Org the vendor is being created in)
    Having above, you can check in the table T024E ( here you have assignment of Purchasing Org to Company Code) if there is assignment between Purch. Org and Company Code.
    Hope it helps.
    Regards,
    w.

  • I am not able to sign in toone of my hotmail account, it gives error message where as I am able to sign in to my other hotmail ids

    Hello,
    I have three email ids with hotmail.com. I am not able to sign in to my email which I opened last, a few days back. Until yesterday I could log in and see the inbox etc of the said id. But now when I try to sign in, it gives error message
    ERROR
    The requested URL could not be retrieved
    Surprisingly when I try to open my two other emai ids with hotmail, I can open it easily and everything is normal with the other two ids. I wrote to hotmail help center, they have asked me to get in touch with firefox as I am using this browser. Please note I was using Internet Explorer and two days back I shifted to Mozilla Firefox. Please help, it is very very URGENT..

    Sign Out When Sign In http://forums.adobe.com/thread/1450581?tstart=0 may help
    -and http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html
    -and 'looping' https://forums.adobe.com/thread/1504792
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Trying to install adobe photoshop on macbook pro but at 50% it gives error message and kicks out dis

    trying to install adobe photoshop on macbook pro but at 50% it gives error message and kicks out disc

    copy the disc contents to a desktop folder and click setup in that desktop folder.
    if that fails what ps version are you trying to install and what is your os version?

  • HT1386 I have iphone 4, and couldn't update to ios7.1.1 even though its downloaded, gives error message as not connected to internet, even though am connected

    I have iphone 4, and couldn't update to ios7.1.1 even though its downloaded, gives error message
    Unable to verify update
    ios 7.1.1 failed verification because you are no longer connected to the internet
    Close          Try again
    Event though I am connected to the net
    Tried repeatedly but frustrating. Am able to do the same in another iphone 4 which my brother has....Do not know what setting to change. Even cant update via itunes

    Hi GajaPsy,
    If you are getting errors or alert messages when you try to update your iPhone, you may find the troubleshooting steps outlined in the following article helpful:
    Apple Support: Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/ts1275
    Regards,
    - Brenden

  • Digital Fax to Folder Setup gives error message unable to establish 2-way communication with device

    Digital Fax to Folder Setup gives error message unable to establish 2-way communication  with device. I can s end a Fax and I can print documents. I can also, now, scan to computer. I have changed the phone line twice, restarted the router, restarted the computer, and made sure the front panel was lit when setting up the Digital Fax folder. I am on a Homegroup network, with both wireles and ethernet computers.  When I view the network, it sees both computers (wireless laptop and enthernet desktop), the printer, scanner, and router (VerizonDrive). I recently had to reinstall Windows 7, where Digital Fax to Folder Setup previously worked, and now it doesn't.  The network shows up as Network 3. When I try to view the network map, I get the error message that Windows cannot create the network map. Responses from other devices on the network are delayed or there is an  incompatible router on the network.  What am I doing wrong?

    Hello @JiffyFingers and Good Afternoon
    From what you have described, and from the work you did on another thread, I believe you'd get better assistance talking to either Microsoft or your router manufacturer. With not being able to create the network map, that's something a bit more intricate than digital fax setup
    You can have a look at this Windows cannot create the network map. Responses from other devices on the network are delayed or th... Microsoft thread as well, and you may be able to figure it out from there.
    Hope that helps, have a great day!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • Material- chapter ID is not maintained system should give error message

    Dear All
    Requirement is as that while creating the sale order & if the material- chapter id is not maintained then system should give error message saying that the combination is not maintained.
    Client is using the TAXINN procedure.
    I think in TAXINJ it works well.
    Whether it can be done in TAXINN also through SD Module itself.cleint is using the automatic creation of excise invoice.
    Kindly help .
    with regards
    Rohit

    hi rohit,
    For TAXINN procedure system will not throw it as an error.
    if you want it to throw:
    use MV45AFZZ : USEREXIT_SAVE_DOCUMENT.
    say your SAP system to compare  and check for the values in J_1IVCHID-J_1ICHID
    if it is not equal to.
    then throw an ERROR message against it when saving the document.
    balajia

Maybe you are looking for

  • Month wise display

    Hi I have a requiement , I need to display a report which will give sales target and Actual , month wise for respective sales representative the format is as follows Sales Representative Jan           feb        upto Dec                     target Ac

  • Avoid creation of .part files for not started downloads

    Hi, whenever I right click on an item and do a "save link as..." FF creates a .part file on the desktop (my regular download folder) even if I don't start and cancel the download at this point (the point where the app asks under which name I want to

  • Urgent issue in user-exit

    hi friends, one urgent issue regarding user-exits; i have the requirement like this: if any one of these fields ZPBSTQTY2, ZPCSTQTY2, ZPBKTQTY2, ZPCKTQTY2 and ZPBFRQTY2 in table S505 is GT 0, then i need to pass a value 'X' to two flags present in th

  • Bug: QT Pro fails to properly play PDF image sequence?

    Hi folks, I have a series of numbered PDF files that represent an animation. I can open these files as an "image sequence" with QuickTime Pro, but then the resulting movie seems corrupt. Only the first frame renders properly, and the remaining frames

  • How do I see what Fonts look like?

    I have been using Appleworks for the past 8 years and I am switching over to Pages. I miss the simplicity of the word processing tool bar of Appleworks particularly, the font selector which I was able to quickly see what the fonts looked like. Is the