Remove c:out tag

Hello
I am using tomcat 5.0
In my jsp file, I have to type like this
Name: <c:out value="${myVariable}"/>I know that I can have something like
Name: ${myVariable}In the top of jsp, I have
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>How I can remove <c:out ...... />
Thanks

Well you open the file in your favorite editor, find the line with the <c:out> you don't want, highlight the first part of it (up to the ${, and hit the key labelled "delete", then highlight the tail part of it,  (from } to the end) and press delete again.
Or you could use a tool to do a global search and replace.
But seriously - why do it? What does it hurt? What could it break?
The <c:out> tag escapes html characters for you, so you ARE changing the functionality of the application by doing this.
Actually taking a closer look, you are using JSTL1.0 (from the URI)
If you have a JSP2.0 compatible container (eg Tomcat 5 + ) you should just upgrade to JSTL1.1
- replace standard.jar and jstl.jar
- change your import line to <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> (note the subtle addition of /jsp)
- upgrade the declaration in web.xml to register that it is 2.4, rather than 2.3 (using the new xml schema syntax)
Cheers,
evnafets

Similar Messages

  • Remove Empty XML Tags using module parameters

    Hi All,
    In my lanscape I have two PI Systems.
    My scenario is an IDOC reaches 1st PI system gets converted into an EDIFACT and then goes to the 2nd PI and from there it gets routed to the respective AS2 Party.
    I am using SOAP to pass message between the PI systems and B2B Toolkit's AS2 Adapter for the communication with AS2 party.
    The issue is when the message is getting converted from IDOC to EDIFACT there are a few feilds with occurence 1..1 and due to these fields i get an empty XML tag at the output. These empty XML tags give me an error in the B2B Toolkit's AS2 Adapter Receiver Channel
    I cannot change the occurence in the structure of the EDIFACT nor can I use an XSLT mapping to remove empty tags before the message reaches the Communication Channel.
    I want to know if there are any module parameters which i can use either in SOAP Channel or the AS2 Channel to remove the XML Tags.

    Hi Muni,
    "1..1 means, you must send some values for that fields. try to find out why these are not getting any values."
    This empty tag is expected. Before using B2B Toolkit's AS2 Adapter we used to use Seeburger's AS2 Adpater and the message used to get executed successfully with these empty tags.The issue is coming only when we are using B2B Toolkit's AS2 Adapter.
    "if you want to stop sending(the fields which are not needed in target) you can you can disable the fields in the message mapping."
    I cannot disable the feild in the mapping as some other message may use this field.
    Thanks,
    Farhaan

  • Remove the unnecessary tags in XML using PL/SQL

    Hi Friends
    from the below XML, its generate by a complex SQL query, Now we need to remove all the object type tags, and all the empty tags.
    Version - PL/SQL Release 11.2.0.3.0 - Production
    <MajorLine>
        <MAJOR_LINE_OBJECT_TYPE> -- Need to remove these Objects types showing in the XML
            <LINEID>143424538</LINEID>
            <ITEMNAME>TC-ABC-123</ITEMNAME>
            <ITEMPATH>78245</ITEMPATH>
            <QUANTITY>10</QUANTITY>
            <SERVICELINE/> -- Need to remove all the Empty tags
            <MINORLINE>
                <MINOR_LINE_OBJECT_TYPE> -- Need to remove these Objects types showing in the XML
                    <LINEID>143424799</LINEID>
                    <ITEMNAME>TCC-abc</ITEMNAME>
                    <ITEMPATH>78245</ITEMPATH>
                    <QUANTITY>10</QUANTITY>
                    <SERVICELINE/>-- Need to remove all the Empty tags
                    <MINOR_MINOR_LINES>
                        <M_MINOR_LINE_TYPE> -- Need to remove these Objects types showing in the XML
                            <LINEID>143424798</LINEID>
                            <ITEMNAME>SF15-abc-xyz</ITEMNAME>
                            <ITEMPATH>78245</ITEMPATH>
                            <QUANTITY>10</QUANTITY>
                      </M_MINOR_LINE_TYPE>-- Need to remove these Objects types showing in the XML
                    </MINOR_MINOR_LINES>
                </MINOR_LINE_OBJECT_TYPE>--Need to remove these Objects types showing in the XML
            </MINORLINE>
        </MAJOR_LINE_OBJECT_TYPE>-- Need to remove these Objects types showing in the XML
    </MajorLine>
    i tried one of the queries posted in this blog ,PFB  to remove the empty tags , but it didnt work for me unfortunately. Please help.
    PFB
    WITH sample_data AS (
      SELECT xmltype('<MajorLine>
        <MAJOR_LINE_OBJECT_TYPE>
            <LINEID>143424538</LINEID>
            <ITEMNAME>hijk</ITEMNAME>
            <ITEMPATH>78245</ITEMPATH>
            <QUANTITY>10</QUANTITY>
            <SERVICELINE/>
            <MINORLINE>
                <MINOR_LINE_OBJECT_TYPE>
                    <LINEID>143424799</LINEID>
                    <ITEMNAME>efg</ITEMNAME>
                    <ITEMPATH>78245</ITEMPATH>
                    <QUANTITY>10</QUANTITY>
                    <SERVICELINE/>
                    <MINOR_MINOR_LINES>
                        <M_MINOR_LINE_TYPE>
                            <LINEID>143424798</LINEID>
                            <ITEMNAME>abc</ITEMNAME>
                            <ITEMPATH>78245</ITEMPATH>
                            <QUANTITY>10</QUANTITY>
                        </M_MINOR_LINE_TYPE>
                    </MINOR_MINOR_LINES>
                </MINOR_LINE_OBJECT_TYPE>
            </MINORLINE>
        </MAJOR_LINE_OBJECT_TYPE>
    </MajorLine>') xmldoc
      FROM dual
    SELECT deleteXML( t.xmldoc
                    , '/MajorLine/*[.="" or contains(.,"?")]'
                    ) as result
    FROM sample_data t
    My email ID is [email protected] -- You can reach me
    thanks in advance ... Arun thomas T

    Hey Odie. Great to see you again, the query is
    SELECT XMLELEMENT (
              "MajorLine",
              major_line_object_type (
    oola_major.line_id,
    oola_major.ordered_item,
    oola_major.header_id,
    oola_major.ordered_quantity,
                 CAST (
                    MULTISET (
                       SELECT oola_ser.line_id,
    oola_ser.ordered_item,
    --oola_ser.header_id,
    oola_ser.ordered_quantity,
    CAST (
                                 MULTISET (
    SELECT oola_ser2.service_start_date,
    oola_ser2.service_end_date,
    oola_ser2.service_duration
                                      FROM oe_order_lines_all oola_ser2
                                     WHERE oola_major.line_id =
    oola_ser2.service_reference_line_id
                                           AND oola_ser2.header_id =
    oola_major.header_id) AS service_period_table_type)
    FROM oe_order_lines_all oola_ser
                        WHERE oola_major.line_id =
                                 oola_ser.service_reference_line_id
    AND oola_ser.header_id = oola_major.header_id) --As of now excluding cross order service line
    AS SERVICE_TABLE_TYPE),
                 CAST (
                    MULTISET (
                       SELECT oola_minor.line_id,
    oola_minor.ordered_item,
    oola_minor.header_id,
    oola_minor.ordered_quantity,
    CAST (
                                 MULTISET (
                                    SELECT oola_ser1.line_id,
    oola_ser1.ordered_item,
                                           -- oola_ser1.header_id,
    oola_ser1.ordered_quantity,
                                           CAST (
                                              MULTISET (
                                                 SELECT oola_ser3.
    service_start_date,
    oola_ser3.
    service_end_date,
    oola_ser3.
    service_duration
                                                   FROM oe_order_lines_all oola_ser3
                                                  WHERE oola_minor.line_id =
    oola_ser3.
    service_reference_line_id
    AND oola_ser3.header_id =
    oola_major.
    header_id) AS service_period_table_type)
                                      FROM oe_order_lines_all oola_ser1
                                     WHERE oola_minor.line_id =
    oola_ser1.service_reference_line_id
                                           AND oola_ser1.header_id =
    oola_major.header_id) --As of now excluding cross order service line
    AS SERVICE_TABLE_TYPE),
    CAST (
                                 MULTISET (
                                    SELECT oola_minor_m.line_id,
    oola_minor_m.ordered_item,
                                           oola_minor_m.header_id,
    oola_minor_m.ordered_quantity
                                      FROM oe_order_lines_all oola_minor_m
                                     WHERE oola_minor.line_id =
                                              oola_minor_m.link_to_line_id
                                           AND oola_minor_m.header_id =
    oola_major.header_id) --As of now excluding cross order service line
                                                                       AS m_minor_line_table_type)
    FROM oe_order_lines_all oola_minor
                        WHERE    --oola_minor.top_model_line_id=oola_major.line_id
    oola_minor.link_to_line_id = oola_major.line_id
    AND oola_minor.header_id = oola_major.header_id
    AND oola_minor.item_type_code != 'SERVICE') AS MINOR_LINE_TABLE_TYPE)))
              AS "XMLOutput"
      FROM oe_order_lines_all oola_major
    WHERE oola_major.line_id = 143424538 AND oola_major.link_to_line_id IS NULL;
    can we rewirte it to get the desired out put ..
    Desired output is Just remove the Object_type tags and empty tags coming in the output xml.
    The previous issues i mentioned are not solved yet  . actually will update the challenges ..
    Odie .. thanks.. again

  • Removing the [Spam] tag from non Spam emails

    I have a few emails which come through to my Inbox with [Spam] in the subject field.  These emails are not Spam.  How do I remove the [Spam] tag and tell the system that they are not Spam. 
    If the system thinks they are Spam, why don't they go straight into the Spam folder?

    Hi orange_dude,
    Check out this link for more info on how to filter spam. Let me know if this helps.
    Thanks
    Neil
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Removing message type tag in output file

    Hi guys,
    I'm new to XI. I have done an xml file to xml file scenario. It is working successfully
    The output file has a format
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_xml_receiver xmlns:ns0="http://xml2xml">
         <DETAILS>
              <ID>111</ID>
              <NAME>Varun</NAME>
              <LOCATION>India</LOCATION>
              <ADD>Bangalore</ADD>
              <MOBILE>46572727</MOBILE>
              <EMAIL>[email protected]</EMAIL>
         </DETAILS>
    </ns0:mt_xml_receiver>
    I want to remove the additional tag present for the message type and i want the output in the format
    <?xml version="1.0" encoding="UTF-8"?>
         <DETAILS>
              <ID>111</ID>
              <NAME>Varun</NAME>
              <LOCATION>India</LOCATION>
              <ADD>Bangalore</ADD>
              <MOBILE>46572727</MOBILE>
              <EMAIL>[email protected]</EMAIL>
         </DETAILS>
    Can any one help me on how to achieve this???
    Pl help me on this guys
    Regards
    Varun

    HI Varun,
    This will help you..
    In the message type <b>mt_xml_receive</b>r there is a box where the namespace name is specified.
    Simply delete the same and activate the message type.
    In your case what you can do is as you dont want the message type name also.
    you can create the message type name as DETAILS instead of mt_xml_receiver.
    Regards,
    Sumit
    ps : reward points if tht helped u.

  • How to remove the header tag in the XML data ?

    Hi All,
    I am sending an XML data from SFTP to Proxy, in that I want to remove the header tag (first tag) from the xml, while loading the data. how to do that ?

    Hi,
          It is not about the thing that, whether your source is XML or flat file. If you dont want some thing in your source file , dont consider it and dont map it with your target structure. think that, your not getting the header in your source.  What is the header here.
    <Emp_details>
    <Emp_Id> Employee No </Emp_Id>
    <Emp_Name> Employee Name </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 1234 </Emp_Id>
    <Emp_Name> xxxx </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 5678 </Emp_Id>
    <Emp_Name> yyy </Emp_Name>
    </Emp_details>
    you have two fields under node Emp_details. What do u want to avoid here?
    Regards,
    Reyaz

  • Remove un-necessary tags?

    Jdbc to file scenario, in this scenario we need to remove empty value tags from sender or receiver side before creating Xml document in third party.
    Is that possible? I know this is very dummy question but I am new in pi and sdn
    Ex:
    <test>
    <empdetails>
    <emp-no>12</emp-no>
    <emp-name></emp-name >
    <emp-salary>120000</emp-salary >
    <empid></empid>
    </ empdetails>
    <empdetails>
    <emp-no>13</emp-no>
    <emp-name>xsd</emp-name >
    <emp-salary></emp-salary >
    <empid>rt54</empid>
    </ empdetails>
    </test>
    any bisy give solution for this querry.
    Edited by: santhooshv on Dec 20, 2011 7:43 AM
    Edited by: santhooshv on Dec 20, 2011 7:45 AM

    hi,
    <test>
    <empdetails>
    <emp-no>12</emp-no>
    <emp-name></emp-name >
    <emp-salary>120000</emp-salary >
    <empid></empid>
    </ empdetails>
    <empdetails>
    <emp-no>13</emp-no>
    <emp-name>xsd</emp-name >
    <emp-salary></emp-salary >
    <empid>rt54</empid>
    </ empdetails>
    </test>
    As per My knowledge, That is possible with remove the empty tags of the Additional Parameters in u201CAdvanced Modeu201D in Sender Jdbc Communication channel.
    If you want to remove the empty tags from the test of the sender adapter, select Remove Empty Tags. Main advantage is  reduce the size of XML documents.
    <test>
    <empdetails>
    <emp-no>12</emp-no>
    <emp-salary>120000</emp-salary >
    </ empdetails>
    <empdetails>
    <emp-no>13</emp-no>
    <emp-name>xsd</emp-name >
    <empid>rt54</empid>
    </ empdetails>
    </test>
    please gothrough below link:
    http://help.sap.com/saphelp_nw73/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    thanks,

  • How to REMOVE [b] H1 Tag[/b] from HTML without changing other Tags?

    Hi there!
    I'm searching for a method to remove Tags from HTML (using HTMLEditorKit, HTMLDocument ...).
    My current code is as follows:
    // first get the whole paragraph
       int iCaretPos = tpMyTextPane.getCaretPosition();
       Object oAttrib;
       HTMLDocument.BlockElement oElem = (HTMLDocument.BlockElement)oMyDocument.getParagraphElement(iCaretPos);
       AttributeSet oAttribs;
       SimpleAttributeSet oNewAttribs;
       int iParaStart = oElem.getStartOffset();
       int iParaEnd = oElem.getEndOffset();
       tpMyTextPane.select(iParaStart, iParaEnd);
       // the following only fetches the Tags that are valid for the whole paragraph!!!!!
       oAttribs = tpMyTextPane.getCharacterAttributes();
       oNewAttribs = new SimpleAttributeSet(oAttribs);
       if(iParaEnd - iParaStart > 0)
          // now analyse the attributes (remove all paragraph-tags)
          for(int iIndex = 0; iIndex < oaOurFormatTags.length; iIndex++)
             oNewAttribs.removeAttribute(oaOurFormatTags[iIndex]);
          if(iParaEnd - iParaStart > 0)
             oMyDocument.setCharacterAttributes(iParaStart, iParaEnd - iParaStart, oNewAttribs, true);
             tpMyTextPane.setCaretPosition(iCaretPos);
          tpMyTextPane.requestFocus();
          tpMyTextPane.repaint();
       }This code works for me, but all Tags of the selected paragraph are removed. That means:
    <P><H1>This is a <B>test</B> text<H2></P>
    will be converted to:
    <P>This is a test text</P>
    but I want it to be converted to:
    <P>This is a <B>test</B> text</P>
    Is there any other method to remove specific Tags (<H1>, ... <H6>) without touching other tags????

    In February I wrote a feature request about this. Today it has been accepted to the bug database. Please make your vote:
    http://developer.java.sun.com/developer/bugParade/bugs/4760082.html

  • How remove an XML tag and its childs?

    Hi all,
    I'm a newbie with XML library. I would like to remove a specific tag and all its childs from an XML document.
    I've modified an example VI  but Error -2607 is generated (see attachment).
    Thanks in advance
    Attachments:
    xmlTest.jpg ‏167 KB

    Post your code and not a picture about it.

  • EL expressions with c:out tags?

    Hi,
    If EL expressions are normally evaluated and displayed on a page, what is the purpose of enclosing them in <c:out> tags?
    Take the following snippet for example:
    <img src="<c:out value='${initParam.categoryImagePath}${category.name}.jpg'/>"The same snippet without the <c:out> tag produces the same output in a browser:
    <img src="${initParam.categoryImagePath}${category.name}.jpg"I understand that <c:out> also enables you to escape XML content, but if this isn't required, should the <c:out> tag be used? Are there any 'best practice' concerns involved?
    Many thanks for any replies!

    It is for historical reasons.
    The Expression Language EL was originally only available as part of the JSTL tags, ie you could only use it with a <c:out> tag or similar.
    That was JSTL1.0
    As of Servlet2.4/JSP2.0 (eg Tomcat 5) EL expressions became part of the JSP specification, and containers had to evaluate them as runtime expressions.
    That was one of the major changes with JSTL1.1
    By all means if the value doesn't have to be escaped for HTML purposes, then I would say use the expression without the tag.
    BTW your example leads to repetition. Maybe that should be made into a custom tag? <my:img image="${category.name}"/>
    cheers,
    evnafets

  • Regex - Remove specific HTML Tags

    I have already found a solution in the forum to remove all html tags but I need some specific tags - img, a, b, i, u - and also their closing tags - </a>, </b>.
    The regex also needs to differ between img without the class attribute and with class attribute - it should remove elements with class attribute
    So I have tried to modifiy the found solution:
    result = Regex.Replace(result, "<[^(img|a|b|i|u)][^>]*>", " ");
    It works not optimal because it also removes the closing tags, doesn't differ and doesn't remove the br tags. It's not necessary to do all these actions in one statement.

    you can use regular
    <[(/body|html)\s]*>
    in c#:
    var result = Regex.Replace(html, @"<[(/body|html)\s]*>", "");
    <html>
    <body>
    < / html>
    < / body>

  • I have bought an IPad in the US however need to return in the UK, am i able to receive a full refund? Note: i have removed the outer packaging.

    I have bought an IPad in the US however need to return in the UK, am i able to receive a full refund? Note: i have removed the outer packaging.

    I have no idea if you can do anything with it in the UK. All you can do is ask for help. Just be prepared for the possibility that they can do nothing for you because the device was purchased in the US.
    You may have to contact the store from which you purchased the device in the US to see if you can send it back to them in exchange for the Mini. This assumes you are within the 14 day window and they will accept it without all the expected packaging.
    Beyond that I don't think anyone here can tell you with any certainty what you can do under the given circumstances. All you can do is ask. The worst that can happen is everyone says, "No."

  • [svn:fx-] 21427: Removed flex/sdk/tags/trunk4.5.1 - history not maintained!

    Revision: 21427
    Revision: 21427
    Author:   [email protected]
    Date:     2011-06-21 07:16:13 -0700 (Tue, 21 Jun 2011)
    Log Message:
    Removed flex/sdk/tags/trunk4.5.1 - history not maintained!
    Removed Paths:
        flex/sdk/tags/trunk4.5.1/

  • General Task List- Query Log Out Tag Out

    Hello,
    We are uploading new Gereneral Task List. Some task required Log Out Tag Outs for a prcedure:
    For example: 1) Schedule  with operations 2) Flush unit 3) Lock out tag out procedures 4) Pull unit and clean propeller.
    For reporting purpose we want to identify all the Task List that require LogOut TagOuts. Is there a way to query those items.
    Thanks

    Create Different Control Key " LOTO" going to Spro - PMCS - Maint & Service Orders - Function & Settings of Order types - Control Key - Maintain Control Key - Create New Entries , Create New One With Name" LOTO" , Assign Parameters( tick sheduling if needed )or Keep Every thing Blank , Save it
    Now in Creation of Task list , For Lock out & tag out Operation , Maintain this Control Key "LOTO " & rest is same.
    Use IW37 or IW37N , with Control key Entered in Order to monitor the Order , Operation with this LOTO Control Key,
    I think this solves ur problem , there is already a default Control Key "WCM" in Ideas , which Activates Work Clearance Application you can check it.
    or
    you Can maintain System Condition Manually in Order Operations when you get Maintenance Order from Plan , You Cannot  maintain this in Task list individual Operation.
    Regards,
    Edited by: Srinivas Narayana Gowda on Jun 11, 2009 10:17 AM

  • How do I remove the acronym tags from menu items in Business Catalyst?

    Hello, can anybody answer this for me please? Not having any success googling or foruming it so far.
    How do I remove the acronym tags from menu items in Business Catalyst? 
    Thanks in advance
    Grant

    These are titles and in the dynamic menu will be the item description per item.
    These are actually important though and you do not really want to remove them but make them better and reword them other then the same as the link test. These are good for the user experience as well as SEO. A bot knowing a description of a link and where it is going coupled with the URL's and the title of an anchor are all important aspects of your sites SEO.

Maybe you are looking for