Tag Libs in 7.1

Hi Experts,
                 I am trying to migrate a web appication from tomcat to SAP WAS 7.1 . I am facing some problems as follows:
1. When I create a tld file by right clicking on web.xml an entry is made to web.xml as
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:jsp="http://java.sun.com/xml/ns/javaee/jsp" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd ">
  <display-name>AprilfoolTest</display-name>
  <jsp-config>
    <jsp:taglib>
      <jsp:taglib-uri>/WEB-INF/My.tld</jsp:taglib-uri>
      <jsp:taglib-location>/WEB-INF/My.tld</jsp:taglib-location>
    </jsp:taglib>
  </jsp-config>
</web-app>
But I get error at <jsp:taglib> tab :
cvc-complex-type.2.4.a: Invalid content was found starting with element 'jsp:taglib'. One of '{"http://java.sun.com/xml/ns/javaee":taglib, "http://java.sun.com/xml/ns/javaee":jsp-property-group}' is expected.
When I replace <jsp:taglib> with only <taglib> build time error goes away.
2. Are there any changes that have occurred in WAS with respect to taglibs from version 6.4/7.0 to 7.1. Any document which quotes these changes.
Please help me, don't worry about the points I will give it to right answer.
cheers
jayant
Am I addressing this query to wrong forum. If anybody is aware of any solution to my question then plz reply

Am I addressing this question to wrong forum. Please reply if anybody knows the solution.

