How to invoke a funtion on a custom tag value?

Hello,
I have a custom tag used in my code.
It is used as follows:
<b:testtag name="Title"/>
This outputs a String value.
This is used in my HTML as follows:
<b:testtag name="Title"/>
This part of the code works fine. However i now want to invoke some funtion on the String outputted before actually outputing it. To be more specific, i need to convert the string to uppercase before outputting it.
So my question is, Is there anyway to directly invoke the String.toUpperCase method on the tag output?
If not, another way of achieving this is to store the value returned by the custom tag into a java String variable in a scriplet code, and invoke the String.toUpperCase method.
Any idea how to go about with this? Particularly, i would like to know if it is possible to store the value outputted by the tag into a java variable in a scriplet code?
If not is there any other way of converting the tag output value to uppercase?
Please help!
Thanks in advance

Solution one: Change your tag so it outputs in uppercase
Solution two: use a tag from a String taglib and put that tag around your tag
example taglib:
http://jakarta.apache.org/taglibs/doc/string-doc/intro.html
example bit of code
<a href='some test url here'><str:upperCase><b:testtag name="Title"/></str:upperCase></a>

Similar Messages

  • How to add a validator to a custom tag

    Hello,
    I would like to know how to add a validator to my custom tag as an attribute.
    <mytags:custom validator=???/>
    Thanks.
    Sebastien

    Are you wanting to use one of the JSF validators or a home brewed one?

  • Accessing custom tag value in scripting code

    Hi All,
    How can i access my custom tag value in scripting code?
    For example, assuming my tag is <myTag:display value="myValue"/>, how can i System.out this value in scripting code? I wanna do <% System.out.prinln(xxx); %> where xxx should be my custom tag value.
    Thanks in advance,
    Leo.

    I understand that you want to store "myValue" somewhere accesible by scripting. The more easy and portable way is to store that value in an attribute, for instance:
    <myTag:display value="myValue" var="myVar" scope="session"/>And in the custom tag code:
    // translate scope string to PageContext scope values
    pageContext.setAttribute(var, value, scope);This ensures compatibility with Java Standard TagLibrary and EL:
    <c:out value="${myVar}"/>And finally, scripting:
    <% Object value = pageContext.findAttribute(var); %>

  • How to use a variable of jsp custom tag in my java code?

    hi folks,
    i got a folderList tag like this:
    ArrayList list = new ArrayList(20);
    %>
    <foo:folderList path="${attributes.newsPath}" var="year" contentType="folder">
    <%
              list.add(${year.contentEntryName});   // of course, this doesn't work
    %>
    </foo:folderList>I think, its clear what I want to do. I am just wondering how I can use my Variable "year" in the Java code between <% %>...

    <% list.add(year.getContentEntryName()); %>
    You have to have defined in the custom tag that "var" relates to a scripting variable that you want defined.
    <tag>
      <variable>
        <name-given>var</name-given>
        <variable-class>myPackage.myClass</variable-class>
        <declare>true</declare>
        <scope>NESTED</scope>
      </variable>
    </tag> Cheers,
    evnafets

  • Challenge: how to login a user from a custom Tag?

    Hey. The question is in the title.
    This is the doEndTag() function inside a TagSupport implentation class :
    public int doEndTag() {
      String j_username = pageContext.getRequest().getParameter("j_username");
      String j_password = pageContext.getRequest().getParameter("j_password");
      // HOW TO USE THESE 2 STRINGS FOR LOGING THE USER?
      return EVAL_PAGE;
    }I can do basic authenticaton (I'm using tomcat btw), it's fine but I need to do this because the client is a Flash and not an html page. Any help is welcome, thanks!

    maybe spit out some javascript which sets hidden variables j_username and j_password on the page and submits to /j_security_check?
    The important thing is that the special URL /j_security_check is what handles the authentication, and that's handled by the Web Container. Unless you can exactly duplicate what the Web Container is doing in your custom tag, it's probably best to stick with the standard authentication, or roll your own.
    Brian

  • How to invoke updateDisplayList method in the custom layout?

    I've a group of buttons that get placed in a SkinnableDataContainer with the help of a custom layout class as follows:
    <s:SkinnableDataContainer id="buttonsContainer"
        dataProvider="{appModel.myButtons}"
        width="{DIAPLAY_WIDTH}" height="{BUTTON_HEIGHT+4}"
        skinClass="view.skins.ContainerSkin"
        itemRenderer="view.renderer.MyButtonRenderer"
        click="startPointAreaClickHandler(event)"
        mouseMove="areaMouseMoveHandler(event)"
        mouseUp="areaMouseUpHandler(event)"
        rollOut="areaMouseOutHandler(event)"
        >
        <s:layout>
            <layout:ButtonsLayout />
        </s:layout>
    </s:SkinnableDataContainer>
    myButtons is an ArrayCollection of VOs and VO has x and y coordinates as fields. Values of x and y determine the location of the button. When I add an object to myButtons, the application behaves as expected (adds a button in buttonsContainer at specified x and y coordinate). But when I just change values of x and y of an existing button, the buttons don't get repositioned. I have tried calling invalidateDisplayList on buttonsContainer but that doesn't trigger updateDisplayList method in the custom layout ButtonsLayout.
    How do I trigger updateDisplayList method in the custom layout so that the button positions get updated whenever an event changes values of x and y of a button?

    Hi Balus,
    This is helpful but one problem i faced with this is, when i overided the custom message in the property file,
    javax.faces.component.UIInput.REQUIRED =Value is required
    but for every UIInput component the same message is coming, but if i am having more than one component on the page forexample: UserName , Email, Password etc...
    i need to display messages like
    Value is reuired for UserName
    Value is reuired for Password
    Value is reuired for Email
    How this is possible , can u please help me.
    Thank You,
    Subrahmanyam Baratam.

  • How to invoke a standard task in customized program?

    Hi experts,
    I need to invoke a standard task in my program, does any1 know any FMs for invoking a task?
    Thx in advance, points will be rewarded.
    Vincent

    Hi:
    Probably your question is uncleared.
    Anyway please find the link by which you can get some help as
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/21770651ce11d189570000e829fbbd/content.htm
    Regards
    Shashi

  • How to invoke a WebService with more than 1 value in parameter?

    I have a webservice, with a request parameter as an Array of String.
    In an invoing xml it should looks like:
    <GetPersonsData_Request>
    <request>
    <PersonIdList>
    <string> 111 </string>
    <string> 222 </string>
    <string> 333 </string>
    </PersonIdList>
    A problem i have:
    How I can to assign a differents values to this list?
    i assigned first element directly and then tried to add a new one with append:
    <bpelx:append>
    <bpelx:from>'12345'</bpelx:from>
    <bpelx:to>$GetPersonsData_Request.parameters/ns2:request/ns5:PersonIdList</bpelx:to>
    </bpelx:append>
    I receive:
    <GetPersonsData_Request>
    <request>
    <PersonIdList>
    <string> 111 </string>
    '12345'
    </PersonIdList>
    </request>
    Its added as a single string, no as a Structure Element.
    What i missed???

    ok, i tried.
    add a new string type variable:
    <variable name="string" element="ns6:string"/>
    next assigned to $string my text and tried to append it to list:
    <bpelx:append>
    <bpelx:from>$string</bpelx:from>
    <bpelx:to>$GetPersonsData_Request.parameters/ns2:request/ns5:PersonIdList</bpelx:to>
    </bpelx:append>
    and as a result i receive a correct structure:
    <GetPersonsData_Request>
    <request>
    <PersonIdList>
    <string> 111 </string>
    <string> 12345 </string>
    </PersonIdList>
    </request>
    BUT!!! When i next use a countNode:
    <assign name="ac">
    <copy>
    <from>ora:countNodes('GetPersonsData_Request','parameters','ns2:request/ns5:PersonIdList/ns8:string') - it shows me 1 !!!
    <to>$counter</to>
    </copy>
    In EM:
    Updated variable "counter"
    <payload>
    <counter>
    <counter xsi:type="def:int">1</counter>
    </counter>
    Why???
    Is it really correct example and it should to work?

  • How to deploy a JSP which has custom tags?????

    hi
    i compiled my tag handler class and stored the Source and class files in the WEB-INF\classes directory.
    i created a descriptor file and saved it in WEB-INF\jsp directory.
    i placed my jsp file in the jsp-examples folder.
    then i started the server and executed the jsp file.
    that time i was encountered with the following error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: File "/Custom/csajsp-taglib.tld" not found
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:404)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:202)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
    org.apache.jasper.compiler.Parser.parse(Parser.java:171)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    can you help me???????????????????

    hi
    i compiled my tag handler class and stored the Source and class files in the WEB-INF\classes directory.
    i created a descriptor file and saved it in WEB-INF\jsp directory.
    i placed my jsp file in the jsp-examples folder.
    then i started the server and executed the jsp file.
    that time i was encountered with the following error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: File "/Custom/csajsp-taglib.tld" not found
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:404)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:202)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
    org.apache.jasper.compiler.Parser.parse(Parser.java:171)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    can you help me???????????????????

  • Comparing custom tags values to request parameters?

    my question is how to compare a taglibrary value to jsp value ..is this even possible?
    my code is as follows and in <!----> tags shows what I want to do...
    basically I want to check if the sql column is equal to a request parameter... ANY HELP WILL BE GREATLY APPRECIATED SINCE I AM STUCK ON THIS FOR A WHILE NOW...
    <%@ page import="java.io.*, java.sql.*, com.simpleneasy.*"%>
    <%@ taglib uri="taglibdb.tld" prefix="sql" %>
    <jsp:useBean id="sub" class="com.simpleneasy.SubPropertyBean"></jsp:useBean>
    <jsp:useBean id="prop" class="com.simpleneasy.PropertyBean"></jsp:useBean>
    <html>
    <table>
    <sql:openConnection driver=<%=getServletContext.getInitParameter("dbdriver")%> url="<%=getServletContext.getInitParameter("url")%>" user="<%=getServletContext.getInitParameter("user")%>" password="<%=getServletContext.getInitParameter("password")%>" id="db"/>
    <% String str ="select * from " + prop.getTableName();
    boolean edit = false;
    if (request.getParameter("action").equalsIgnoreCase("edit"))
    edit = false; %>
    <form name="addedit">
    <td>Property:</td>
    <sql:setquery query="<%=str%>" res="sel"/>
    <td><select name="propid">
    <sql:forEachRow>
    <% if (edit){%>
    <!--over here i want check
    if <sql:getColumn position="1" res="sel"> is equal to request.getParameter("propid") if it is then mark that option as selected...
    -->
    <option value="<sql:getColumn position="1" res="sel"/>"><sql:getColumn position="2" res="sel"/></option>
    <% } else {%>
    <option value="<sql:getColumn position="1" res="sel"/>"><sql:getColumn position="2" res="sel"/></option>
    <%}%>
    </sql:forEachRow>
    </select></td>
    more code continues...

    sorry for making it look like someone had replied, but I am experiencing exactly the same problem as you, I would appreciate if you could keep in touch and help me if possible whne and if u get the answer.
    I tried this as example code
    if (request.getParameter("param").compareTo("comparison"))
    And find that my JSP has a null pointer exception......
    Thanks my mail address is my user name here with hotmail, in addition at the end thanks

  • How to use Key Flex Fields in Custom Form

    Dear Members,
    I have developed a custom form.
    In my form there is a search criteria for location.
    When ever user wants to query based on the location ,I want to display Asset Location Key Flexfield so that user can choose the respective segements and search the assets.
    Can any one please tell me what is the procedure to be followed to display Key Flex Fields in the custom forms?
    Your inputs will be of great help to me.
    Thanks in advance.
    Best Regards,
    Arun Reddy.

    Hi,
    Please see the note:730068.1 - How To Invoke a DFF from a custom form
    Thanks,
    Ajikumar G

  • How do you programmatically register custom tags through the adminapi?

    Hello,
    I am not able to find much documentation out on the net on how to write codes to programmatically register custom tags through the adminapi (extensions.cfc). The only examples I have been seeing involve setting up datasources. Any advice you can provide is appreciated. Thanks.
    Best regards,
    C. Lee

    Short answer:
    The problem is that the login method is a bit goofy in that it requires the password first and the username second. Assuming you are using a valid password (and not the string "password" you are showing), reversing them should solve your problem.
    Long answer:
    As background for those interested, in order to call any method in any of the Admin API CFCs, one does have to log in programmatically, providing a valid CF Admin password, or password/username combination if you have enabled multiple user logins for the CF Admin. (Multiple user logins in the Admin is an optional feature since CF 8.)
    If one does not setup multiple user names, then you only need to pass a password to the login method (just as on the login page of the CF Admin). Technically, the default username in that case is "admin", and you can specify it if you want to, but again it has to be password then username, on this login method. (The Admin API was added in CF 7, before the multiple usernames feature was added, so it looks like they just added it as a new argument.)
    You can learn more about multiple user logins in the CF Admin (and an option to change or remove the default "admin" username) an Adobe DevCenter article linked to from http://www.carehart.org/articles/#2009_1.
    Note finally that the username/password field values are case-sensitive, even on Windows, and the default username really is "admin" not "Admin".
    This discussion of needing to login is documented on the page that Adam pointed to (see the "using" and "examples" sections of the page). There's even a comment from someone pointing out the need to put them in password/username order (because it's not mentioned in the docs). I also just added a comment there about the case sensitivity, either of which could bite someone. Let's hope they update the docs in the next release to clarify both these points.
    /charlie

  • How can i use JSTL inside custom tag attribute

    Hi,
    I have one button tag which displays the button with round corner. I will show the button like this:
    <ep:button key="buttons.submit" name="submitBtn" styleClass="But"
              onClick='submitPage(''<c:out value='${buttonName}' />)' />
    I am getting the problem with the above code. how can i use JSTL inside the custom tags.
    Thanks in Advance,
    LALITH

    No. The details are given below:
    I have included the follwing line in web.xml file:
    <taglib>
        <taglib-uri>/tags/button</taglib-uri>
        <taglib-location>/WEB-INF/button.tld</taglib-location>
      </taglib>button.tld file
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>2.0</jspversion>
         <shortname>button</shortname>
         <tag>
              <name>button</name>
              <tagclass>com.ksi.ep.web.taglib.ButtonTag</tagclass>
              <bodycontent>empty</bodycontent>
              <attribute>
                   <name>name</name>
                   <required>true</required>
                   <rtexprvalue>false</rtexprvalue>
              </attribute>
              <attribute>
                   <name>key</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
              <attribute>
                   <name>onClick</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
    </taglib>ButtonTag.java :
    public class ButtonTag extends TagSupport {
       private static final long serialVersionUID = 6837146537426981407L;
         * Initialise the logger for the class
        protected final transient Log log = LogFactory.getLog(ButtonTag.class);
         *  holds the Value of the button tag
        protected String onClick = null;
         *  holds message resources key
        protected String key = null;
         * The message resources for this package.
        protected static MessageResources messages =
                             MessageResources.getMessageResources
                                       ("ApplicationResources");
          *  (non-Javadoc)
          * @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
         public int doStartTag() throws JspException {    
            StringBuffer label = new StringBuffer();         
            HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
            try {             
                   log.debug("in doStartTag()");
                   Locale locale = pageContext.getRequest().getLocale();
                 if (locale == null) {
                     locale = Locale.getDefault();
                 log.info("");
                 label.append("<a border=\"0\" style=\"text-decoration:none;color:#FFFFFF\" href=\"JavaScript:");
                 label.append(onClick);
                 label.append("\" >");
                   label.append("<table  onClick=\"");
                   label.append(onClick);               
                   label.append("\" ");
                   if(onmouseout!=null && !"".equalsIgnoreCase(onmouseout))
                    label.append(" onmouseout=\"");
                    label.append(onmouseout);               
                    label.append("\" ");
                   if(onmouseover!=null && !"".equalsIgnoreCase(onmouseover)){
                    label.append(" onmouseover=\"");
                    label.append(onmouseover);               
                    label.append("\" ");
                   if(title!=null && !"".equalsIgnoreCase(title)){
                    label.append(" title=\"");
                    label.append(title);               
                    label.append("\" ");
                   label.append("style=\"cursor:hand\" tabindex=\"1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"");
                   label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));
                   label.append("background1.jpg\" > ");
                 label.append("<tr><td width=\"10\"><img  border=\"0\" src=\"");
                 label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));
                 label.append("leftcorner.jpg\" ></td> ");
                 label.append("<td valign=\"middle\"  style=\"padding-bottom:2px\"><font color=\"#FFFFFF\" style=\"");
                 label.append(styleClass);
                 label.append("\">");
                 label.append(messages.getMessage(key));
                 label.append("</font></td>");
                 label.append("<td width=\"10\" align=\"right\"><img src=\"");
                 label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));            
                 label.append("rightcorner.jpg\" border=\"0\"  ></td>");
                 label.append("</tr></table></a>");
                 pageContext.getOut().print(label.toString());
              } catch (Exception e) {               
                   log.error("Exception occured while rendering the button", e);
                   throw new JspException(e);
            return (SKIP_BODY);
         * Release all allocated resources.
        public void release() {       
            this.name=null;
            this.key=null;
            this.onClick=null;
    }In my JSP I have mentioned the taglib directive as
    <%@ taglib uri="/tags/button" prefix="ep"%>and
    <ep:button key="buttons.submit" name="submitBtn" styleClass="But"
         onClick='overwritePreApprovals('<c:out value='${transactionalDetails['inPrepList']}' />')' />Servlet.service() for servlet action threw exception
    org.apache.jasper.JasperException: /pages/pms/coordinator/Dashboard.jsp(325,48) Unterminated <ep:button tag
    Thanks,
    LALITH

  • Problem with custom tag attribute types

    Hi,
    I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
    In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
    My tag looks like this:
    <tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
    I always get the message that the attribute ce is empty.
    Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
    Thanks a lot!
    Regards Patrick

    In JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
    <attribute>
       <name>attr1</name>
       <required>true|false|yes|no</required>
       <rtexprvalue>true|false|yes|no</rtexprvalue>
       <type>fully-qualified_type</type>
    </attribute> Notice the XML element <type>fully-qualified_type</type>
    Not sure if you can do this in JSP 1.1

  • Using a custom tag with a 2.3 servlet descriptor BUG?

    Hi,
    I just developed a Custom Tag and I'd like to use in my jsps.
    If I add the jsp in my JDev project with the custom tag when I try to build the project I got this error:
    Error(11): oracle.xml.parser.v2.XMLParseException: Invalid element 'listener' in content of 'web-app', expected elements '[context-param, servlet, servlet-mapping, session-config, mime-mapping, welcome-file-list, error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
    It seems like when the jsp parser encounters the line with taglib it tries to parse the web.xml against a 2.2 version of the dtd. My web.xml begins with the correct dtd version (2.3). Can anyone tell me if this is a bug and eventually tell me how to solve it?
    thanks,
    Giovanni

    I repost this issue again, now with a simple test case.
    If I wrote a simple custom tag:
    import java.io.IOException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class MyCustomTag extends TagSupport {
    public int doStartTag() {
    try {
    pageContext.getOut().print("FOO");
    } catch (IOException ioe) {
    pageContext.getServletContext().log(ioe.getMessage(),ioe);
    return(SKIP_BODY);
    with the associated tld:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.2</jspversion>
    <shortname>try</shortname>
    <uri>try</uri>
    <info>A short description...</info>
    <tag>
    <name>mytag</name>
    <tagclass>MyCustomTag</tagclass>
    <bodycontent>EMPTY</bodycontent>
    </tag>
    </taglib>
    and a jsp using the custom tag:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <H2>
    The current time is:
    </H2>
    <P>
    <% out.println((new java.util.Date()).toString()); %>
    <%@ taglib uri="try.tld" prefix="try" %>
    <try:mytag />
    </P>
    </BODY>
    </HTML>
    all runs fine if I have a web.xml with the dtd version 2.2
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    but if I use the version 2.3 because I want filters,context listeners and so on:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <filter>
    <filter-name>FilterRedirector</filter-name>
    <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
    </filter>
    <!-- Filter Redirector URL mapping -->
    <filter-mapping>
    <filter-name>FilterRedirector</filter-name>
    <url-pattern>/FilterRedirector/</url-pattern>
    </filter-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    I get the error I report in my last post. (the jsp doesn't compile) If I remove the custom tag from my jsp all works fine (filters, listeners,etc). In my project settings I use the 2.3 version of servlet.jar instead of the ServletRuntime that comes with JDeveloper.
    Can anyone tell me how to resolve this issue (Using simple custom tag with a web application using the 2.3 servlet specs)?
    Thanks in advance,
    Giovanni
    If I remove the filter secion all

Maybe you are looking for

  • Statspack problem

    Hi Everyone Please Help me Regarding the Oracle9i statspack Problem is that ,when i start the first script spreport.sql this report requried the snap no ,after this script when i start second script sprepsql.sql this report also want snap no ,after t

  • Connection between iPhone and computer.

    Hi, perhaps somebody can help me. When I connect via USB the iPhone 4 with my laptop, the laptop doesn't recognise the iPhone, resp. the USB connection.

  • How do I put a water mark on my photos

    I am new to Iphoto and computers, but I aam working on it!  I am interested to learn HOW TO PUT A WATERMARK on my photos when (if) I set up a Website. Is there anything on Apple that would help?  Or maybe a book that I could get from the Library?? Th

  • Invalid signature stopping upgrade [Solved]

    i am unable to upgrade any packages because i seem to have an invalid pgp signature. could someone point me to the place where the sigs are stored so that i can delete the offending sig. Note : i know that i can change siglevel in pacman.conf but i w

  • Planner table changes transport in SPRO

    Hi all, I have created a new planner in SPRO and using menu 'Table View'->Transport, I have saved the changes of the planner table under one request number, but I dont see any info under this in se10. Is this right approach or else I missed anything?