Why my JSP can not recogonize the JSTL tag??

My hello.jsp code is like follows:
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<html>
<head>
<title><fmt:message key="title"/></title>
</head>
<body>
<h1><fmt:message key="heading"/></h1>
<p><fmt:message key="greeting"/> <c:out value="${model.now}"/></p>
<h3>Products</h3>
<c:forEach items="${model.products}" var="prod">
<c:out value="${prod.description}"/> <i>$<c:out value="${prod.price}"/></i><br><br>
</c:forEach>
</body>
</html>
When I start the tomcat server and run my application ,the tomcat shows the error message:
org.apache.jasper.JasperException: /WEB-INF/jsp/hello.jsp(5,17) No tag "" defined in tag library imported with prefix "fmt"
But I do import the tag library, why it still show the error that No tag "" defined in tag library ???
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon

Ok, now I have specify the <taglib> in my web.xml file and I have paste the fmt.ltd under WEB-INF/ like this:
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
     <taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
When I re-deploy my application and start the tomcat server, the error message now is still :
jsp/hello.jsp(6,17) No tag "" defined in tag library imported with prefix "fmt"
My include.jsp is used to import all the libraries that needed,like follows:
<%@ page session="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
My hello.jsp is like follows:
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<html>
<head>
<title><fmt:message key="title"/></title>
</head>
<body>
<h1><fmt:message key="heading"/></h1>
<p><fmt:message key="greeting"/> <c:out value="${model.now}"/></p>
     <h3>Products</h3>
