Eclipse and Apache I18N Taglib - how to fix "bundle cannot be resolved" msg

I edit my jsp pages in Eclipse 3.1.2
And I use Apache I18N Taglib.
Everythink works fine, but I get annoying messages in problem list that "bundle cannot be resolved"
a piece jsp code
<%@ taglib uri="http://jakarta.apache.org/taglibs/i18n-1.0" prefix="i18n"%>
<i18n:bundle baseName="my.test" id="bundle"/>
<%     
if (isFoo) {
     buttonValue = bundle.getString("AddButtonText");
} else {
     buttonValue = bundle.getString("UpdateButtonText");
%>This code works fine, but Eclipse think that code has errors.
also I want do demonstate taglib config in web.xml
     <jsp-config>
          <taglib>
               <taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri>
               <taglib-location>/WEB-INF/i18n.tld</taglib-location>
          </taglib>
     </jsp-config>

Well, putting all that Java code into a JSP was a bad idea in the first place, just on general design principles. But you've done it in such a way that the result of compiling the JSP is malformed Java code. Frankly I would just throw it away and put the Java code into a servlet or some other Java class, where it belongs.
But if you're really working in a place where nobody has learned anything since 2003, and you're forced to support that old junk, then I would point out that the error occurs before the place which generates this line:
import java.util.*;You only need to look at two of the thousand lines of code you posted.

Similar Messages

  • New PC with Windows 8.1 trying to sync phone but receive following error message and don't know how to fix: iPhone cannot be synced. You do not have enough access privileges for this operation.

    In downloading iTunes onto my PC (Dell XPS 8700) with Windows 8.1 trying to sync my iPhone but receive keep receiving following error message and I just don't know how to fix: iPhone cannot be synced. You do not have enough access privileges for this operation.
    I would greatly appreciate help with this matter.

    See if the user tip helps: https://discussions.apple.com/docs/DOC-6562

  • TS1702 I cannot get the keyboard to come up on the ipad mini when in the citrix receiver.  Has anyone ran into this and do you know how to fix it?

    I cannot get the keyboard to come up on the ipad mini when in the citrix receiver.  Has anyone ran into this and do you know how to fix it?

    I am not familiar with Citrix Reciever but is it possible it is open or being used in another open app?
    Try quitting all apps then try again.
    Quit all apps: Double tap the Home button and swipe the app preview page up for each open app

  • My transparency does not work on my iPhone and I was wondering how I fix that? It worked when I first downloaded ios7 but not now.

    My transparency does not work on my iPhone and I was wondering how I fix that? It worked when I first downloaded ios7 but not now.

    Hello wilsontot_too,
    Thank you for the details of the issue you are experiencing on your iPhone.  It sounds like you are not noticing transparency on your iPhone.  It may be that you have "Increase Contrast" turned on in your iPhone settings.
    I recommend verifying that Increase Contrast is turned off in Settings>General>Accessibility.
    iPhone User Guide - Large, bold, and high-contrast text
    http://help.apple.com/iphone/7/#/iph73b89c6
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HI there, I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep gettin this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.

    I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep getting this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.
    Any help will be highly appreciated.
    Thanks a lot in advance.
    Sincerely,
    Uvaldocj@@
    Here is a list of the products I am troubled with:
      Adobe After Effects CS5 10.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Bridge CS5 4.0.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Extension Manager CS5 5.0 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Illustrator CS5 15.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Pixel Bender Toolkit 2.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe® InDesign® CS5 7.0.4 update
    There was an error downloading this update. Please quit and try again later.
      Dreamweaver CS5 11.0.4 Updater
    There was an error downloading this update. Please quit and try again later.
      Fireworks CS5 11.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Photoshop 12.0.4 update for Photoshop CS5
    There was an error downloading this update. Please quit and try again later.
      Photoshop Camera Raw 6.7 Update
    There was an error downloading this update. Please quit and try again later.

    I'm having the same issue. And Dreamweaver now crashes after just a few seconds.

  • IPhone turns off often, turns back on only after reset, tried all troubleshooting and still nothing. Does anyone know what could be causing this and any ideas on how to fix it?

    My iPhone 4s shuts down at least once a day, usually after I used it or when I'm not using it at all. It will not turn back on unless I reset it (by pressing home/power buttons) and when it turns back on, it runs like nothing happened. I have tried everything I can think of, update iPhone software, iTunes software, troubleshoot on Apple's Support page and reading other user's issues but I haven't seen anything similar. I erased and restore factory settings several times, made different backup attempts and even restored from recovery mode with iTunes. Everything goes great, no error message or anything unusual, until phone is off again, very frustrating. It doesn't seem to have a pattern to it, it happened when no apps were running as well as when a few apps were. The only thing I can think of is I haven't seen this happening when charger cable is plugged it. I don't really care about apps and content on the phone, but my contacts and voicemails are the only reason why I absolutely have to restore from backup, even after setting up a new phone, from iTunes. Other than that phone is brand new, battery is also great, nothing wrong with it (apparently).
    I would like to know if somebody knows what this could be, and any ideas on how to fix it. Thank you.

    Start with this comprehensive troubleshooting article:
    https://discussions.apple.com/docs/DOC-3521
    Look at this one for possible solutions:
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Ever since i plugged my iphone into the computer, all of my music has been messed up. The songs don't have the right album cover i guess they all just got mixed up somehow. i dont know but its annoying and im not sure how to fix it.

    Ever since i plugged my iphone into the computer, all of my music has been messed up. The songs don't have the right album cover i guess they all just got mixed up somehow. i dont know but its annoying and im not sure how to fix it.

    If not this:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Then
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • My trackpad will work sporadically and I'm wondering how to fix this

    My trackpad will not work sometimes and I'm wondering how to fix it? How can it be repaired? I was also wondering the steps to take to send it in to get a new trackpad

    There may be an AASP closer:  http://www.apple.com/uk/buy/locator
    International AASP’s & Other Services
    AASP's Outside of the USA
    ================
    http://docs.info.apple.com/article.html?artnum=304398 How to find your nearest Apple Authorized Service Provider (AASP)

  • I have downloaded ios 5.1.1 and the wifi has stop working or it would stay on for less then 20min its only 9 months old can someone explain what is happening and if some know how to fix it

    I have downloaded ios 5.1.1 and the wifi has stop working or it would stay on for less then 20min its only 9 months old can someone explain what is happening and if some know how to fix it

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • I have a 2007 macbook and today the screen went all pixelated and i dont know how to fix it any help would be nice

    i have a 2007 macbook and today the screen went all pixelated and i dont know how to fix it any help would be nice

    Boot from your installer disc. If the problem is still present, then take it in for service.

  • Autofill has stopped working on my iMac and Macbook Air. How to fix it?

    Autofill has stopped working on my iMac and Macbook Air. How to fix it?

    Hello esenglish,
    Thanks for using Apple Support Communities.
    For more information, take a look at:
    Safari 6 (OS X Mountain Lion): If AutoFill won’t work
    http://support.apple.com/kb/PH11895
    Have a nice day,
    Mario

  • I went in you tube and watched videos on how to fix my headphone jack and its not the headphones cause when I look inside I see this little white costing in there I think that's the problem how can I fix it

    I went in you tube and watched videos on how to fix my headphone jack and its not the headphones cause when I look inside I see this little white costing in there I think that's the problem how can I fix it

    - Try cleaning out/blowing out the headphone jack. Make sure that y do not leave any foreign material or leave anything in the jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • HT3275 I received this message and I'm unsure how to fix it "Time Machine couldn't complete backup to Time Capsule the backup disk image"/Volumes/The Vision Board/Alex Parry.sparsebundle" is already in use

    I received this message and I'm unsure how to fix it "Time Machine couldn't complete backup to Time Capsule the backup disk image“/Volumes/The Vision Board/Alex Parry.sparsebundle” is already in use

    Look at the more like this on the right column of the web page.
    This is the most common error here.. we answer it 5-10times every day.
    Simple method.. pull out the TC power cord .. count to 10.. plug in the TC power cord.
    Look at the other references for more info.

  • Hi there... got the $30 gift card here and did scratch off the tape the code has missing digits and is unusable.. how to fix this problem?

    hi there... got the $30 gift card here and did scratch off the tape the code has missing digits and is unusable.. how to fix this problem?

    Some advice in the following document, patricia:
    iTunes Store: Invalid, inactive, or illegible codes

  • My phone automatically toggles between silent and ringer mode. How to fix ?

    my phone automatically toggles between silent and ringer mode. How to fix ?

    Hey there Sam1011,
    It sounds like you are not flipping the side switch but the phone keeps muting and unmuting by itself.
    I would start by toggling the side switch manually to mute, then unmute. Then evaluate it for a bit. If the issue persists, reset the phone with this article and test the issue.
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If your device stops responding, you can reset it by pressing and holding both the Sleep/Wake and Home buttons for at least ten seconds, until the Apple logo appears
    If the issue persists I would next backup your phone to iTunes and then restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

Maybe you are looking for

  • My itunes wont open. Please help!

    I have a new computer, and have transferred all of my old files already etc., but when I downloaded Itunes and tried to open it, it starts up and tries to access the itunes store, then tells me there is a problem and closes it, but doesn't tell me wh

  • First event fired to event structure

    Hi all,    Does anyone know what's the first event being fired to the event structure on VI startup? I set a breakpoint on the event structure and it breaks. However i wasn't able to capture whats the event. My intention was simple; i have a table wh

  • Unexpected Quitting

    My phone is quitting applications randomly such as maps and safari. Is this normal and if not how can it be fixed

  • Execute Java Code on client

    Hello, how can i execute java code on clientside?

  • Premiere Pro CS6, large project file size - crashing etc

    Working on a project in Premiere Pro CS6 - also incorporating after effects and using 2 external plugins (Beauty Box and Factory Pro FX).  Project is over 500MB, lots of comps, titles etc.  project seems to be corrupt on my machine. .The project cras