Similar Messages

  • How to use custome tag lib in the JSP page?

    How to use custome tag lib in the JSP page?...with JDeveloper

    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/

  • How to use JSP custom tag lib in PAR file?

    Hi All,
    I am trying to customize mastheaderpar file. For that I have downloaded relevant par file and making the changes accordingly.
    As part of the changes I would require to use JSP custom tag library in my par file.
    I have the TLD file and relevant classes in the jar file. I would like to know where and what kind of modifications have to be done to use the jsp custom tag library.
    I tried modifying some things in portalapp.xml but was not successful.
    Please help me on how to proceed with this? It would be great if you can provide the xml entry to use this tag library
    Thanks
    Santhosh

    Hi Johny,
    Thanks for the reply. Actually I am able to change colors etc. with out any problem.
    My requirement is to use XMLTaglib in mastheader par file. This tag lib is from apache tomcat. I have the relevant TLD and class files. I copied TLD file into taglib dir of portal-inf and class file in src api.
    And I have added the following line in portalapp.xml under component-profile section of default
    <property name="tlxtag" value="/SERVICE/Newmastheader/taglib/taglibs-xtags.tld">
    Is this the right way to use tag lib? Actually before adding this line I used to get the error saying "Error parsing taglib", but now the error does not occur and I am getting new error. This is an exception in one of the taglib classes.
    Could any one provide me some inputs on how to check this error?
    Thanks
    Santhosh

  • Problem in using JSTL tag libs

    Hi there,
    I am trying to use JSTL tag libs in my web app, but i get the following error message:
    org.apache.jasper.JasperException: /index.jsp(22,0) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
    as it might be clear i am using Tomcat and line 22 of the code for index.jsp is:
    <c:if test="${user.role > 0 }">
    Please help my identify whats wrong in there. I suspect that it is because of my web.xml file, but i am not sure.
    thanx in advance,
    Capitan Haddock

    try to use gt instead of >

  • I can't use JSP tags lib in IWS6

    I was trying to use JSP tags lib but the web server doesn't find the *.tld file. Some messages are shown:
    25/Jun/2002:19:40:28] info ( 5604): JSP: JSP1x compiler threw exception
    org.apache.jasper.compiler.CompileException: /local/iplanet/docs/menu_principal.jsp(1,0) Unable to open taglibrary http://apache.org/taglibs/dbtags : Could not locate TLD http://apache.org/taglibs/dbtags
    at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:707)
    at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
    at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    [25/Jun/2002:19:40:28] warning ( 5604): Internal error: Failed to get GenericServlet. (uri=/menu_principal.jsp,SCRIPT_NAME=/menu_principal.jsp)
    I have some doubts about how to work with JSP Tags in iws6. What should I do to get this work?
    The tag lib is gotten from jakarta project and I'd like to know which steps i have to follow.
    Thank you very much

    Hi,
    What you have to do is this:
    - Include the jar file in the WEB-INF/lib
    - Include the tld file in a directory under WEB-INF, for example tlds
    - Create a mapping in the deployment descriptor (web.xml), to make the taglib available, something like this:
    <taglib>
    <taglib-uri>http://jakarta.apache.org/taglibs/io</taglib-uri>
    <taglib-location>/WEB-INF/tlds/io.tld</taglib-location>
    </taglib>
    Then in the jsp, you have to invoke it like this:
    <%@ taglib uri="http://jakarta.apache.org/taglibs/io" prefix="io" %>
    <io:http url="http://mustang:4004/NASApp/fortune/fortune" action="GET"/>
    Hope this helps
    Juan

  • Where  tag libs related to JavaHelp can be downloaded?

    Where the JSP tag libs related to JavaHelp can be downloaded? .It was not available as part of JH2.0 downloadable.

    Thanks Ingo! I realized (while following your link) that my access profile was not containing enough roles to download the packages from the Marketplace. So, I have downloaded the installation package and installed the BusinessObjects SAP Integration Kit XI3.1. However, during the installation process I received the following error message (sorry if it is alredy the n-th time it is mentioned in this forum): "Error 1904. Module C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\CrystalExtension.dll failed to register. HRESULT -2147024769. Contact your support personnlel." And the buttons - Abort, Retry, Ignore. I have chosen Ignore and the installation has finished "successfully".
    But when I start Crystal Reports now, and I am trying to use the Open command on the SAP menu, Crystal Reports shuts down (and Windows starts looking for a "solution of the problem" - without any result, of course).
    Could this Crystal Reports shutdown be the result of that .dll registration error during the installation, or it is other known issue of the Integration Kit? Thanks a lot for any idea.

  • AutoCapitalized in dsp tag lib

    Hi,
    I have a requirement, to make a text field auto capitalization to be disabled using the dsp tag lib, in normal html input type we have autocapitalize attribute. How to do this using dsp tag lib.
    Thanks,

    I think you may check with allcaps="true|false" or autocaps="true|false" in the dsp input tag. Both of these are supported attributes for dsp input and textarea tags. You can find the list of all supported attributes of any dsp tag in dspjspTaglib1_0.tld
    Hope it helps. Thanks.

  • Upgrade from tomcat to OC4J 10.1.3 jsp parser exception in tag lib

    i have problem in oc4j jsp parser
    but it work ok on tomcat as tomcat using jasper-compiler.jar
    when run on oc4j it give me the exception
    OracleJSP: oracle.jsp.parse.JspParseException: /jsp/layouts/elec/pageheading.jsp: Line # 3, <aa:h1 wrapped="true" labelKey="${heading1BundleKey}"/>
    Error: Errors parsing tag :h1 oracle.jsp.parse.JspParseException: /jsp/layouts/elec/pageheading.jsp: Line # 3, <aa:h1 wrapped="true" labelKey="${heading1BundleKey}"/>
    Error: oracle.jsp.provider.JspCompileException: <H3>Errors compiling:E:\oc4j\j2ee\home\application-deployments\default\sc40\persistence\_tagfiles\_oracle\_jsp\_tag\_aacom\_h1_2e_tag.java</H3><TABLE BORDER=1 WIDTH=100%><TR><TH ALIGN=CENTER>Line #</TH><TH ALIGN=CENTER>Error</TH></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>191</TD><TD> non-static variable _jspFragWriter cannot be referenced from a static context
    _jspFragWriter = null;
    -------------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    and i have problem in web.xml
    as i using jsp servlet in jasper-compiler.jar in tomcat package
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    ------------------------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    i try to use this package in oc4j but i can not
    i put this servlet in global-web-application.xml instead of
    <servlet>
         <servlet-name>jsp</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    ------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    to make oc4j depend on tomcat parser it give me
    classnotfound mean that (oc4j can not found package) this printed in global-application.log
    i make
    <library path="E:/oc4j/j2ee/home/applib/jasper-compiler.jar"/>
    and still have problem
    any 1 have idea using tomcat parser in oc4j
    or have idea solve this problem
    thanx
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    OC4J 10.1.3 does support JSP 2.0, as well as custom tag libraries (including JSTL 1.1).
    There are two approaches to configuring a custom tag library for use in JSPs served by OC4J:
    1) Package the JSTL or custom tag library with your application:
    i. include the necessary JAR file in your web app's /WEB-INF/lib folder
    ii. include the relevant Tag Library Descriptor (TLD) file(s) in your web app's /WEB-INF folder
    iii. for each TLD, add a <tag-lib> element to web.xml referencing the TLD file's location and taglib URI
    2) Place the JSTL or custom tag library in an Application Server instance-level directory ($ORACLE_HOME/j2ee/home/jsp/lib/taglib) to make them available to multiple applications (in all OC4Js installed in the Oracle Home)
    For example, if you'd like to use the JSTL 1.1 Core and Internationalization Tag Libraries, do one of the following:
    1) Package the JSTL or custom tag library with your application:
    i. Obtain an implementation of JSTL (e.g. Jakarta Taglibs) and include the standard.jar and jstl.jar files in your web module's /WEB-INF/lib directory
    ii. From the JSTL implementation you're using, also copy the c.tld and fmt.tld Tag Library Descriptors to your web module's /WEB-INF/lib directory
    iii. Add the following elements to your web module's web.xml file:
    <jsp-config>
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
    </taglib>
    </jsp-config>
    OR
    2) Copy the standard.jar and jstl.jar libraries from the JSTL implementation you're using to $ORACLE_HOME/j2ee/home/jsp/lib/taglib

  • WML help for  Struts-wml tag lib

    I tried using the tag lib of struts but I didn't find wml:card tag..........

    thank you Shay Shmeltzer
    i added the tld to my jdev.
    but now the property inspector of any component of this tag lib is empty.
    i can see all components in the component palette.
    another thing can you help me to use struts-layout libraries?
    i see in the code
    <layout:form action="/login" styleClass="FORM" key="form1.title" reqCode="login" focus="login">
    i can't find were are styleClass (css)?
    i looked for in all the project and in libraries?
    thank you very much..
    Talel...;

  • JSP Tag libs with struts Urgent

    Hi
    Has anyone implemanted jsp tag libs with the help of struts-bean.tld,struts-html.tld etc,
    I need to use these , but I am not clear with how the page retrives the key values
    example:
    table width="400" cellpadding="10" cellspacing="0" border="0" bgcolor="#cccccc">
    <tr>
    <td valign="top" colspan="2">
    <bean:message key="logon.welcome"/>
    <html:errors/>
    </td>
    </tr>
    <tr>
    <bean:message key="logon.welcome"/>----?
    I don't no how the"message bean" gets its key value dynamically? how it retrieves from its Application resource file? any idea?
    Also has anyone implemanted jsp templates if so kindly guide me thru these
    thanks!

    Hi..
    I am myself involved in implementing custom taglibs extending struts functionality. This can be done by extending the struts base classes and tag handlers. If you're still working on this topic, please let me know and we might share experiences.
    Best regards,.
    - Bj�rn Syse, [email protected]
    Hi
    Has anyone implemanted jsp tag libs with the help of
    struts-bean.tld,struts-html.tld etc,
    I need to use these , but I am not clear with how the
    page retrives the key values
    example:
    table width="400" cellpadding="10" cellspacing="0"
    border="0" bgcolor="#cccccc">
    <tr>
    <td valign="top" colspan="2">
    <bean:message key="logon.welcome"/>
    <html:errors/>
    </td>
    </tr>
    <tr>
    <bean:message key="logon.welcome"/>----?
    I don't no how the"message bean" gets its key value
    dynamically? how it retrieves from its Application
    resource file? any idea?
    Also has anyone implemanted jsp templates if so
    kindly guide me thru these
    thanks!

  • Tag libs examples

    I am new to Plumtree development. found this link to the tag libs..
    http://edocs.bea.com/alui/devdoc/docs60/References/API_Libraries/TagDocs/index.html
    I just started developing few examples.. would be great if there are any out there that i can look at...
    Thanks

    I have a few examples up on my [url http://dev2dev.bea.com/blog/bucchere/archive/2006/08/a_slick_alterna_1.html]blog.
    Chris Bucchere | bdg | [email protected] | http://www.thebdgway.com

  • Found tag library, no jsp-tag-lib manifest entry

    I get the following error when trying to reference my iPlanet tag libraries:
              <Mar 16, 2001 7:05:00 AM MST> <Error> <HTTP>
              <[WebAppServletContext(203409,java)
              ] Servlet failed with Exception
              weblogic.servlet.jsp.JspException: (line -1): Found tag library, no
              jsp-tag-lib
              manifest entry
              Any ideas? I've attached my taglib jar file.
              Thanks,
              Matt
              [iplanet-tags.jar]
              

    Yes sorry, you're correct. The uri I mentioned is just 1.0.
    Do you have the "Oracle WebLogic Web App Extension" Facet for your web project? If not, try adding that and making sure that there is a weblogic.xml file created in the WEB-INF dir. The weblogic.xml file allows you to deploy usig a shared lib for JSTL. It should contain a library-ref element something like the following, with a version of 1.1.
    <wls:library-ref>
    <wls:library-name>jstl</wls:library-name>
    <wls:specification-version>1.1</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>

  • Tag lib

    what is tag lib

    A Tag Library Descriptor (TLD) file is an XML document that
    describes a tag library, which contains one or more tag extensions. The JSP taglib
    directive must be used to import the tag library's tags in each JSP that wishes to use any of
    them.
    For more on this refer http://developer.java.sun.com/developer/Books/projsp/Chap12.pdf

  • JPS thread issues and Tag Libs

    I was curious as to the thread issues with using Tag Libs inside of JPS'.
    I realize that many threads can access an individual JSP and that a JSP (at least in tomcat) uses the same instance of its tag over and over again.
    But I have the following questions:
    Are there thread race issues with using tags?
    If there are thread race issues wouldn't it be a bad idea to use the setter methods on a tag or have any instance level variables in a tag?
    Is the access to the tag synchronized in the creation of the JSP/Servlet?
    Thanks for your time,
    Nate

    I actually decompiled the JSP that was created by tomcat and it (the complied JSP) is actually using a factory to get an instance of a tag. When the complied JSP is done with the Tag instance it calls the release() method on the Tag and then the factory is allowed to reuse that Tag.
    So, basically when Tags are used like they are supposed to be, there are no threading/race issues.
    I have downloaded the Tag specs, but haven't been able to read them yet. After I do get the chance to read them, I will try and post my findings.

  • Dynamic Attribute Class in Tag Lib TEI?

    Hi All
    I have had pretty good luck implementing a few tag libs.. my only question is..
    Can you dynamically assign the class type of an attribute in the TEI of a Tag? Is there a way to get at the TEI of a tag at runtime?
    As an example of what i'm asking to do, i would like to be able to return the variable "item" in a proper type so as to not have to cast it from a java.lang.object in the jsp script. (see the below code)
    public class myTEI extends TagExtraInfo {
    public VariableInfo[] getVariableInfo(TagData data) {
    return new VariableInfo[] {
    new VariableInfo("index", "java.lang.Integer", true, VariableInfo.NESTED),
    new VariableInfo("item", "java.lang.Object", true, VariableInfo.NESTED)
    Thanks for the help,
    Rick

    I propose you to pass object type as your tag attribute:
    <your:tag ... type="your.type.YourType" />
    And TEI class looks like:
    new VariableInfo("item", data.getAttributeString("type"), true, VariableInfo.NESTED)

  • Custom tag lib issue with task flow in portal

    Dear Experts,
    I am facing an issue and need your guidance
    I have a ADF task flow which is consumed in portal. My task flow uses a custom tag library.
    When I run the task flow on portal I am facing following issue:
    Caused by: oracle.jsp.parse.JspParseException:
    Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
      at oracle.jsp.parse.JspParseTagXMLTextContainer.processAttributeForELFunctions(JspParseTagXMLTextContainer.java:118)
      at oracle.jsp.parse.JspParseTagXMLTextContainer.processAttributeValue(JspParseTagXMLTextContainer.java:103)
      at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1565)
      at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
      at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:886)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
      at oracle.jsp.parse.OpenJspTagHandler.parseXMLSrcBody(OpenJspTagHandler.java:782)
      at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
      at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
      at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
      at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
      at oracle.jsp.parse.OpenJspTagHandler.parseXMLSrcBody(OpenJspTagHandler.java:782)
      at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
      at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
      at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
      at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
      at oracle.jsp.parse.OpenJspTagHandler.parseXMLSrcBody(OpenJspTagHandler.java:782)
      at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
      at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
      at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
      at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
      at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
      at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
      at oracle.jsp.parse.JspParseTagFile.parseXMLSrc(JspParseTagFile.java:341)
      at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:256)
      at oracle.jsp.parse.OracleJsp2Java.transformImpl(OracleJsp2Java.java:439)
      at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:593)
      at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:691)
      at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:490)
      at oracle.jsp.runtimev2.JspPageCompiler.parseAndGetTreeNode(JspPageCompiler.java:457)
      at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:624)
      at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:645)
      ... 120 more
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1

    Hi,
    Make sure you have the JSTL tag library selected in you deployment plan. Go to Project Properties->Deployments->your_deployment_profile->WWB-INF/Lib Contributors and check JSTL.
    Let me know if this worked for you!
    Regards,
    Mihai

