Decode HTML character in hyperlink parameter

Hi all,
I have some problem in passing parameters from a report to another. In particular, the LOVs of prompts have particular formatting:
1._ _ _ first value
2._ _ _ second value
Does anybody know how to decode "dots" and "dashes" in html syntax?
Thanks
Riccardo

Hi,
Are the "dots" and "dashes" in the value really causing problems ?
You can try enclosing the values within double quotes. Use Char(34) formula to include double quotes in the URL.
Note: If there is a space within the value, please replace the space with a '+' using Replace function and you will not have to use double quotes.
For example, replace
1._ _ _ first value
by
1._+_+_+first+value
I think it is the spaces within the values which can cause problem and not the dashes and dots.
Regards

Similar Messages

  • Weblogic xss vulnerablity : html character entities getting decoded in jsp by ${} expression

    This is from my question at stack overflow java - Weblogic xss vulnerablity : html character entities getting decoded in jsp - Stack Overflow
    I am using a filter to prevent xss by encoding html character of my jsp form parameters.
    I am resolving them in jsp using ${param} expression.
    This is working fine in tomcat as the values are resolved as is, but on weblogic the values are getting decoded, causing the XSS to succeed
    I am using this simple code in jsp to test it
    <c:set var="testing" value="eb011&quot;&gt;&lt;img src=a onerror=confirm(1)&gt;47379"/> <input type="hidden" name="encoding" value="${testing }"/>
    Result in tomcat
    <input type="hidden" onerror="confirm(1)&gt;47379&quot;/" src="a" &gt;&lt;img="" value="eb011" name="encoding">
    Result in weblogic
    <input type="hidden" value="eb011" name="encoding"><img onerror="confirm(1)" src="a">47379"/&gt;
    why is weblogic decoding html codes and what could be done to prevent it.

    It is really handy to learn how to read schema validation errors. It really does say exactly what's wrong there. If you can get access to the XSD that your XML document is prescribing, you should be able to tell what mistake you made. If you learn how to do this, you'll never have to ask questions like this again. :)
    The error refers to the "http://www.bea.com/ns/weblogic/weblogic-web-app" namespace, which I believe is in your "weblogic.xml" file. It's saying that in the "jsp-descriptor" element, it found a "noTryBlocks" element at a point where it was not legal. At that point, it expected to find either a "'precompile-continue" or several other elements, but not that one. Read the XSD to determine the correct order for elements. If you're editing this file in Eclipse, you may not even have to obtain the XSD. If you hover the mouse over the root element of the document, it will give you a popup showing the syntax details of the element, which will tell you what the expected order of elements is.

  • Converting HTML Links to Hyperlinks in InDesign

    Hi--I'm new to this forum, so forgive any newbie-ness...
    Working on a pretty intense automated page layout which creates a product cut sheet based from content that is on the web (using AppleScript). One feature I'm trying to build in is to convert typical HTML href tags to an actual hyperlink in InDesign.
    I'm using GREP to find all the html tags, which works very well.
    What I can't do (and it might be a limitation of GREP in ID) is store the 'change to' locations as variables in AppleScript. For example, I use:
    --find the href tag
    set find what of find grep preferences to "(?i)(<a href=\")(.+?)(\")(.*)(>)(.*)(</a>)"
    --change to the stuff in the href=" " and the text I want to keep
    set change to of change grep preferences to "$2 $6"
    What I NEED is the ability to make $2 and $6 variables.
    Any advice, tips, hints, tricks, and/or help?
    Thanks all!

    Sorry, it's been a while since I solved this, so its not too fresh. There may be pieces missing. Here's the exerpt of what I did to change real html marked-up text (which contains hyperlinks) into real, clickable InDesign hyperlinks. In a few words, I found the html hyperlinks in the text, and "marked it up" with my own "xml" type language (for later). Then I think I made an array of every link and location, then had InDesign go through and convert to hyperlinks.
    ---CONVERT HREFS TO HYPERLINKS------------------------------------------------------
        set find grep preferences to nothing
        set change grep preferences to nothing
        --FIND HYPERLINKS
        set include footnotes of find change grep options to false
        set include hidden layers of find change grep options to false
        set include locked layers for find of find change grep options to false
        set include locked stories for find of find change grep options to false
        set include master pages of find change grep options to true
        set find what of find grep preferences to "(?i)(<a href=\")(.+?)(\")(.*?)(>)(.*?)(</a>)"
        --set find what of find grep preferences to "(?i)(?<=<a href=\").+?(?=\")"
        set change to of change grep preferences to "<url>http://www.mywebaddress.com$2</url> <linked text>$6</lt>"
        set applied character style of change grep preferences to nothing
        tell specSheet
            change grep
        end tell
    set find grep preferences to nothing
        set change grep preferences to nothing
        --FORMAT HYPERLINKS
        set include footnotes of find change grep options to false
        set include hidden layers of find change grep options to false
        set include locked layers for find of find change grep options to false
        set include locked stories for find of find change grep options to false
        set include master pages of find change grep options to true
        set find what of find grep preferences to "http://.+?(?=</url> <linked text>)"
        set change to of change grep preferences to ""
        set applied character style of change grep preferences to nothing
    tell specSheet
            set myFoundItems to find grep
            set linkURL to get myFoundItems
        end tell
        set find what of find grep preferences to "(?<= <linked text>).+?(?=</lt>)"
        tell specSheet
            set myFoundTextLinks to find grep
            set linkNames to get myFoundTextLinks
        end tell
        set masterList to {}
        set numItems to count of linkURL
        set n to 1
        repeat numItems times
            set end of masterList to {item n of linkURL, item n of linkNames}
            set n to (n + 1)
        end repeat
        tell specSheet
            repeat with currentLink in masterList
                set hyperLinklocation to item 2 of currentLink
    try
                    set hyperLink1 to make hyperlink URL destination with properties {name:item 2 of currentLink as string, destination URL:item 1 of currentLink as string}
                on error
                    set hyperLink1 to hyperlink URL destination (item 2 of currentLink as string)
                end try
                try
                    set hyperLinkText to make hyperlink text source with properties {source text:hyperLinklocation, hidden:false, applied character style:character style "hyperlink"} --name:item 2 of currentLink as string,
                on error
                    set hyperLinkText to hyperlink text source (item 2 of currentLink as string)
                end try
                try
                    make new hyperlink with properties {destination:hyperLink1, source:hyperLinkText, hidden:false} --name:item 2 of currentLink as string}
                on error
                    make hyperlink with properties {destination:hyperLink1, source:hyperLinkText, hidden:false}
                end try
            end repeat
            --set linksDone to "true"
        end tell
        set myFoundItems to {}
        set myFoundTextLinks to {}
    end tell
    tell application "Adobe InDesign CS5"
        --REMOVE MARKUP -URLS FROM COPY
        set find grep preferences to nothing
        set change grep preferences to nothing
        --Set the find options.
        set include footnotes of find change grep options to false
        set include hidden layers of find change grep options to false
        set include locked layers for find of find change grep options to false
        set include locked stories for find of find change grep options to false
        set include master pages of find change grep options to true
        set find what of find grep preferences to "<url>.+?</url> "
        set change to of change grep preferences to ""
        tell specSheet
            change grep
        end tell
        --Clear the find/change preferences after the search.
        set find grep preferences to nothing
        set change grep preferences to nothing
        --display dialog "URL text deleted."
        --LINKED TEXT TAGS REMOVAL AND CHARACTER FORMAT
        set find grep preferences to nothing
        set change grep preferences to nothing
        --Set the find options.
        set include footnotes of find change grep options to false
        set include hidden layers of find change grep options to false
        set include locked layers for find of find change grep options to false
        set include locked stories for find of find change grep options to false
        set include master pages of find change grep options to true
        set find what of find grep preferences to "<linked text>|</lt>"
        set change to of change grep preferences to ""
        --set applied character style of change grep preferences to "hyperlink"
        tell specSheet
            change grep
        end tell
        --Clear the find/change preferences after the search.
        set find grep preferences to nothing
        set change grep preferences to nothing
        --display dialog "Linked text tags removed, style applied."
    end tell

  • How to handle multiple reports with single hyperlink parameter

    Please suggest in my drill down report
    i have two reports linked with one hyperlink
    parameter, how to handle this?
    please suggest for popup window with sample solution.
    for example
    report A--->B--->Chosse Report c or D
    based on parameter hyperlink at report B.
    Thanks in advance
    Raj

    Yes U R correct, that
    I'm using srw.set_hyperlink in plsql format trigger
    to open other reports , now the problem is
    how to carry over the hyperlink parameter to popup window
    and allow user to choose any reports based on the
    parameter value.
    for example
    report A (Sales person summmary report)
    |
    | (choose sales person drilled to orders report B)
    |
    B (report has the hyperlink on order no)
    |
    |
    C,D,E (many reports based on order no
    customer,order details,pending items
    to be shipped)
    Now how to handle the situation from b to c,d,e
    I suggest use hyperlink at B to open popup to show
    reports C,D,E with the order no has parameter.
    please suggest for javascript to open popup window
    for reports c,d,e.
    Thanks
    Raj

  • Displaying HTML character entities in JEditorPane

    Hi,
    I have noticed that when displaying HTML character entity references in a JEditorPane it will show some of them, e.g. &copy; for copyright symbol but not others e.g. &rsquo; for "curly" single quote.
    Is there any way to get JEditorPane to show all (most?) of them?

    Create a class that extends ComboBox and override the
    updateDisplayList and measureText functions. Then use that new
    ComboBox in your code:
    <local:HtmlComboBox .. xmlns:local="components.*".>
    <local:itemRenderer>
    <mx:Component>
    <mx:Text htmlText="{data.label}" />
    </mx:Component>
    </local:itemRenderer>
    </local:HtmlComboBox>
    Put this into a folder called "components" and name the file
    HtmlComboBox.as
    package components
    import mx.controls.ComboBox;
    import flash.text.TextLineMetrics;
    public class HtmlComboBox extends ComboBox
    public function HtmlComboBox()
    super();
    override protected function
    updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    super.updateDisplayList(unscaledWidth,unscaledHeight);
    var s:String = textInput.text;
    textInput.htmlText = s;
    override public function
    measureText(text:String):TextLineMetrics
    return measureHTMLText(text);
    }

  • Rendering text that contains old-style HTML character entities, e.g. ü

    The large text-corpus I'm working with was produced before the days of widespread Unicode support, and it contains HTML character entities instead of unicode codepoints, e.g. &uuml; for ü [u-umlaut].
    I can iterate through every text column in the ArrayCollections that I'm using for dataProviders to the DataGrid, and replace these entities with their unicode counterparts before the provider is assigned to the grid. But is there already a mechanism in place in Flex to render character entities in the DataGrid? Is there a ready-made ItemRenderer that can do this?
    Thanks

    DrClap wrote:
    So your example looks like this?
    <someNode>der fuchs springt &#252;ber den stein</someNode>
    now I feel stupid :-) Yes, that's correct.
    And you're actually getting an EntityReference node in your Document? I find that rather strange, since the documentation for EntityReference says
    Note that character references and references to predefined entities are considered to be expanded by the HTML or XML processor so that characters are represented by their Unicode equivalent rather than by an entity reference.
    Exactly!
    Because what you have there is a character reference. Is there something else in the document, a DTD for example, which might be interfering with that?No, just an ordinary XML header:
    <?xml version="1.0" encoding="UTF-8"?> ...If it helps, I can also post the complete document I am receiving.

  • HTML Character entity references on SQLQuery

    I am trying retrieve the data thru XMLElement and I like to do a HTML Character entity references. I guess XMLElement does it with the proper character set translations and I was not successul in getting it correct. Could you please help me out. My DB character set it UTF-8.
    For example, the "acute" e needs to be translated to its hexa equivalent. I tried it by setting the mid-tier's client's NLS but with no success. I dont want to scan the each character and convert it.
    create table master.temp_xml_encode
    (party_name_id NUMBER(15),
    party_id NUMBER(15),
    party_name VARCHAR2(200) );
    PARTY_NAME_ID PARTY_ID PARTY_NAME
    3831587 5496840 The West Company México, S.A. de C.V.
    3844362 5496730 Schiønning & Arvé A/S
    3847940 5496836 West Rubber de España, S.A.
    4047634 5983166 Timberland España, S.L.
    4266163 5983166 Timberland España, S.A.
    4285954 6482794 The Young Women¿s Christian Association of Central New Jersey
    SELECT XMLELEMENT("party_id", party_id,
    xmlforest(party_name_id AS "partynameid",
    party_name AS "partyname"
    FROM master.temp_xml_encode
    Thanks for your help

    And Yes forgot to add one thing, the index.jsp is a part of the application supplied by vendor and I do not have src of the struts actions (no control on server side code).
    I need to find a solution from client's side.

  • Convert from HTML Character Codes in Applescript

    Hey everyone,
    I have an applescript that retrieves some info from websites, but sometimes parts of the information are encoded into HTML Character codes for web compatibility. Could someone point me in the right direction to processing these into plain simple text? Has somebody already written a tool? Sorry, I'm very new to this, but willing to learn.
    Thanks in advance.
    Jason

    This should to the job. Thx apple =)!
    <pre style="margin: 0px; border: 1px solid #aaa; width: 800px; color:#000; background-color: #ccc; overflow: auto; font-family: Verdana, Monaco, monospace;"> set web_url to quoted form of "http://discussions.apple.com/thread.jspa?threadID=2244400&tstart=0"
    *do shell script* "curl " & web_url & " | textutil -stdin -convert txt -format html -stdout"</pre>

  • Decode HTML escaped character references

    sure, I can write
    string.replace(" " , " ")
    but obviously can't do that for all Unicode character references in the world, and surely this problem must be a routine library call .... but eh ... which? I don't seem to be able to find anything by googling.
    thanks in advance

    @hugoT - thanks for the link to the list ...
    ... but eh .. I really don't want to do this myself, if there's a public library that will do it for me ... something like ... I send a string over, full of escaped character references, and get a nice and human readable string back.
    this kind of bread and butter code must be out there somewhere (i hope)

  • Html character conversion

    I have Portal Version: 9.0.2.3.0B
    I have a table containing announcements that users can enter. I'm having a problem when users enter hyperlinks into the message text.
    If a user enters the html code for a link i.e (<a href=), it is stored in the DB correctly,..that is, if i query the DB from within Navigator, the link is displayed correctly & is clickable.
    The problem comes when i pull the message text from the DB & display it within a "Providers > Shared Components > User Interface Template". Somewhere along the line, the <, >, and " are changed to &lt;, &gt; and &quot; respectively. As the page draws, those character codes are converted back into the proper characters which display on the screen BUT they are displayed instead of being interpreted as HTML code. Does that make sense? So instead of having clickable hyperlinks, the user sees the html code for the hyperlink.
    Anyway,..this is driving me nuts and i can't figure out how to stop the conversion. Any help would be appreciated.
    thanks, Chris

    I have Portal Version: 9.0.2.3.0B
    I have a table containing announcements that users can enter. I'm having a problem when users enter hyperlinks into the message text.
    If a user enters the html code for a link i.e (<a href=), it is stored in the DB correctly,..that is, if i query the DB from within Navigator, the link is displayed correctly & is clickable.
    The problem comes when i pull the message text from the DB & display it within a "Providers > Shared Components > User Interface Template". Somewhere along the line, the <, >, and " are changed to &lt;, &gt; and &quot; respectively. As the page draws, those character codes are converted back into the proper characters which display on the screen BUT they are displayed instead of being interpreted as HTML code. Does that make sense? So instead of having clickable hyperlinks, the user sees the html code for the hyperlink.
    Anyway,..this is driving me nuts and i can't figure out how to stop the conversion. Any help would be appreciated.
    thanks, Chris

  • Passing multiple character values from parameter form to PL/SQL

    Hi,
    I am passing multiple character values from parametr form into
    the report query and a PL/SQL procedure. It works fine with the
    query, when I use &variable. But, it doesn't compile in PL/SQL,
    so I just used the :variable, but not getting any records in the
    PL/SQL procedure. Any suggestions?
    sincerely,
    gj

    gj / Fedro,
    Only using the &referecne, you can pas a string / multiple character values and this would work for query only.
    The bind parameter in PL/SQL wouls support only single value
    Thanks
    The Oracle Reports Team

  • Bug in navigateToURL? (AIR HTML/JavaScript) window name parameter not working

    Hi,
    I have to popup the default browser from a HTML/JavaScript application.
    All links on the Air page should be opened in the same tab in the same browser window that was opened by the first click on a link.
    The code I use is
    var urlString = "http://www.adobe.com";
    var request = new air.URLRequest(urlString);
    air.navigateToURL(request, "myNewWindow");
    The myNewWindow parameter does not seem to be taken into account:  a new tab is opened on every click.
    I created a new Air application in Aptana and added the following straightforward code to it:
    <html>
        <head>
            <title>navigateToURLTest</title>
            <script type="text/javascript" src="lib/air/AIRAliases.js"></script>       
        </head>
        <body>   
    <a href="http://www.google.com"
                onclick="javascript:air.navigateToURL(new air.URLRequest('http://www.adobe.com'), 'AirTestWindow');return false;">New Tab</a>
            <br />
            <a href="http://www.adobe.com"
                onclick="javascript:air.navigateToURL(new air.URLRequest('http://www.adobe.com'), 'AirTestWindow');return false;">Same Tab</a>
        </body>
    </html>
    Same problem.
    Does anyone have any idea?
    Thanks

    Is there really nobody who can answer or at least try to reproduce this? 
    It's just creating a new Air HTML/Javascript application with one link with a named window target!

  • Cannot render special HTML character with Java

    I'm pretty sure this is a general Swing issue, please don't ignore this because I reference JavaHelp. When using JavaHelp and French as the displayed language, I'm having problems displaying the &#156; character (HTML entity &# 156;). Below I've included a sample HTML file, based on what my actual files looks like, which should demonstrate the problem. If I use a browser, or even Notepad, to open this file, the character displays just fine. However, in my JavaHelp popup (which uses Swings HTML renderer under the covers if I am not mistaken), all I get is a box. I've tried using the actual character and the HTML entity, but to no avail. Comments/suggestions/pointers would be greatly welcome!
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
            <style>
                li {padding-bottom: 6px; padding-top: 6px;}
                body {font-family: Helvetica, Arial, sans-serif; } td {font-size: smaller;}
            </style>
        </head>
        <body alink="#ff0000" bgcolor="#ffffff" link="#0000ff" text="#000000" vlink="#800080">
            &#156;
        </body>
    </html>Thanks,
    Jamie

    all I get is a boxSo JavaHelp is rendering it as a single character and not as the six characters &, #, 1, 5, 6, and semicolon. So far, so good. But it appears that the font JavaHelp is using is unable to render that character correctly, so you get a box.
    Can you control the fonts that JavaHelp uses? If so, try using a font that can render the &#156; character.
    PC&#178;

  • How do I display Tools Developer Page Source without HTML Character Entities, such as & and

    I am using Firefox 8.0 on Windows XP. In earlier versions of Firefox, when I would display the page source, the page would be displayed in all its original characters, including < > & and so on (including the HTML reserved characters.)
    Now when I display page source, the page source is displayed, but instead of displaying html tags,
    <p> for example,
    it will display &lt;p&gt; in the source instead.
    For a longer example, instead of displaying
    <p class="stuff">text to display</p>
    the source is rendered as
    &lt;p class=&quot;stuff&quot;&gt;text to display&lt;/p&gt;
    Is there a way to direct Firefox to display page source using all actual characters instead of using character entities?

    Clarification.
    The html tags render until it encounters this code:
    <input id="htmlHidden" type="hidden" value="&amp;lt;div id=&amp;quot;content&amp;quot;&amp;gt;
    &amp;lt;div id=&amp;quot;content-inside&amp;quot;&amp;gt;
    &amp;lt;div id=&amp;quot;content-space&amp;quot;&amp;gt;
    &amp;lt;div id=&amp;quot;about&amp;quot; class=&amp;quot;node&amp;quot;&amp;gt;
    &amp;lt;div class=&amp;quot;node-inner&amp;quot;&amp;gt;...

  • How can I decode Japanese character using java from JavaScript escape() function

    Hi:
    I have an application which supports Japanese character. I am using JavaScript escape() function to encode the text field before I posted it through web server and then I will just convert it into hex number to decode it through an Integer. It works fine for the character between ascii 1-255. However, it faild on all the double bytes character. All the unicode has the format of "%uXXXX" after it is escaped from JavaScript. How can I resolve the decoding problem?
    Thank,
    David

    Please use 'encodeURI()', though it is supported only IE after 5.5.
    I'm not sure Netscape.
    Thanks,
    Katsumi
    dwang <[email protected]> wrote:
    Hi:
    I have an application which supports Japanese character. I am using JavaScript
    escape() function to encode the text field before I posted it through
    web server and then I will just convert it into hex number to decode
    it through an Integer. It works fine for the character between ascii
    1-255. However, it faild on all the double bytes character. All the
    unicode has the format of "%uXXXX" after it is escaped from JavaScript.
    How can I resolve the decoding problem?
    Thank,
    David

Maybe you are looking for