Help about JSTL: I can't use c:if .. in option.. !

Hi, all
I build my project on STRUTS before, and using the tableligs of struts,But now ,I find it is a good choice using JSTL.However ,problems accurred as follows:
(my project is on Eclipse and Tomcat)
In the page , I have already include that:
<%@ taglib uri="/jstl/core" prefix="c" %>
<%@ taglib uri="/jstl/fn" prefix="fn" %>
<%@ page isELIgnored="false"%>
In web.xml, I added that :
<taglib>
<taglib-uri>/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/jstl/fn</taglib-uri>
<taglib-location>/WEB-INF/fn.tld</taglib-location>
</taglib>
Problem occur here:
<select name="category">
<option value="IM1" <c:if test="${CCOption == 0}"> selected</c:if> ><bean:message key="IM1"/></option>
but the system told that " undefined attribute name <c:if .... " that is to say, they cannot find the tag in this page,but I have try to put the <c:if to ..>out , not in the <option...> ,then that is OK.
But in fact ,we can use the tag <c:if....> in such as <option...> and so on . I don't know why I can't.
By the way, in jslt 1.1, JSTl.jar/standard.jar have 15 .tld files , I don't
know what are the differences among the file c-1_0-rt.tld, c-1_0.tld and c.tld(which are inclued in the 15 tld files)?How can I set up JSTL in my Tomcat?
Look forward for your help!
Many thanks in advance!

