IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Urgent! very urgent! please help

    Posted Wed December 04, 2002 02:47 AM

    X-Application Version: 3.1.3
    Tamino Version : 3.1.2.1
    Platform : Win2k Prof.
    WebContainer : Tomcat 3.3
    JDK Version : 1.3.1

    <xapp:display select=“url_link”>
    This is the link
    </xapp:display>

    If my “url_link” contains “&”, say for examples, “XXX Sex - Free Porn Videos at XXX.com”, the above code will produce

    abc

    which is absolutely wrong url!

    Thanks!
    Lun


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Urgent! very urgent! please help

    Posted Wed December 04, 2002 02:50 AM

    maybe above is not clear, the html source show

    "&"

    , rather than only a single “&”


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: Urgent! very urgent! please help

    Posted Wed December 04, 2002 02:56 AM

    sorry, it’s still not clear, sorry,
    the html source (by view source) is

    &amp;



    there is a “&”, plus 2 “amp;”, which make the url not valid,


    #webMethods
    #API-Management
    #Tamino


  • 4.  RE: Urgent! very urgent! please help

    Posted Wed December 04, 2002 08:36 AM

    Hello,

    If you don?t want content of a node is encoded, the attribute rawcontent could be useful. Try out

    <xapp:display select="url_link" rawcontent="true">
    <a href="{0}" target="_blank">This is the link</a>
    </xapp:display>
    </pre><BR><BR>Another thing we found out: in contrast to attributes JSP tags it is allowed to have JSP tag within the content of an HTML attribute. You can write your JSP code<BR><BR><pre class="ip-ubbcode-code-pre">
    <a href="<xapp:display select=?url_link? rawcontent='true' />" target="_blank">This is the link</a>



    Depends on your taste what kind of code you prefer. If you have still problems with the encoding also when using the ‘rawcontent’ flag, send another post and I will try to reproduce the problem and look for a fix.

    Bye,
    Christian.


    #API-Management
    #webMethods
    #Tamino


  • 5.  RE: Urgent! very urgent! please help

    Posted Wed December 04, 2002 09:06 AM

    Hi Christian,

    putting xapp:display/ inside href solve the problem. :slight_smile:

    but my taste would be putting inside xapp:display </xapp:display>, becoz it look more tidy, don’t have “<” inside “<”, won’t crash my html page if view by some html editor. adding rawcontent=“true” won’t help, it still encoded my link.

    I will use that quick work around before a solution comes out. thanks!

    Lun


    #Tamino
    #API-Management
    #webMethods


  • 6.  RE: Urgent! very urgent! please help

    Posted Wed December 04, 2002 09:43 AM

    Hello,

    did you try out also the ‘rawcontent’ flag with the version where you encapsulated the a tag?

    <xapp:display select="..." rawcontent="true">
    <a href="{0}">...</a>
    </xapp:display>



    It should work also. If not, I have to check this behavior. It would be a bug.

    Bye,
    Christian.


    #webMethods
    #Tamino
    #API-Management


  • 7.  RE: Urgent! very urgent! please help

    Posted Thu December 05, 2002 01:21 AM

    yes, it does not work

    <xapp:display select=“url_link” rawcontent=“true”>
    <xapp:display select=“/title”/>
    </xapp:display>


    #webMethods
    #API-Management
    #Tamino