<c:forEach items="${model.products}" var="prod">
<c:out value="${prod.description}"/> <i>$<c:out value="${prod.price}"/></i><br><br>
</c:forEach>
</body>
</html>
Why? I just import the fmt.ltd, everything seems correct, why this error? It seems that tomcat can not find the "fmt" prefix in tag library.
Please Help:(
Message was edited by:
Mellon
Message was edited by:
Mellon

Similar Messages

  • Why my computer can not adjust the volume up and down althought i have had repair once time in a near day . i must waitting for 15days now it's continue

    why my computer can not adjust the volume up and down althought i have had repair once time in a near day . i must waitting for 15days now it's continue

    1. Remove the headphone.
        If you see red light in the headphone port, plug the headphone
        in and out of the port 5 or 6 times to flip the microswitch inside.
        Sound output may be stuck in the digital mode.
    2. Reset PRAM.  http://support.apple.com/kb/PH4405
    3. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".

  • Why do I can not hear the siri's voice on my iphone speaker anymore, why do I can not hear the siri's voice on my iphone speaker anymore

    why do I can not hear the siri's voice on my iphone speaker anymore, why do I can not hear the siri's voice on my iphone speaker anymore

    All apps - all paid and free apps include DRM protection that is tied to the iTunes that was used to download the apps. This means you have apps on your iPhone that were downloaded with your daughter's iTunes account. Apps cannot be transferred or merged with another iTunes account.
    Delete the apps from your iPhone that were downloaded with your daughter's iTunes account to prevent being prompted for the account's password when there are app updates for the apps downloaded with the account. An iTunes account cannot be deleted.

  • Why my ipad can not update the ios7.1.1

    why my ipad can not update the ios 7.1.1

    Hello there, crivera350.
    The following Knowledge Base article offers up some great steps for if you are unable to update your iOS device:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Recovery mode erases your device and restores it, which should resolve the issue. If you previously synced with iTunes or iCloud, you may be able to restore from your backup after recovery.
    Turn off your device. If you can't turn it off, press and hold the Sleep/Wake and Home buttons at the same time and wait a few seconds for it to turn off.
    Plug the device's USB cable into your computer only.
    Hold down the device's Home button as you connect the USB cable to it.
    When you see the Connect to iTunes screen, release the Home button. If you don't see this screen, try steps 1 through 3 one more time.
    iTunes should open and display a message such as: "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes."
    Use iTunes to restore your device.
    If you don't see your device in iTunes, follow these steps for Mac or these for Windows.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Why MS JVM can not fine the classpath

    I have a applet and it's working fine with Sun JRE,but when I use MS JVM I always get error like can not fine the classpath,I alreday have created jar for all the applet class file and I have defined codebase and code ,using applet tag. I want to use Java1.1.
    I use NetBeans 3.6 compile the whole applet. and Can you tell me how to do?

    The applet probably includes code that is not supported by, or compatible with, the MS jvm. That error is a typical response to this cause.
    Try using the compiler option "-target 1.1". If that doesn't work, you could download an old jvm from Sun's archive page and recompile with it.
    If that doesn't work, then you have to rewrite the applet to use only code that can be run by the MS jvm.
    Be aware that there are differences between MS and Sun jvm's, so it may have to be rewritten no matter what.

  • HT201210 Why my Iphone can NOT contact the apple server update for fixing software problem?

    My iphone 2s is having software problem It can not contact Apple Server for fixing problem

    Download firmware from here
    iPhone1,1_3.1.3_7E18_Restore.ipsw
    save on your computer. Connect iPhone in iTunes. Option+Restore (Mac) or Shift+Restore pointing to the downloaded IPSW.

  • Why this program can not update the datatbase?

    The database I used is MS SQL Server 2000.
    The program can run normally,but the table is not updated.
    import java.sql.*;
    public class BatchUpdate {
    public static void main(String args[]) {
    String url = "jdbc:mySubprotocol:myDataSource";
    Connection con;
    Statement stmt;
    try {
    Class.forName("myDriver.ClassName");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url, "myLogin", "myPassword");
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    con.setAutoCommit(false);
    stmt.addBatch("INSERT INTO COFFEES " + "VALUES('Amaretto', 49, 9.99, 0, 0)");
    stmt.addBatch("INSERT INTO COFFEES " + "VALUES('Hazelnut', 49, 9.99, 0, 0)");
    stmt.addBatch("INSERT INTO COFFEES " + "VALUES('Amaretto_decaf', 49, 10.99, 0, 0)");
    stmt.addBatch("INSERT INTO COFFEES " + "VALUES('Hazelnut_decaf', 49, 10.99, 0, 0)");
    int [] updateCounts = stmt.executeBatch();
    ResultSet uprs = stmt.executeQuery("SELECT * FROM COFFEES");
    System.out.println("Table COFFEES after insertion:");
    while (uprs.next()) {
    String name = uprs.getString("COF_NAME");
    int id = uprs.getInt("SUP_ID");
    float price = uprs.getFloat("PRICE");
    int sales = uprs.getInt("SALES");
    int total = uprs.getInt("TOTAL");
    System.out.print(name + " " + id + " " + price);
    System.out.println(" " + sales + " " + total);
    uprs.close();
    stmt.close();
    con.close();
    } catch(BatchUpdateException b) {
    System.err.println("SQLException: " + b.getMessage());
    System.err.println("SQLState: " + b.getSQLState());
    System.err.println("Message: " + b.getMessage());
    System.err.println("Vendor: " + b.getErrorCode());
    System.err.print("Update counts: ");
    int [] updateCounts = b.getUpdateCounts();
    for (int i = 0; i < updateCounts.length; i++) {
    System.err.print(updateCounts[i] + " ");
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    System.err.println("SQLState: " + ex.getSQLState());
    System.err.println("Message: " + ex.getMessage());
    System.err.println("Vendor: " + ex.getErrorCode());

    con.setAutoCommit(false);The changes are not comitted to the DB when you set autocommit to false.
    commit with
    con.commit();
    or dont set autocommit to false
    rgds

  • Why my method can not receive the string from JNI

    JNIEXPORT jstring JNICALL Java_playaudio_BeatTrack_myBeatTrack
    (JNIEnv *env, jobject obj, jstring wavfile)
    const char* filename = env->GetStringUTFChars(wavfile,0);
    BeatTrack(filename);
    env->ReleaseStringUTFChars(wavfile,filename);
    return NULL;
    }for my BeatTrack method, I just need the filename, then it can run, if I comment the BeatTrack(filename);, then no problem, for the java calling, of course, my BeatTrack(const *char filename) has no problem, cause I have test it,,
    but I call this method in java, the error is as follows,
    Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86) # Problematic frame: # C [beattrack.dll+0x130b] # # An error report file with more information is saved as: # D:\programs\playAudio\hs_err_pid11684.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. any idea??

    1) What class is "missing?"
    2) Where is it?

  • Why my iphone5 can not use the weather function with the mobile internet?

    I just bought an iphone5, but the weather software doesn't work if not using wifi, the support people told me that Apple desined this only for wifi, but I don't think so, pls help to find a solution

    As the attached article shows, AirPlay Mirroring requires an iMac to be from mid-2011 or newer.
    You should be able to use AirPlay to send music (but not video or pictures) from your iMac to speakers.
    http://support.apple.com/kb/SP654

  • Please tell me why my domain can not connect the tuxedo

    010332.busiSvr!GWTDOMAIN.24457.1.0: LIBGWT_CAT:1128: INFO: Connection accepted from domain (domainid=<BIZ9902>)
    010332.busiSvr!GWTDOMAIN.24457.1.0: LIBGWT_CAT:1130: INFO: Disconnected from domain (domainid=<BIZ9902>)
    010335.busiSvr!GWTDOMAIN.24457.1.0: LIBGWT_CAT:1128: INFO: Connection accepted from domain (domainid=<BIZ9902>)
    010335.busiSvr!GWTDOMAIN.24457.1.0: LIBGWT_CAT:1130: INFO: Disconnected from domain (domainid=<BIZ9902>)
    the same config in an other domain,it works,but in this domain is not。

    Hi,
    This is my WTC Server configuration,
    <wtc-server>
        <name>WTCServer-0</name>
        <target>busiServer2-Server-1</target>
        <wtc-local-tux-dom>
          <name>testbusi2</name>
          <access-point>testbusi2</access-point>
          <access-point-id>testbusi2</access-point-id>
          <connection-policy>ON_STARTUP</connection-policy>
          <retry-interval>60</retry-interval>
          <max-retries>9223372036854775807</max-retries>
          <block-time>60</block-time>
          <nw-addr>//busisvr2:33553</nw-addr>
          <cmp-limit>2147483647</cmp-limit>
          <interoperate>No</interoperate>
          <keep-alive>0</keep-alive>
          <keep-alive-wait>0</keep-alive-wait>
        </wtc-local-tux-dom>
        <wtc-remote-tux-dom>
          <name>logina</name>
          <access-point>logina</access-point>
          <access-point-id>logina</access-point-id>
          <connection-policy>LOCAL</connection-policy>
          <acl-policy>LOCAL</acl-policy>
          <credential-policy>LOCAL</credential-policy>
          <local-access-point>testbusi2</local-access-point>
          <nw-addr>//loginsvra:33452</nw-addr>
          <federation-url></federation-url>
          <federation-name></federation-name>
          <cmp-limit>2147483647</cmp-limit>
          <min-encrypt-bits>0</min-encrypt-bits>
          <max-encrypt-bits>128</max-encrypt-bits>
          <app-key>TpUsrFile</app-key>
          <allow-anonymous>false</allow-anonymous>
          <default-app-key>-1</default-app-key>
          <keep-alive>0</keep-alive>
          <keep-alive-wait>0</keep-alive-wait>
        </wtc-remote-tux-dom>
        <wtc-import>
          <name>WTCImportedService-0</name>
          <resource-name>LOGINSVRA</resource-name>
          <local-access-point>testbusi2</local-access-point>
          <remote-access-point-list>logina</remote-access-point-list>
          <remote-name>logina</remote-name>
        </wtc-import>
      </wtc-server>
    Thanks a lot!

  • Help: OJSPC can not compile the JSP with struts tag

    Hi,
    I am trying to precompile the JSP page with EAR package but OJSPC can not parse the Struts tags.
    I always get oracle.jsp.parse.JspParseException:
    Error: org.apache.struts.taglib.html.MessgesTei while reading TLD /WEB-INF/tld/struts-html.tld
    My OC4J version is 10.1.3.2 and I did tried putting the struts-taglib.jar to /opt/oracle/product/app10g/j2ee/home/jsp/lib or /lib/taglib
    but still do not work.
    Can anyone tell me how to configure the OJSPC and let it support customerized taglibs?
    Thanks a lot!

    This is a new problem with jdk1.4 when compiling with tomcat.
    The solution is to ensure that any classes in WEB-INF/classes are in a package structure and the relevant jsp calls the same using the package name.
    best
    kev

  • Why att store can not help for unlocking the phone

    I followed the instructions to unlock our two old iphones after having iPhone 6. I received "unlock" message for one phone and did not receive the message for other phone. I am not sure if the phone has been unlocked. I went to AT&T store at Bridgewater Commons, NJ. and like to know if it Is unlocked. I was told that they can not tell and I need go to T mobile store to find out. I stopped by T mobile and found out the phone is still locked. So I went back to the AT&T store to try getting help. Because I already tried to unlock this phone three times before. There were 10 ATT people in the store and only two or three customers there. I asked one of employees to tell me what I need to do. I was told that they do not have the service to help unlocking and I need to call customer service. I said to her that you have 10 employees here and why can not help, I would like to speak to the store manager. The store manager Dawn was there and she told me the same thing. They can not help and I need to call the customer service. I kept asking but why you can not help. Finally she said that she can help me to call the customer. She called and the phone was not go through. Finally the employee asked me the phone number and I thought that maybe she will help me to unlock. Actually she just made another unlock request online for me and I need to wait the email in 24 hours and redo the unlock process later. I would to know why att store can not help the customers to unlock their old phones after getting the new phones. Why att keeps 10 employees in one store and can not help to solve customer problems.

    Xiyufu wrote:
    ... I would to know why att store can not help the customers to unlock their old phones after getting the new phones. Why att keeps 10 employees in one store and can not help to solve customer problems.
    AT&T keeps 10 employees at a store in case they need them to assist customers with purchasing items, or with items recently purchased.
    The Store representatives can't help you with the unlock portion because it requires access to systems they are not authorized to access. If store employees could access the unlock system (other than the very same portal you can access) then there would be a high risk that there would be inapropriate unlocks by employees for their friends & relatives.  AT&T's solution is to not allow them access to those systems, and have everyone go through the same process so that everyone gets the same treatment.  If you are having problems with your unlock requests through the portal, try contacting customer support or you can send a private message to the escalation team at ATT Customer Care and someone will get in touch with you in two to three business days to help you get a resolution to your problems.
    To check for their reply, click the little blue envelope. in the top bar near your username.

  • HT3625 i can not see the line in/built in input on the menu?do you know why?

    i can not see the line in/built in input on the menu?does anyone know why?
    i am trying to broadcast a live dj mixing but with the set up, i cant find the lin in input not even on the menue.
    any clues will be appreciated.

    see shots from '11 to '12 going forward.

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • Why i can not see the columns of "Tax Category" in transaction code FS00

    Dear Experts,
          Why i can not see the columns of "Tax Category" and "Posting without tax allowed" in tab of "Control Data"  transaction code FS00?
           How can i add the columns of "Tax Category" and "Posting without tax allowed"?
    Looking forward to your reply.
    Best Regards,
    Merry

    Hi,
    Go to transaction OBD4, and check whether the field "Tax category" is suppressed in group "Account control" for your GL account group.
    If not, then go to OB26 and check the field status for the same field for create, change activity.
    Regards,
    Gaurav

Maybe you are looking for

  • Shopping cart Issues

    Hi Its SRM 3.0 implemented ( Classic scenario). Now the problem is when i create shopping cart with more than 1 line item and in one line item i choose item from (Dell Catalogue) and i order the cart then separate PO is getting created for line item

  • The Strange Case of the Empty Folder

    For several days, I have been chasing gremlins, some of my own making. But this one is different. Suddenly, when choosing a filter that requires time to load the thumb preview, I found it very slow, but even more to the point, I lost control of the c

  • Can I build templtes in OBIEE 10g??

    Hi, Can Ibuild any templates without populating the data into the particular tables in rpd? I have a requirement to show the templates first before the data get populated. Is this possible in OBIEE?? Thanks Pavan

  • Setting RAID stripe size?

    Does anyone know how you can set the stripe size used for a RAID 5 setup? Even just knowing what the default stripe size used would be helpful. I have searched in the forums and user manual but I have not found the ability to do this anywhere. Thanks

  • I downloaded the new itunes and now it won't run.  Any suggestions?, I downloaded the new itunes and now it won't run.  Any suggestions?

    I downloaded the new itunes July 20 and now itunes will not open (or run).  I have downloaded a couple times and still it won't open.  Any suggestions?