You may find it useful to go and read [url http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0] this post. (reply #6)
Basically you are making a whole lot of work for yourself that you don't need.
JSTL doesn't need the tld files in WEB-INF.
It doesn't need entries in web.xml
All it needs is you to use the standard import URI: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
So get rid of those tlds. Leave them hidden inside the jar file. Tomcat will find them there.
The other thing of not is the <%@ page isELIgnored="false"%> attribute you have.
You only need this because your web.xml is defining itself as version2.3.
If you update your web.xml to version2.4, EL is enabled by default
Hope this helps,
evnafets

Similar Messages

  • HT201365 can I use the play sound option even  if my device is on vibrate only when it was lost?

    can I use the play sound option even  if my device is on vibrate only when it was lost?

    Yes, even if the the ringer is switched off at the side of the phone the "Play Sound" option still works.

  • [HELP],875P LSR ,HOW Can I USE 3 Optical Drives in the MoBO?

    I have 1 SATA HDD Drive (Seagate 160G) installed and Have 3  Optical Drives ,Pioneer DVD and Liton CDRW in IDE2 , Plextor CDRW in IDE3 ,but MOBO can't recgnize the PLextor CDRW,WHY???
    NEED HELP!!!!!HOW can I USE these 3  Optical Drives the same time?THANK's LOT!

    Thanks Everybody!
    I changed another IDE Cable and set IDE mode in BIOS : Native , SATA only ,Keep PATA, both channels
    then,
    Everything is OK!
    How silly I am ! I used a bad 80 pin IDE CABLE!

  • Help wanted: which class can be used to add some effects on the text

    Hi, all:
    Does anyone can tell me which Java class can be used to add some effects(e.g. emboss, shadow, underline etc.) on the text which will be printed on the screen?
    If you know the class, pls tell me and thanks in advance!
    he

    hi,
    i think you are looking for JTextPane. but that's not all, you have to use document(or inherited classes), Style, StyleConstants, AttributeSet(or inherited classes).
    And all this you have to combine.
    I wish you much fun :-) and good luck.
    regards

  • I can't use the add attachment options in mail

    Hi all,
    Im having a little bit of trouble here. Everything was working fine. but all of a sudden I can't add attachments to an email in Mac mail by using the add attachments shortcut button or by file add attachments.
    All that happens is after aproximatley 30 secs the button or 'file' is depressed and i can continue using mail but no attachments window ever appears.
    Its not the end of the world as i can still drag and drop files into the email but it can become a pain when having to scroll through the network to find the attachments i require in finder.
    Please Help.
    Ben

    Please follow these instructions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below to select it, then copy it to the Clipboard (command-C):
    ~/Library/Containers/com.apple.mail
    Quit Mail.
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste (command-V) into the box that opens, then press return. A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Relaunch Mail and test. If the problem is resolved, you'll have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.

  • PLEASE HELP!!! Can't Use Aggregate Device in GarageBand

    I have two iMics plugged directly into the two USB 2.0 ports on my iBook G4, and I used Audio MIDI Setup to create an aggregate device from the iMics. The aggregate device is recognized in GarageBand, but when I select it and say "OK" to the box asking me if I'm sure I want to switch drivers, it switches back to the input it was already set to.
    I tried using the aggregate input in Sound Studio and monitoring it in the Sound System Preference pane, and it worked fine in both of those places, but I need to record multitrack audio for a recording session tonight, and I don't have any other programs besides GarageBand to do it!
    Thanks in advance for any help. It seems that other people have had success doing this in 10.4 with GarageBand 2, but I don't have any luck yet.
    [Edit: Also, I selected the first iMic as the 'Clock' source and I have both sample rates, and all other settings set exactly the same (16 bit, 2 ch, 44.100 KHz, etc.).]

    Well, after a six hour recording session, I successfully used two iMics, and they did not drop out at all (or have any 'digital crud'). After I got them to work in GarageBand, I was unable to open GarageBand's preferences from within the application, so I had to use PrefSetter to change a couple things once I started recording.
    Only after unplugging both iMics and opening a completely new session in GB was I able to change preferences from within the app.
    Here's how I had the aggregate device set up:
    1. In Audio MIDI Setup, check the checkboxes ONLY for the iMics, and ONLY for the inputs (for some reason, if you check 'Use' for both inputs and outputs, GB can't handle it.
    2. Choose the iMic highest on the list as the 'Clock', and don't resample the other iMic(s) (no resample checkboxes should be checked).
    3. Click Done to get out of the Aggregate Device Editor, then, in the Audio MIDI Setup main window, choose the device you just created in the properties area, and make sure all the 'Streams' are set to 44.100 KHz and 16bit, 2ch.
    4. Quit Audio MIDI Setup, and open GarageBand.
    5. In GB, open the preferences, click on Audio/MIDI, then switch to the Aggregate Device you just created.
    If GB won't switch to it, go back to Audio MIDI Setup and change the aggregate device to only include you internal audio, then switch to the new device in GB, save the file you have open, then quit GB, go to Audio MIDI Setup and add the iMics, removing the internal audio (set it up as I outlined above), then quit Audio MIDI Setup and open GarageBand with the file you just created, and the device should be selected (but you won't be able to change any Preferences now).
    -Another note: The USB Hub I was trying to use (a high-speed USB 2.0 mini hub from Belkin) was not able to work very well - I don't think it quite had the capabilities of running either one or two iMics through it (the level was off, and the audio became out of sync quite quickly). I might be able to find a better hub (Griffen used to make an 'Audio USB Hub'), and I hope to try that out next recording session.
    As a final note: The band I was recording decided to scrap all the work last night because they messed up on the first track we recorded, but didn't realize it until the end (all the other performers played off that track). Oh, well... Have a nice Saturday!

  • HELP!!! Can't use sql:update in Netbeans Visual Web JSP

    I use Netbeans Visual Web in my project. I use Java DB database and Sun Java System Application Server 9.
    When i run my project, there is an error "The server encountered an internal error () that prevented it from fulfilling this request."
    Here is the codes:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:sql="http://java.sun.com/jsp/jstl/sql" >
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <sql:update var="indata" dataSource="datasource">
    INSERT INTO "NBUSER"."user" ("Username") VALUES('jacky')
    </sql:update>
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1"/>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    I can't store the data "jacky" into "Username" column in "user" table in database. Can anyone please let me know where is my mistake. Thanks.

    Maybe that SQL statement isn't valid. All those quotes look weird to me, but don't take that as meaning they are wrong. You should look in your server's logs to find out the actual error that occurred, rather than trying to guess what's wrong.

  • Help about JSTL

    can u please help me out.......
    i am new to JSTL can u plese tell me do i requirements like jars for implementing JSTL
    Thanks in advance........
    Bye..............

    You need to install JSTL.
    You can download from here:
    http://jakarta.apache.org/site/downloads/downloads_taglibs.html
    Download:
    JSP1.2 container (eg Tomcat 4) : Standard 1.0 Taglib
    JSP2.0 container (eg Tomcat 5) : Standard 1.1 Taglib
    Make sure you get the right version for your server.
    Read the readme with the download. It details any requirements.
    Most of them are included as standard with java 1.4.2
    To install: copy standard.jar and jstl.jar to your web-inf/lib directory
    Good luck,
    evnafets

  • HELP...I can't use my pc game :-(

    I'm new to fios.Moved from comcast to try this out.I am not happy at all.I race online with my pc.I had tried thismorning andwhile I had game online I did the speed test.Test came back with 30 down and 10 up ?????/I then went into the game online settings,and got it barely to work.Using the 56 k 14 kbs up 14 kbs down,it barely works.Im useing the Actiontec  MI 424 WR.Now this is suppose to be a wickedly fast internet.If this is fast,I'll go back to Comcast.Sorry,really frustrated right now.I've done it all.Could someone help.
    Solved!
    Go to Solution.

    #1 Perhaps a small/tiny NAT table?
    Points to http://www.dslreports.com/faq/16233
    If not, then...
    #2 Is wireless is in the router enabled?
    #3 If wireless in the router is enabled, what level of wireless security is it set to?
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Help me please i can't use money for game

    help me please
    i am thai i reedom itune gift gard 25$ and i buy item in respawnable game but i cant use item and money be lost help me please TT

    What happens when you try to buy items in that game, does the 'buy' button not work, do you get any error messages ... ?
    If you are getting a message to contact iTunes Support then you can do so via this link and ask them why the message is appearing (we are fellow users here on these forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it's a different problem ... ?
    (It's not a good idea to include your email address in your post, including in the tags.)

  • Question about Duet.  Can I use my Mesa Roadster as monitors

    ...to amplify my Amp Designer sounds? If so, would I connect a 1/4" cable from the 1/4" outputs on the Duet to the input of the Roadster? Can this in any way put my amp or interface or computer in danger?
    Thanks for taking the time to read this post.

    civicbud wrote:
    So, there definitely is the possibility of me screwing up my amp then, no? If that is the case, then I think I will stick with headphones until I can afford good monitors.
    So you're intending to use the amp as a monitor speaker for recording and mixing, rather than for re-amping already-recorded guitar sounds through a real amp?
    In a word: Forget it.
    Technically possible, but completely useless.
    The whole point of having speakers hooked up to your recording platform of choice is to get an idea of what you're recording/mixing.
    The whole point of a guitar amp is to DELIBERATELY mutilate/color/filter/distort the incoming signal, as the amp is a vital part of what creates the guitar sound.
    Even the best guitar amps will be useless as monitors, as that goes absolutely contrary to what they are fundamentally designed to do.
    Hook the computer up to the home stereo if you have nothing else; working with speakers, even if they're hi-fi speakers, is a good break from wearing headphones all the time, and it gives you a different view of what you're doing.
    Message was edited by: spheric

  • Photoshop CC2014: Can't use save for web option PLEASE HELP

    Whenever I try and save a small animation as a gif (or anything in save ffor web) this happens http://prntscr.com/4gpseu This happened in CS6 I upgraded thinking it might fix it

    As you can see from my screen capture I had no problem problem doing a 30 frame animation with Photoshop CC 2014.  You screen capture looks strange.  Your save for web screen capture shows frame 2 almost 8MP in size and all pixels are pinkish where the color map shows colors all a single gray for the animation no variation in color are all ??? You selected  to only use 128 colors instead of the possible 256 and to do no transparency dither .  Have you tried resetting your Photoshop preferences.  I showed in my screen capture I was using CC 2014 had 30 frames in my frame animation. Showed what my Save for web looked like. Your Save For Web Capture looks very strange to me. Look at your's here then look a my screen capture. Even when I use the preset you chose GIF 128 No dither and a large image my save for web look nothing like your..

  • Hi,plz help me,iam not using mozilla bcoz i've problem in opening in my pc,it takes nearly 45 sec to open when i open for th first time after switching on my pc, so i use chrome,opera.plz sugesst some help so that i can start using again my mozilla.

    opening mozilla a big headace for me because it load very lately,i have 2gb ram and amd 4800+ processor

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • Please help me as I can't use my Apple account in iTunes. I've done everything already, I already put my credit card account in it. Still it won't work.

    please help me.. thanks in advance

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HELP!! I CAN'T USE MY IPOD CLASSIC 160GB ANYMORE!! :'(

    I'M SUCH A TOTALLY DUMMY!! ,MY IPOD SAID IT CAN'T EJECT CUASE THERE'S A FILE IN USE AND I MADE A MISTAKE BY FORMATING THE WHOLE DEVICE FROM MY WINDOWS AND NOW EVERYTHING IS GONE!! WHEN I UNPLUG IT EVERYTHING IS THERE EXECPT IT SAID 0KB USED AND OKB FREE!! ALSO I TRY TO RESTORE IT AND IT SAYS FILES STILL IN USE CANNOT RESTORE IPOD WITH REINSTALLING SOFTWARE! WHAT SHOULD I DO NOW?!?!?!?!?!? ALSO I LOST MY RECIPT FOR BEST BUY! ALSO MY IPOD CLASSIC IS USELESS NOW!!! T____________T

    Nevermind, I rebooted my laptop and rebooted my ipod then retored it but didn't work but when i manually rebooted it it installed all the stuff from the ipod again

Maybe you are looking for