Maybe you are looking for

  • BW Interview Questions 2

    Hi, Here are some BW interview questions. Make sure you have prepared for all the q's before going for an interview. 1) Please describe your experience with BEx (Business Explorer) A) Rate your level of experience with BEx and the rationale for you’r

  • ITunes stopped recognizing my iPhone after upgrading to Leopard.

    I recently upgraded from Tiger to Leopard, and iTunes (8.0.2) stopped recognizing my iPhone while iPhoto still works with my iPhone (I was able to download photos from my phone using iPhoto). What's going on? It's crazy! When iPhoto recognizes my iPh

  • Can I delete extensions that do not load or am I looking for trouble

    After running EtreCheck I noticed that many extensions do not load.  So my question is: Can I delete extensions that do not load or am I looking for trouble? Here is the EtreCheck report: Problem description: slow with Yosemite EtreCheck version: 2.1

  • IOS 8 Photos App losing metadata after editing photo

    Since the iOS 8 update, every time I edit a photo with new editing Tools or with the new 3rd party app editing fonction I lose the photos Metadata's like location, date & time or other exif informations. I realize that they are missing once I open th

  • Cannot display all the columns

    Hi I am having this weird problem , i gave some selected columns in my select query and data displayed with the given conditions perfectly then i added some more columns , around 30 coloumns to my select query(initially i just tested by selecting 6-1