Custom tag lib with output parameter

Hi,
I need a tag libray that gives me a specific element of a Vector.
Here there is the line I have in my jsp.
<ct:partizione tronco="${contenitoreCentralineTronco}" indice="index" partizione="tmpPartizione"/>
...-contenitoreCentralineTronco is an Object that contains a Vector of other specif objects.
-indice is the vector index of the specif instance I need.
-partizione should be the output instance.
This is part of my tld file:
    <tag>
         <name>partizione</name>
        <tagclass>ss.aspi.classi.centraline.grafica.tagSupport.Partizione</tagclass>
        <bodycontent>empty</bodycontent>
        <info>Estrae una partizione da un vettore di partizioni dato l'indice</info>
        <attribute>
            <name>tronco</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
            <name>indice</name>
            <required>true</required>
        </attribute>
        <attribute>
            <name>partizione</name>
            <required>false</required>
        </attribute>
     </tag>
...this is part of the class called by the tag:
     private ContenitoreTroncoBean tronco;
     private Integer indice;
     private ContenitorePartizioneBean partizione;
     public int doStartTag() throws JspException {
          try {
               Vector<ContenitorePartizioneBean> partizioni = tronco.getPartizioniBean();
               partizione = partizioni.get(indice);
          }catch (Exception e) {
               log.error("Errore nell'estrazione della Partizione "+indice);
               e.printStackTrace();
          return TagSupport.SKIP_BODY;
     //All getter and setter functionsWhen I run the application I get this exception:
jsp.error.beans.property.conversion
looking deeper in the class code jenerated from the jsp, I noted that the problem refers to the third attribute of the tag <ct:partizione>.
It seems It trys to set the attribute "partizione" with the value "tmpPartizione", but partizioni should be an output attribut non input. The varible tmpPartizione doesn't exist... the tag should create it.
I realized I didn't get how I should create a tag with output parameters.
Anyone can explane me it?
Thanks.

One suggestion: Take a closer look at the EL (expression language)
It has an excellent syntax for accessing collections/maps
${contenitoreCentralineTronco[index]} would exactly what you want, without having to write a custom tag for it.
If you REALLY want to do this as a custom tag, then you need to treat the input attribute as a String (the name of the variable you are going to create?) Right now your tag declares the attribute partizione as being of type ContenitorePartizioneBean which is probably the cause of the problem - you are passing it a String.
Cheers,
evnafets

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/

  • 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!

  • 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

  • Custom tag lib, tomcat server cant parse descripter file

    Hi there, I'm working on custom tag libraries, and I have created a simple tag which prints a string when it is called from a jsp file. And I have created a descriptor file for that perticular tag and also created a jsp file which is using the tab lib that I have created, I have placed all these files in their corresponding files, well the problem is when I'm trying to call that jsp file it says the server can't parse the tags.tld file, because <urn></urn> must be declared. And can anybody throw some light on this! it would be much of help from you side, regards, Raasi
    I have pasted all the files with the error message please have a look
    ************** Descriptor file ****************88
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <!-- a tag library descriptor -->
    <taglib>
         <!-- after this the default space is "http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd" -->
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>csajsp</shortname>
         <urn></urn> <!-- problem is here. -->
         <info>
              A tag library from Core Servlets and JavaServer Pages, http://www.coreservlets.com/.
         </info>
         <tag>
              <name>example</name>
              <tagclass>coreservlets.tags.ExampleTag</tagclass>
              <info>Simplest example: inserts one line of output</info>
              <bodycontent>EMPTY</bodycontent>
         </tag>
         <!-- Other tags defined later... -->
    </taglib>
    The JSP file which is using that descriptor file
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ taglib uri="csajsp-taglib.tld" prefix="csajsp" %>
    <TITLE><csajsp:example /></TITLE>
    <LINK REL=STYLESHEET HREF="JSP-Styles.css" TYPE="text/css">
    </HEAD>
    <BODY>
    <H1><csajsp:example /></H1>
    <csajsp:example />
    </BODY>
    </HTML>
    error message from Tomcat4.1 server
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: XML parsing error on file /jsp/csajsp-taglib.tld: (line 9, col 7): Element type "urn" must be declared.
         at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:189)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:247)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:183)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:799)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:219)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.12
    ********************************8

    Hi,
    I have used the following dtd file for a simple tag you can use it by just replacing the tag properties
    <?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/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>CooperatingTags</short-name>
         <description>
         </description>
         <tag>
              <name>first</name>
              <tag-class>com.opera.tagclasses.FirstTag</tag-class>
              <body-content>EMPTY</body-content>
              <attribute>
                   <name>sessionID</name>
                   <required>false</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
         </tag>
    </taglib>
    I guess tag urn is not required.
    Hope this helps
    Ravi

  • 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

  • Custom Tag Error with Weblogic SP9

              Hi
              I seem to be having a problem with a custom tag that I wrote. When I run the JSP
              on WLS (without a service pack), the generated java code uses the weblogic.utils.StringUtils
              class to interprete jsp expressions that are passed into the custom tag's attribute
              (on the JSP). The method called on this StringUtils class is valueOf(). This method
              in essence makes sure that the result of the expression is not null and then subsequently
              calls a toString() on the value. Note that if the value is null it simply returns
              an empty string.
              The problem is that when we go to service pack 9, this method is not called (StringUtils.valueOf()).
              Now the problem arises if first of all the result of the expression statement
              in the custom tag definintion (on the JSP) is null. Secondly, it will also error
              out when the setter method is called within the custom tag, if the object returned
              from the expression does not match the one that is expected by the tag... in our
              case a String.
              Here's a sample usage of the tag:
              <wescombop:selectTag
              selectName="buildingNumber"
              selectedItem="<%= buildingJB.getBuildingNumber()%>"
              trimSelectedItem="true"
              selectTagDataName="buildingNumberDataAttribute" />
              Note: buildingJB.getBuildingNumber() returns BigDecimal
              Here's a snipett of the line generated java:
              * Without the service pack
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(weblogic.utils.StringUtils.valueOf(buildingJB.getBuildingNumber()));
              *With Service Pack 9
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(buildingJB.getBuildingNumber());
              Note: The setSelectedItem() method expects a String object as a parameter, so
              the code with service pack 9 will result in a compilation error, since buildingJB.getBuildingNumber()
              returns a BigDecimal.
              Let me know if you need more explanation.
              Has anyone experience this problem before... Any help would be deeply appreciated.
              Thanks all.
              Niran
              

              Modify the <cewolf:param> tag.
              <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time"> <cewolf:data>
              <cewolf:producer id="report"> <cewolf:param name="type" value="all" > </cewolf:param>
              </cewolf:producer> </cewolf:data> </cewolf:chart>
              "Balakrishnan" <[email protected]> wrote:
              >
              >We are using cewolf charting library in weblogic 7.0. The charting library
              >is implemented
              >as custom jsp tag library module.
              >
              >However, when the use the tag for displaying the chart, weblogic is producing
              >this compiler error.
              >
              >/reports/reportsView.jsp(108): no corresponding open tag for tag extension
              >close:
              >//[ null; Line: 108]
              >
              >Here's the corresponding source of the jsp file:
              >
              > <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time">
              > <cewolf:data>
              > <cewolf:producer id="report">
              > <cewolf:param name="type" value="all" /> (<-- Error occurs
              >here.
              >Line no: 108)
              > </cewolf:producer>
              > </cewolf:data>
              > </cewolf:chart>
              >
              >I've also checked the corresponding tld file and it is in place.
              >
              >The same code without any modifications is working fine in tomcat. Can
              >you please
              >let me know what needs to be corrected to make this work?
              

  • Getting error while Calling Oracle Stored Procedure with output Parameter

    HI All,
    From long days i am working on this but i unable to solve it.
    Even i have studied so many forums in SAP but i didn't find the solution.
    I am calling Oracle Store procedure with 3 inputs and 1 output without cursor.
    Store Procedure:-
    CREATE OR REPLACE PROCEDURE PDS.send_rm
    IS
    proc_name           VARCHAR2(64) := 'send_rm';
    destination_system  VARCHAR2(32) := 'RAWMAT';
    xml_message         VARCHAR2(4000);
    status_code         INTEGER;
    status_message      VARCHAR2(128);
    debug_message       VARCHAR2(128);
    p_ret               INTEGER;
    BEGIN
      DBMS_OUTPUT.PUT_LINE( proc_name || ' started' );
      xml_message := '<RAW_MATERIAL>'||
                     '<BAR_CODE>10000764601</BAR_CODE>'||
                     '<MATERIAL>1101448</MATERIAL>'||
                     '<VENDOR_CODE/>'||
                     '<PRODUCTION_DATE>0000-00-00</PRODUCTION_DATE>'||
                     '<EXPIRE_DATE>0000-00-00</EXPIRE_DATE>'||
                     '<BATCH/>'||
                     '<PO_NUM/>'||
                     '<MATERIAL_DESCRIPTION>POWER SUPPLY</MATERIAL_DESCRIPTION>'||
                     '<SPEC_NAME/>'||
                     '<STOCK_CODE>BSW-JH</STOCK_CODE>'||
                     '<INSPECTION_LOT>00</INSPECTION_LOT>'||
                     '<USAGE_DECISION_CODE/>'||
                     '<MATERIAL_GROUP>031</MATERIAL_GROUP>'||
                     '</RAW_MATERIAL>';
          dbms_output.put_line('XML '||xml_message);
    --      vp_interface.load_rawmat@cnprpt1_pds(SYSDATE, destination_system,
    --                   xml_message, p_ret);
          vp_interface.load_rawmat(SYSDATE, destination_system,
                       xml_message, p_ret);
          dbms_output.put_line('Return Code '||p_ret);
          COMMIT;
    EXCEPTION
      WHEN OTHERS THEN
        status_code := SQLCODE;
        status_message := SUBSTR(SQLERRM, 1, 64);
    --    Extract_Error_Logger(proc_name, 'LOCAL', SYSDATE, -999,
    --                         status_message, 0, debug_message);
        ROLLBACK;
    END send_rm;
    And while i am calling this Store procedure in MII, I am facing error.
    I have tried different ways but didnt solved
    In SQL Query, i kept mode as: FixedQueryOutput
    Can anyone tell me or send code for calling above store procedure
    And onemore thing, While creating store procedure in Oracle for MII. Do we need to Create output parameter as cursor or normal.  
    Thanks,
    Kind Regards,
    Praveen Reddy M

    Hi Praveen
    Our wrapper was created because we could not modify the procedure we call (it was not returning a cursor).
    CREATE OR REPLACE PROCEDURE CHECK_PUT_IN_USE
    (STRCMPNAME in varchar2,
    STRSCANLABEL in varchar2,
    RCT1 out SYS_REFCURSOR
    AS
      charDispo          Char(1);
      charStatus          Char(1);
      intCatNo          Integer;
      charCatDispo     Char(1);
      strCatQual          VarChar2(2);
      strCatDesc          VarChar2(30);
      strMsg          VarChar2(128);
    BEGIN
    qa.check_put_in_use@AR(STRCMPNAME,
                                              STRSCANLABEL,
                                              charDispo,
                                              charStatus,
                                              intCatNo,
                                              charCatDispo,
                                              strCatQual,
                                              strCatDesc,
                                              strMsg);
    OPEN RCT1
    FOR Select charDispo,charStatus,charDispo,charStatus,intCatNo,charCatDispo,strCatQual,strCatDesc,strMsg from Dual;
    END;
    Hope this helps
    Regards
    Amrik
    then with a FixedQueryWithOutput
    call mixar.qasap.wrapper_update_put_in_use('[Param.1]','[Param.2]',[Param.3],?)
    Hope this helps.

  • Custom Tags starting with $: lots of problems

    I'm building an extension for MovableType template tags.
    Those tags can be delimited in several ways: <MTNameOfTheTag>
    or <$MTNameOfTheTag> or even <$MTNameOfTheTag$>. Since
    the dollar sign is not allowed as tag name, i put a
    prefix="&lt;$" in tag definition, but now i have some problems:
    1. even if in tag chooser i can see the dollar-prefixed tags,
    i cannot see them in code hints (I mean "automatic" code hints,
    those floating menus automatically made for every tag/every
    attribute/every enumerated attriboption in library).
    2. I tried to manually code tags in codehints.xml file with
    the "&lt;$ pattern (so i can change the icon associated to my
    custom tags, too. That's will be very elegant) but I loose "child"
    codehints menus: the first codehints menu (the one i manually made)
    comes up, but those for attributes and attributes values don't.
    3. With the solution in point 2 not only i loose "automatic"
    codehints, but i have to write THREE files for every tag
    (taglibrary, codehins, third party tags file). Lot of time :/
    4. Dollar signs, in both start and end, are NOT part of the
    name, but part of the tag, like a prefix or a suffix. With an
    attribute i should have:
    <$MTBlogName donald="goofie"$>
    and not:
    <$NTBlogName$ donald="goofie">
    as actually i have
    so, as i said...a lot of problems! i hope someone can help
    me...its really an hard sunday, today! :/
    tnx in advance

    I think you might be moving into creating your own server
    model.
    Just a thought.

  • Problem with Output parameter  in HR function

    Hi,
    I have a function "Z" done with tx PE04, the country it's venezuela, and i define the IT table as entry and output parameter.
    When i run the payroll, ithe changes that i did by abap code in order to change one concept of the IT table doesn't appears in the log. I do this in others versions of sap and works... I working with SAP ECC 6.0.
    Thanks,
    Albio.-

    Hi,
    This function it's not of the transaction se37, it was created using the transaction pe04, there are two types of parameters entry and output for the payrolls' log.
    I have created several functions with pe04, and never this happened.
    Thanks in advance.
    Albio.-

  • Calling an oracle stored procedure with output parameter

    Hi,
    I am trying to execute a procedure with 2 input and 1 output parameters by using SQLQuery. I tried each mode (Command, FixedQuery & FixedQueryWithOutput) with following statements.
    call cm_test_prod([Param.1],[Param.2],[Param.3])
    Error:"missing expression "
    call cm_test_prod([Param.1],[Param.2],?)
    Error:"wrong number or types of arguments in call to 'CM_TEST_PROD'"
    call cm_test_prod([Param.1],[Param.2],:var)
    Error:"wrong number or types of arguments in call to 'CM_TEST_PROD' "
    or
    Error: "not all variables bound"
    If I use without output parameter, in Command mode, It works fine.
    call cm_test_prod([Param.1],[Param.2])
    or
    call cm_test_prod('[Param.1]','[Param.2]')
    works without error.
    SAP XMII: Version 12.0.5 Build(126)
    Oracle 10G
    Any help would be greatly appreciated.
    Thanks,
    Tunur.
    Edited by: Namik Tunur on Dec 14, 2010 3:34 PM
    Edited by: Namik Tunur on Dec 14, 2010 3:36 PM

    Hi,
    @Marcelo,
    I  used your package just by replacing 'varchar2' instead of 'varchar(100)''. I got the error message 'ORA-00900: invalid SQL statement'. I didn't understand how we handle output parameter with this:
    Query = Call MYPKG.MyProcedure(1,'Test FixedQueryWithOutput',?)
    What is Query in here? If we have two output parameters, how would we get the outputs?
    My procedure is:
    CREATE OR REPLACE
    PROCEDURE XXXXX.CM_TEST_PROD_OUTPUT(v1 in number,v2  in number, v3 out number) IS
    BEGIN
      update test_table set no2 = (v1+v2);
      commit;
      v3 := v1+v2;
    END;
    declare
    a number;
    BEGIN
      cm_test_prod_output(1,6,a);
    END;
    if I use this
    call cm_test_prod_output([Param.1],[Param.2],?)
    with FixedQueryWithOutput mode,
    I get the following error:
    ORA-06553: PLS-306: wrong number or types of arguments in call to 'CM_TEST_PROD_OUTPUT'
    @Mike,
    I already tried both with quotes and without quotes, also I tried both with number output and with string output.
    As I mentioned before, if I use number inputs without output in Command mode,
    call cm_test_prod(http://Param.1,http://Param.2)
    or
    call cm_test_prod('http://Param.1','http://Param.2')
    works succesfully.
    Regards,
    Tunur

  • Custom Tag Problem With iPlanet

    Hi,
    I've followed the instructions for creating Custom Tags located at: http://docs.iplanet.com/docs/manuals/enterprise/41/rn41sp9.html#18776. I'm using the examples provided and am still getting the:
    org.apache.jasper.JasperException: Unable to open taglibrary /jsps/test-tags.jar : com.sun.xml.tree.TextNode
    error. I've followed the instructions "Make sure you have the DOCTYPE in your taglib.tld..." but I still get the error.
    iPlanet 4.1 Enterprise on Windows 2000
    Any ideas?
    Thanks in advance.

    Hey i am also getting the same error, please let me know if u had solved this problem. i have copied the error message below
    [25/Feb/2002:15:00:46] info ( 260): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to open taglibrary /jsps/test-tags1.jar : in is null
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:708)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:119)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:190)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1048)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1022)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1018)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:173)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230)
         at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
    [25/Feb/2002:15:00:46] warning ( 260): Internal error: Failed to get GenericServlet. (uri=/web/jsps/test-tags.jsp,SCRIPT_NAME=/web/jsps/test-tags.jsp)

  • Seam tags in custom tag libs

    Hi,
    Can't we use seam tags inside Java class ?
    I need to create a custom tag using seam tag <s:link />
    stringbuf.append("<s:link id=\"sample\" view=\"/sample.seam\" value=\"Sample123\" propagation=\"none\"/> ");
    The below given code is not giving me a link in the UI. While taking source from the UI the <s:link /> tag is not converted into html <a href >.
    What should I do to get a link by <s:link> using as a custom tag ?

    Sorry, wrong forum, should be in the JSP forum. Hope someone can still help!

  • How to use the JRun Custom tag library with Weblogic 5.1?

    Hello,
              is it possible to use the JRUN Tag Library with Bea Weblogic 5.1? We
              got an error message like:
              weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
              'jrun': T
              here is no setter method for property 'code', for Tag class
              'allaire.taglib.Serv
              letTag'
              Thank you for any info!
              Stefan
              

    Hi Joe,
    I don't know, however someone that follows the JSP newsgroup [1] may be
    able to help. Could you try your post there.
    Thanks,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    Joe Kamenar wrote:
    >
    I have a question. I need to do a sort on news articles in our database, sorting
    by the date they were posted. I then want to take only the top 6 articles. We
    are using Weblogic 5.1. When I use the following statement, 6 articles are taken
    from the database, then sorted, which ends up leaving out the most recent articles:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document" query="<%=contentQuery%>"
    sortby = "creationDate DESC, headlineDate DESC" max="6" id="contentList" />
    I need to get ALL the articles for the sort, then just take the most recent 6.
    So, I know that I can use the following code and monitor the counter variable,
    "i". But, how do i do this to only display the top 6 items?
    <es:foreachinarray id="content" array="contentList" type="com.beasys.commerce.axiom.content.Content"
    counterId="i">
    <% myStr=content.getIdentifier(); %>
    <% if (i<6) {
    %>
    <div class="marginText">
    <cm:printproperty id="content" name="title" encode="html" />  
    <a href="<%=new String(news_display.jsp?id="+myStr)%">">more</a>
    </div>
    <% } %>
    </es:foreachinarray>
    However, when I run this, no results show up. What is the correct way to do this?
    - Joe</a>

  • Customer Account Group with Output Procedure assignment

    Hi Gurus,
    Is there any assignment is possible between Customer Account Group & Output Procedure? What is the function of Output procedure DB0001, I mean how its works. How in Customer Master Output box will get open. Please give details as much as possible.
    Thanks & Regards,
    Savi

    Dear Savi,
    Yes it is possible to assign the output determination procedure to the account group.
    IMG path to assign output determination procedure
    SPRO>Financial accounting>Account recievables and Account payables>Customer accounts>Master data>Preparations for Creating Customer Master Data>Define Account Groups with screen layout (Customers) select account group then go in to details here you can find the field Output determ.proc. under general data tab.
    If you assign the output determination procedure to the account group, the output box will open in the customer master record in the Sales area data as Documents tab here you can enter the output types which are related to you.
    I hope it will help you,
    Regards,
    Murali.

Maybe you are looking for

  • HT4305 how i can solve the error 1009

    how i can solve error 1009.please teach me step by step

  • Database Adapter Polling - Setting arguments in runtime

    Hi! I have a bpel-process with a DB-adapter that polls a table for new records every 10 second. I have a Where clause for the Select query, that reacts on all new records where the first argument (a field in the table) is equal to the second argument

  • Place Management Data Warehouse in an Availability Group

    Is it possible to place the SQL Server Management Datawarehouse in an Availability Group in order to have high availability?  If so, what happens during failover?  Is there any extra configuration needed on the secondary replica(s)? Thanks, Robin

  • Unable to add Gatekeeper

    Hi to all, I'm new in Cisco Voice Portal. I have installed CVP, then checked all services are running. After that I have added CallServer, Reporting, VXML servers, etc. But I cannot add Gatekeeper from Device Managenemt menu. I can't understand diffe

  • I web for business

    Help, I have a small business and am looking for a program to host my website to. I am a complete novice, I have iweb and I find it very easy but it never seems to work. I post things and they are rarely what I actual post, some photos are blurry, so