JSP programming with Tag Libraries like Struts.

Hi friends,
I've been programming in JSP, JavaBeans for the last 1 year. However, with the current popularity of Tag Libraries & concepts like MVC, Struts am thinking of using these in JSPs. Even though I am not totally convinced about the real advantages like "No Java code" in JSP pages bcoz normally anyway most of the Java Code is done in the Javabean where my Business Logic is present.
If any of you have previously worked on Tag Libraries please would you advice me whether it's worth it and which books & material would be best for these.
Thanking you in advacnce.
Cheers
Sanjiv

Based on my experience with using JSP tags, I would definitely strongly recommend them. If nothing else, application/project specific custom tags go a long way in facilitating development-time productivity and code maintenance.
And ofcourse, with JSP tags you get the added advantage of the JSP container maintaining pools of instantiated tag objects so even the runtime performance is helped.
The book Web Development with Java Server Pages by Duane K. Fields, Mark A. Kolb from Manning Publications has helped me a lot about JSP tags.
Sun's tutorial http://java.sun.com/j2ee/tutorial/doc/JSPTags.html is also good.

Similar Messages

  • Frame work  problem along with tag libraries...

    Hi..
    I am new to jsp and am making a project in it, I am following MVC architecture but my problem is i am unable to understand all this concept of frameworks like struts, spring etc... i need some help with what they actually are..??
    also i am not using any tag libraries in my project i am using simple jsp files with minimum java coding at the front end and class files at the logic layer... and then the databse layer... i want to know is it better to use tag libraries and for using them will i have to follow any particular framework.. and are these tag libraries different for different frameworks..??... will i be missing something if i don't use tag libraires or don't follow a particular framework...???

    Those taglibs are particularly for the view layer of the MVC pattern. In a MCV framework you use taglibs to associate beans from the model/controller layer with the view layer. The framework will care about getting and setting the bean properties during the HTTP request-response cycle. With for example Sun JSF framework the relevant part of your JSP page would look like:
    <h:form>
        <h:inputText value="#{myBean.input}" />
        <h:commandButton value="submit" action="#{myBean.submit}" />
    </h:form>The JSF framework will generate this as something like<form name="someGeneratedName" method="post" action="currentPage.jsf">
        <input type="text" id="someGeneratedId" name="someGeneratedName" value="theInputValueFromMyBeanIfAny" />
        <input type="submit" id="someGeneratedId" name="someGeneratedId" value="submit" />
    </form>The MyBean class would look like something as:public class MyBean {
        private String input;
        public void submit() {
            System.out.println("The framework has already set the input value: " + input);
            // You can do with this whatever you want. Eg persisting in DB:
            DAOFactory.getInstance("dbname").getSomeDAO().save(new SomeDTO(input));
        public String getInput() {
            return input;
        public void setInput(String input) {
            this.input = input;
    }The average MVC framework also provides customizable Converters (convert between String for output and the desired Object type in model/controller layer) and Validators (required values, numeric values, date values, etc). Each MVC framework have its own taglibraries. For example JSF with the URI's http://java.sun.com/jsf/core and /html. Struts has another taglibs. Further on there is also the Java Standard Tag Library (JSTL) with the URI's http://java.sun.com/jsp/jstl/core, /functions and so on. Mixing of the taglibs is possible, but not always recommended. You should prefer the taglib of the framework used, but if the framework doesn't provide the tag with the desired functionality, then you can add another taglib, such as JSTL or, in case of JSF, Apache Tomahawk and JBoss Ajax4jsf.
    If you want to learn more about JSF, you may find this article useful: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html].

  • How to open mapquest from a jsp page with address loaded in struts?

    Can someone plz tell me about how to open mapquest from a jsp with address preloaded (i.e taken from jsp fields)? I am using struts.

    http://maps.google.com/maps?q=
    add the query to the end of it. Makes simple.

  • Problems running jsp files with tags on tomcat 4.0

    hi,
    i had some jsp1.1 stuff running on tomcat3.3.
    last week i moved to tomcat 4.0 , changed the tags to fit jsp1.2 and... everything is wrong now. while trying to run jsp with tags i get an error message (same for all files):
    ---->
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: (class: org/apache/jsp/djsp$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse; )V) Incompatible object argument for function call
    <-------
    the jsp files with no tags and servlets are running ok.
    I NEED YOUR HELP!!!

    cyclid,
    i have the same environment setup and the same troubles. after searching the forums, it seems that there are others with the same, if not similar issues, yet no solutions. if you find the solution to this one, could you please post it. i would really appreciate it since i have been on this one for several days with no success. i even tried the helloworld jsp/custom tag examples from a jsp profession book that i have and that won't work.
    Anyone out there,
    if you have any idea why this problem exists, any solutions, ideas would be appreciated.
    thank you,
    navesink

  • Distributing jsp program with JRE

    hi,
    i have written a some jsp files for a small project and now i would like
    to make a installation file which consists of my jsp files, including tomcat server and jre 1.5. As per license we cant distribute J2SDK package. So i am kept JRE instead of J2SDK. But tomcat server is not running, when i set my JAVA_HOME variable to JRE instead of J2SDK.
    Is there any way to make tomcat run with JRE or any other suggestions.
    thanx

    Thanx to the excellent work done. Its working with
    JRE. it seems you are the most active person in java
    forums. You have about 6500 posts in your account.:-) Thanks. But most of my posts are off topic. I don't think I am really the most active person around, perhaps the most gabby is all :-)
    i would like to assign you 10 duke dollars but
    t couldn't find any link where i can do it. please
    let me know how can i give you duke dollars. There should be a button next to my posts of a little green + sign. The image is broken though (yay Sun!) so you might not be able to see it (in FireFox it shows up as an invisible square, not sure what it shows in IE). Anyway, if you start with the date on one of my posts, and slowly move your mouse to the left you should find the link.
    if
    possible please give me your email ID or mail me at
    [email protected]
    Sorry, I don't like to trade email addresses across the forum. Mostly I like to keep the conversations public so everyone can benefit from them.
    >
    once again thanx for your help.
    bye
    craty

  • Problems with JSP and Tag Libraries in JBoss using Tomcat 5.5.9

    Hi,
    I am experiencing a really weird situation here. When running a deployed EJB3 ear application in a JBoss 4.0.3sp1 application using Tomcat service 5.5.9, Jasper is unable to compile any JSP file using Tag Libraries. To be more precise, when generating the Java source file (looking in the 'work' directory) everything in the file after the first occurance of a Tag Library usage is commented out (with "//"), causing the Java source to be invalid and outputs an error when accessing the page via a browser saying:
    "org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Syntax error, insert "}" to complete ClassBody
    Generated servlet error:
    Syntax error, insert "}" to complete Block
    Generated servlet error:
    Syntax error, insert "finally" to complete TryStatement
    Generated servlet error:
    Syntax error, insert "}" to complete MethodBody"
    etc... where every error row is a suggestion of steps to take to make the source file valid. (of course).
    The Tag Library jar files are located in the web application WEB-INF/lib folder as they should be. The descriptive Tag Library Definition files (tld:s) are located in the WEB-INF folder and every JSP file references these tld files directly via this path (WEB-INF/).
    Any hints are most appreciated!!
    Cheers!
    /Henrik

    Hi,
    I am experiencing a really weird situation here. When running a deployed EJB3 ear application in a JBoss 4.0.3sp1 application using Tomcat service 5.5.9, Jasper is unable to compile any JSP file using Tag Libraries. To be more precise, when generating the Java source file (looking in the 'work' directory) everything in the file after the first occurance of a Tag Library usage is commented out (with "//"), causing the Java source to be invalid and outputs an error when accessing the page via a browser saying:
    "org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Syntax error, insert "}" to complete ClassBody
    Generated servlet error:
    Syntax error, insert "}" to complete Block
    Generated servlet error:
    Syntax error, insert "finally" to complete TryStatement
    Generated servlet error:
    Syntax error, insert "}" to complete MethodBody"
    etc... where every error row is a suggestion of steps to take to make the source file valid. (of course).
    The Tag Library jar files are located in the web application WEB-INF/lib folder as they should be. The descriptive Tag Library Definition files (tld:s) are located in the WEB-INF folder and every JSP file references these tld files directly via this path (WEB-INF/).
    Any hints are most appreciated!!
    Cheers!
    /Henrik

  • Unable to add Custom JSP 1.2 Tag Library to Project

    I am trying to upgrade to a newer version of JDeveloper (10.1.3.0.4) but am having a problem with projects that use custom JSP tag libraries.
    After converting the project (.jpr) files to the new version, I double click and go to "JSP Tag Libraries." When I click on "Add" to add a new JSP Tag library, only JSP version 1.1 libraries are shown, I cannot choose any JSP 1.2 tag libraries.
    my TLD files are all JSP 1.2, so I am not quite sure why this isn't working in a newer JDeveloper after it has worked fine in the past. If I examine any JSP page that uses my taglibs, I see the following 2 kinds of error:
    the line:
    <%@ taglib uri="taglib.uri" prefix="mytag" %>
    is underlined in red and says "the tag library taglib.uri is referenced, but not installed"
    And for any lines that try to use the custom tag:
    <mytag:dosomething>
    there is a yellow/orange underline that says "no grammar available for namespace taglib.uri, contents of element dosomething cannot be validated"
    Note that I can add the taglib JAR file under Tools > Manage Libraries, but I cannot add the JSP tag library to my project. Is there some sort of compatibility issue when transferring project files from an old version of JDeveloper?
    Any help would be appreciated

    Yes any new project I create I can specify JSP 1.2 or 2.0 with the wizard and it works fine.
    But I don't want to re-create my entire project file again just to register my taglibs.
    Here's the JSP related section in web.xml:
    <!-- TagLibraries -->
    <taglib>
    <taglib-uri>taglib.uri</taglib-uri>
    <taglib-location>/WEB-INF/tlds/mytag.tld</taglib-location>
    </taglib>
    It's definately something in the project itself... but I am lost as to what it is.
    Edit: nvm I fixed it. It was the web.xml. I had to change the line:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    into
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    and it worked. Thanks.
    Message was edited by:
    user523020

  • How to create, deploy and test JSP program in Netweaver developer studio?

    Hi Experts,
       I am trying to integrate a JSP program with SAP function module (RFC) via XI using Java proxy. I am using Netweaver Developer studio for Java programming.
      Can somebody send me the steps or user guide on how to create, deploy and test JSP program in Netweaver developer studio?
      I will be greatful to you.
    Please help!
    Thanks
    Gopal

    Hi Gopal,
    Which version of NetWeaver are you using?
    Here the links for --
    SAP NetWeaver CE 7.1
    [Developing JSP Pages|http://help.sap.com/saphelp_nwce10/helpdata/en/f7/f7bc3d8af79633e10000000a11405a/frameset.htm]
    [Deploying Applications|http://help.sap.com/saphelp_nwce10/helpdata/en/3c/52413e7bcd561ee10000000a114084/frameset.htm]
    NetWeaver 7.0 (2004s) and 2004
    [Developing JSP Pages|http://help.sap.com/saphelp_nw70/helpdata/en/f7/f7bc3d8af79633e10000000a11405a/frameset.htm]
    [Deploying EARs|http://help.sap.com/saphelp_nw70/helpdata/en/f0/122abf61d4974eaea6b5d9c314cff1/frameset.htm]
    Testing is very straightforward - just access the web application by its alias,
    e.g. http://<host>:<post>/<context-root>/myJSP.jsp
    HTH!
    \-- Vladimir

  • How to deploy a jsp program?

    I make a jsp program with jdeveloper10G
    I want to deploy it to a server,it installed oracle9i
    how to do it ?
    thanks

    Check the JDeveloper online help for deployment instructions - there is a full chapter on delpoying J2EE applications.
    The Reviewer Guide also has a chapter about deploying - http://www.oracle.com/technology/products/jdev/collateral/papers/10g/reviewer/reviewerguide.html

  • Help with JSP Tag Libraries

    Could someone please help me with the setup process of tag libraries? I've looked on the Internet and found some instructions, but they are all for Tomcat. I'm using Jserv, and I'm not sure how to setup my environment to work with custom/tag libraries. Could someone help me by giving me some instructions or sending me to an article that could help me?
    Thanks in advance!
    -PV

    Hi pvongboupha
    The best source for getting to know how to set up tag libraries is the JSP specification. You can download this from :
    http://java.sun.com/products/jsp/download.html
    See the chapter on Tag libraries. Any J2EE compliant server will conform to these rules.
    You can also see a chapter from Core Servlets & JSP by Marty Hall. This chapter is on Tag Libraries
    http://developer.java.sun.com/developer/Books/javaserverpages/cservletsjsp/
    Keep me posted on your progress.
    Good Luck!
    Eshwar R
    Developer Technical Support
    Sun microsystems
    http://www.sun.com/developers/support

  • How to prepare Custom tag with scope as  session  like Struts tag

    Hi
    All Struts tags having the feature of Automatic Scoping.
    Automatic Scoping: Struts tags check all contexts (namely page, request, session, application) and use the first instance found. Developers do not have to explicitly "retrieve" objects from a particular scope. They may, however, specify a context.
    same as like struts tag I want to preapre 'select custom tag'.which will retrieve its previous selected value automatically and display.And one important thing is I dont want to set the selected value of custom tag in session expicitly.I mean the custom tag it self should take care to set the session vale and retrieve the sesion value and display like Struts tag . For struts select tag we wont set any selected value in session though it will retrieve the previous value and display when scope of form = session
    regards
    jagan

    Hi
    All Struts tags having the feature of Automatic Scoping.
    Automatic Scoping: Struts tags check all contexts (namely page, request, session, application) and use the first instance found. Developers do not have to explicitly "retrieve" objects from a particular scope. They may, however, specify a context.
    same as like struts tag I want to preapre 'select custom tag'.which will retrieve its previous selected value automatically and display.And one important thing is I dont want to set the selected value of custom tag in session expicitly.I mean the custom tag it self should take care to set the session vale and retrieve the sesion value and display like Struts tag . For struts select tag we wont set any selected value in session though it will retrieve the previous value and display when scope of form = session
    regards
    jagan

  • JSP, Tag Libraries, Tomcat 4.1

    Due to an internal decision to place all content within certain categories: for example, we would like all our JSP pages to be in one directory, our TLD files to be in one directory, our images to be in one directory, etc. I would like to be able to set up two Tomcat Contexts (sites). One for /jsp and one for /tld. Is it possible to load the tld and tag class handler in one context and the jsp in another context and call the tag handler even though they are in separate sites? The first reaction someone might have is to just place everything in separate directories under the same context. Well, we do not want to do this because we do not want to use relative URLs. Our testing systems are Window 2000 so it is not a big deal. But our production server is OPENVMS. We want to use aliases for everything. /jsp for JSP pages. /tld for tag libraries, etc. Any thoughts?
    Thank you.

    Yes, this is a follow-up question to my initial question. However, I was trying to take a different approach after reading the inital comments and doing lots and lots of stupid little tests.
    I have tried all three methods of using the mappings that you have suggested. And in every case, I cannot get the JSP page to recognize the location of the TLD from the URI unless I use a context in Tomcat or a relative URL for the URI declaration in the JSP page. So I must be doing something wrong. I am going to post what information is not business sensitive and see if you can find an error.
    However, with that being said. We have a specific alias/directory structure we must maintain on the OPEN VMS system. In order to do so, so we can maintain a programmer and a "live" environment we must be able to use these aliases for all our file types. Don't get me wrong, we can use these alias' within the same context of Tomcat, but we must make sure that we can still access or JSP, TLD, and servlets using some sort of alias and NOT using relative URLs. All the dynamic stuff in Tomcat while trying to use Apache for the static content. On OPENVMS, there are things called logicals which can basically be set up as an alias. The logical can point to a specific value, a directory, a group of directories, or even a specific file name or command procedure or anything else you can logically use it for. We have to use these logicals in order to set up our site. These logicals are part of the system security of OPENVMS and this helps us determine which enviroment we need to use for which user.
    Hope this gives a bit more informed information.
    Currently, the tld and .class file are packaged into a webMenuTag.jar file in the "vsjsp" site.
    There are no references to the TLD or Tag Library in the web.xml file. So here is the tld file and also the snippet of the jsp file. The class file is called webMenuTagHandler.class.
    Thank you.
    TLD:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>webMenu</short-name>
    <uri>webMenuTag</uri>
    <description>
    Tag library to print the menu on WWW site pages
    </description>
    <tag>
    <name>webMenuTagHandler</name>
    <tag-class>com.xxxxx.webMenuTagHandler</tag-class>
    <description>Create menu and framework for web pages.</description>
    <attribute>
         <name>menuStyle</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>docTitle</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>pageHeading</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>navBarName</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>navBarLocation</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>htmLocation</name>
         <required>true</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>
    JSP:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="com.xxxxx.*,java.io.*,java.util.*,javax.servlet.*,javax.servlet.http.*,javax.servlet.jsp.*,org.apache.jasper.runtime.*"%>
    <%@ taglib uri="webMenuTag" prefix="webMenu" %>
    <html>
    <webMenu:webMenuTagHandler docTitle="Test Page" htmLocation="top" navBarName="HOME"/>
    ... content...
    </html>

  • How to handle external tag-libraries in JSPs using Oracle Stellent?

    I have already started the execution of JSP engine in Oracle Stellent, and also could run the sample Tomcat web-application and basic JSPs in Oracle UCM. What I need to do, is to customize my JSP to be able to show/hide some content using Oracle Stellent.
    I have a JSP, from web application, which is using some some tag-libraries from spring, etc.
    +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>+
    +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>+
    +<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>+
    +<%@ taglib prefix="security"+
    uri="http://www.springframework.org/security/tags"%>
    +<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>+
    +<%@ page import = "idcserver.*" %>+
    +<jsp:useBean id="sb" class="idcserver.ServerBean" />+
    +<%+
    sb.init(request);
    ....and so on
    I have checked in the above file, and when trying to preview in Oracle UCM, I get the following error:
    Content Server Request Failed
    +!csStellentTomcatErrorWhileProcessing,/idca/groups/jsp/documents/pix/11.jspThe absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application+
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(Unknown Source)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseDirective(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseElements(Unknown Source)
    at org.apache.jasper.compiler.Parser.parse(Unknown Source)
    at org.apache.jasper.compiler.ParserController.doParse(Unknown Source)
    at org.apache.jasper.compiler.ParserController.parse(Unknown Source)
    at org.apache.jasper.compiler.Compiler.generateJava(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.JspCompilationContext.compile(Unknown Source)
    at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
    at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
    at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(Unknown Source)
    at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Unknown Source)
    at tomcatprovider.StellentProtocol$StellentWorkThread.runIt(StellentProtocol.java:304)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    Edited by: 980473 on Jan 8, 2013 2:01 AM

    Hi ,
    Check if you have jstil.jar in WEB-INF/lib location , if missing manually add jstl.jar into WEB-INF/lib restart UCM Managed server .
    Hope this helps.
    Thanks,
    Srinath

  • Jsp tag libraries

    hi All,
    I am receiving an error when i come to start a jsp page, it returns null pointer exception. so when I checked it is coming from the JSP tag Libraries. instead of the jsp libraries there is a null pointer exception . so any clue how to fix that ?
    thanks
    Amgad

    Yes, marika, download the Jakarta JSTL implementation, unzip it, and put it everything in its /lib directory in your WEB-INF/lib. Then you can refer to the taglib in your JSPs like this:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>That's all you need to do. No <taglib> in your web.xml or anything else. - MOD

  • Problem using JSTL tag libraries with OC4J 9.0.3

    Hi
    I'm using the JSTL tag libraries with OC4J 9.0.3. I'm using JDeveloper10.1.2. I put the fmt.tld and c.tld in the WEB-INF directory and I'm adding the jstl.jar and standard.jar library to the EAR file. Both tlds have:
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    And OC4J 9.0.3 is compatible with tlib version 1.0 and jsp version 1.2. When I run the web app I get:
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt"%>
    Error: oracle.xml.parser.v2.XMLParseException ( /dataSource.jsp ):
    line #:1 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:2 column #:18 : Attribute 'xmlns:xsi' used but not declared.
    line #:3 column #:19 : Attribute 'xmlns:acme' used but not declared.
    line #:4 column #:27 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:7 column #:16 : Attribute 'version' used but not declared.
    line #:14 column #:15 : Invalid element 'tag-class' in content of 'tag', expected elements '[tagclass]'.
    line #:14 column #:15 : Element 'tag-class' used but not declared.
    line #:15 column #:18 : Invalid element 'body-content' in content of 'tag', expected elements '[tagclass]'.
    line #:15 column #:18 : Element 'body-content' used but not declared.
    line #:16 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:18 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:18 column #:12 : Element 'type' used but not declared.
    line #:22 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:24 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:24 column #:12 : Element 'type' used but not declared.
    line #:28 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:30 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:30 column #:12 : Element 'type' used but not declared.
    line #:34 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:36 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    Any ideas?

    Hi
    Thanks for the reply.
    I tried it and I get the same error:
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    Error: oracle.xml.parser.v2.XMLParseException ( /dataSource.jsp ):
    line #:1 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:2 column #:18 : Attribute 'xmlns:xsi' used but not declared.
    line #:3 column #:19 : Attribute 'xmlns:acme' used but not declared.
    line #:4 column #:27 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:7 column #:16 : Attribute 'version' used but not declared.
    line #:14 column #:15 : Invalid element 'tag-class' in content of 'tag', expected elements '[tagclass]'.
    line #:14 column #:15 : Element 'tag-class' used but not declared.
    line #:15 column #:18 : Invalid element 'body-content' in content of 'tag', expected elements '[tagclass]'.
    line #:15 column #:18 : Element 'body-content' used but not declared.
    line #:16 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:18 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:18 column #:12 : Element 'type' used but not declared.
    line #:22 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:24 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:24 column #:12 : Element 'type' used but not declared.
    line #:28 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:30 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:30 column #:12 : Element 'type' used but not declared.
    line #:34 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:36 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.

Maybe you are looking for

  • Account issues...

    So here's one you have all probably heard a few times already... I had an AOL account and bought a bunch of songs from iTunes with it. I bought a new Mac and via external hdd moved all these songs/videos over to it, authorised it everything good so f

  • 1099MISC output file for IRS

    Hi: I need quick clarification on 1099MISC output file (DMEE format tree: IDWTFILE_US_1099). In the T record, it has SAP contact information as vendor at the end the record. I wanted to check if we need to change the DMEE file (Format Tree: IDWTFILE_

  • AI acquire waveform

    For my project, I am using a last year student's VI as reference, but when loading it up, it asks for a "AI Acquire Waveform.VI" which I cannot be found, and there is no "data acquisition" tab under which it is normally found according to the manual,

  • Can not get my personas to work with ff 32.03

    When I want to change my personas it will not work. I have loved this add on for a long time. This has been a problem for a long time now and I want it to work for me. Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • Highlights/clarity bug

    Hi there, after playing a while with LR 4 settings i've discovered a pattern with horizontal lines, when pushing the highlights and clarity sliders highlights -100 clarity +100 same thing happens in CS6 Adobe Camera RAW its definatly a bug and i'd li