Automatic html code generated in {module_case} output

Does anyone know a work around for the automatic spacing and carriage return that BC system generates when the {module_case} is displayed?  I have BC form that is transferring this data from BC to a third party site and the extra code being generated :
%0D = Carriage Return
%0A=line feed
Is killing the callback method of the form
Screenshot of how form looks on screen
http://screencast.com/t/aSw3pywL
Screenshot of backend with extra return
http://screencast.com/t/4xfESLGpu
Screenshot of extra code generated
http://screencast.com/t/NmlCxbGgiEC

In struts my string pritns like this
var abc = new Array(["A", "B"]);
I pass this string to JSP. and in the outputted html,
all double quotes are replaces by its equivalent ASCII "
:(

Similar Messages

  • HTML code generated by JSF compatibility

    IS it correct that HTML code generated by JSF is not AA compatible and also cannot work properly without Javascript. Can any one site some references supporting/opposing the same.

    Don't know, I'm pretty sure it does. Though, I've never used MyFaces. MyFaces is OSS and done by apache. Google it and you can find out more about it.
    CowKing

  • Problem in copy and paste html code generated from google adsense

    tell me where can i paste the html code in mozila .
    I am having account in googlemadsense and whenever i try to copy and go to paste in html it dosent work.please reply me.

    Hi Thanks for reply,but my dear freind as I written in my previous mail also that I am having account in google adsense and as per the given instructions only,when i try to paste the html code,which was generated from their adsense adposting , i try to paste that code after opening the html sources box,that code was not accepted.The html source window was slightly blocked.
    And for your information i am not try to paste any other code from any otherwebsite like word press etc
    Waiting for your reply soon.
    Kavitha

  • Effect html code of sap portal

    Hi all
    Along with our web team I am looking into re-skining the SAP portal and was just wondering if there is a way of effecting the html code generated for each page of it. I know you can change the CSS tags, images via the theme editor etc but was wondering if it was possible to actually change the html code. i.e. have the ability to remove certain <table> tags or add new div tags and assign a class to them which could them be re-styled by adding aditional code to the CSS file. Basically the more that can be accessed the better so any help/advice in this area would be much appreciated.
    Regards
    Mart

    Hi,
    for more info about Tag Library read this: [Tag Libraries Tutorial |http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html] and usage in portal this: [Layout Tag Library|http://help.sap.com/saphelp_nw2004s/helpdata/en/42/ea3a29b28e1bcae10000000a11466f/frameset.htm]
    Romano

  • HTML code displayed

    Right its like this....
    I can now get my data from my database (no small victory in itself. Thanx to all those that gave assistance). One of the fields contains HTML code
    <p>blah blah etcWhen the jsp displays the output it is actually showing the HTML code, not the rendered output... viewing source shows that it has been written to the response as
    & lt;p & gt;blah blah blah.....(needed the spaces to show it correctly!)
    Any clues as to why and what I can do to about it?
    Thanks
    Elija

    do a replaceAll.., if you are using Java 1.4
    String str = orig.replaceAll("& lt;", "<").replaceAll("& gt;", ">");
    You might need escapes for some of those chars for the regex parser. Or this older code I had laying around:
          * Decodes any entities in the specified string with their character
          * equivalents. 
          * @param  str  the encoded string
          * @return  the decoded string
         private String decodeEntities(String str) {
              if(str == null) {
                   return null;
              StringBuffer sb = new StringBuffer(str);
              String[] ents = {     // list of entities to replace
                   "&",      "<",      ">",      "&apos;", """
              String[] chars = {     // list of characters to replace with
                   "&",      "<",      ">",      "\'",      "\""
              int len = Math.min(chars.length, ents.length);
              int k = 0;
              for(int i = 0; i < len; i++) {
                   for(int j = 0; j < sb.length(); j++) {
                        k = j + ents.length();
                        if(k >= sb.length()) {
                             break;
                        if(sb.substring(j, k).equals(ents[i])) {
                             sb.replace(j, k, chars[i]);
              return sb.toString();

  • Modifying default html code used for publishing

    Apologies if this is a duplicate - my machine locked up.
    To meet security requirements of our site -- I need to have
    the references in the html code generated when publishing swf
    w/html use https rather than http.
    I've found references to modifying the html code generated
    but wondered if there is a way to modify the default code rather
    than each time I publish. I found the references in two places in
    the html: codebase="
    http://download... and pluginspage="
    http://www.macromedia... The
    company that reviewed us needs to have these both reference https
    rather than http.
    Any suggestions? Thanks!

    Hi hdms and welcome to our community
    Indeed, Captivate has "seed" files that it uses. You should
    probably investigate modifying them.
    For Captivate 1, look here:
    C:\Program Files\Macromedia\Captivate\Templates\Publish
    For Captivate 2, look here:
    C:\Program Files\Adobe\Adobe Captivate 2\Templates\Publish
    Cheers... Rick

  • Has HTML code changed since DW8?

    I was able to remedy my Hot Spot issue posted earlier by copying code generated from old DW8 files into a DWCS5 page. I've been resorting to this workflow since I upgraded to CS5 because it doesn't seem to generate good code using the so-called automated tools. Has HTML coding lauguage changed since DW8 and is it different for CS5?
    I'm still also not clear about using some of DW's automated tools to generate code. I was told in earlier discussions that I should maually code because DW's various tool sets don't generate good HTML, DW is mostly used as a layout and FTP tool.  Should I rely on Page breeze or a similar HTML editor instead?  And what version of HTML should I use?
    Or should I go back to using DW8?

    Indie767 wrote:
    Has HTML coding lauguage changed since DW8 and is it different for CS5?
    Yes and no. HTML 4.01 and XHTML 1.0 have remained unchanged for the past 10 years. So HTML code generated by DW8 and CS5 is identical. The difference is that Dreamweaver CS5 with the 11.0.3 updater also supports HTML5, which is expected to become the new standard in years to come. Dreamweaver CS5 does not use any of the new HTML5 tags unless you create them manually in Code view.
    I was told in earlier discussions that I should maually code because DW's various tool sets don't generate good HTML, DW is mostly used as a layout and FTP tool.
    I don't know who told you that, but it sounds like a load of nonsense to me. Dreamweaver generates good, clean HTML, provided you use the program correctly. However, having a good understanding of HTML and CSS is a basic requirement of using Dreamweaver efficiently.
    And what version of HTML should I use?
    That's not such an easy question to answer. Some people advocate using HTML5, because it's "the future". Others advise caution, because the HTML5 specification isn't yet complete, and not all browsers support some of its features. To avoid confusion, I would recommend using HTML 4.01 at the moment. HTML5 builds on top of HTML 4.01, so making the transition should be very easy. However, in the final analysis, it doesn't really matter which one you choose. Make a decision, stick with it, and learn how to use it properly.

  • JNI code generator

    Hi all
    We are planning to use a library(written in fortran) for a particular data format (all binary).we also have the "C Wrappers" around the fortran code.We cannot re-write the whole thing in java since it was written around 20 yrs back and we don't have any knowledge of fortran,also it takes lot of man power to learn and understand and then re-implement it.So we are looking for a automatic JNI code generator for these C wrappers.
    I found that there's one called SWIG but user recommendation was less for it.so do we have any other tools available??
    thanks
    Sree

    You may also create a DLL from the C wrapper then use a generic Java/DLL wrapper to call those exported functions.
    There are plenty of generic wrapper, commercial or free.
    For example JNative is the tool I develop under LGPL and use.
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to generate html-code using csv input with JSP or JAVA???

    Hello,
    I want to read out a .csv-file and generate html-code dynmically with JSP in an EP6 Application. The problem is, that the csv-file can’t be located or openend.
    BTW if every knows a good tutorial or weblog for this, please post the link.
    It’s located in a par-archive under:
    />dist>files
    I tried various methods, in the doContent mehtod or with JSP. Everytime same result.
    Here part of the code I tried in the doContent():
    public class CSV extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
            String strWRoot = request.getWebResourcePath();
            String contentCSV="", line="";
            String linesep = System.getProperty("line.separator");
            File fileLoadCSV = new File(strWRoot+"/files/ma_infosysteme.csv");
            boolean exCSV = fileLoadCSV.exists();
            boolean reCSV = fileLoadCSV.canRead();
            int a=0;
            if(exCSV&&reCSV){
                response.write("ok");
                try {
                  BufferedReader inputCSV = new BufferedReader(new FileReader(fileLoadCSV));
                  while((line=inputCSV.readLine())!=null){
                    contentCSV=contentCSVlinelinesep;
                    a++;
                  inputCSV.close(); 
                catch(IOException ioex){
                    System.out.println("Fehler");  
            else {
                response.write("not ok");
            response.write("<br>Wroot: "+strWRoot);
            response.write("<br>File: "+fileLoadCSV);
            response.write("<br>exists: "+exCSV);
            response.write("<br>read: "+reCSV);
            response.write("<br>Input: "+contentCSV);
    The Output is:
    not ok
    Wroot: /irj/portalapps/DHTML
    File: \irj\portalapps\DHTML\files\ma_infosysteme.csv
    exists: false
    read: false
    Input:
    So thanks to everyone who can give me a good hint.
    Bye.

    Without really looking too much into this it looks like the problem is with the way in which you are trying to open the file. I believe that when creating a File object you need to use a physical path. By using the getWebResourcePath() method you are retrieving the URL to this file and not the physical path name. There is another method (can't remember the exact name) called getPublicResourcePath() (or something similar) which will return the physical path to this file, i.e. c:\usr\sap\.....etc. If you try it this way it may well work
    I hope this helps
    D

  • ADF generated HTML code performance issue

    ADF generated code has lot of unnecessary html tags (when you check in Firebug). browser takes time to load the page . It means performance low.
    As a Front end engineer . My aim is to give end user good browsing feeling , he doesn't like to weighting till page loads.
    So from end user perspective page should load faster.
    Normal Html pages and other applications i have full control over html code.
    But in ADF , i don't have full control over all html tags ,which is generated by server dynamically.
    So, can anyone suggest how i can improve my page loading performance ?

    Anil,
    so in real - world terms, what you are saying is that a Ferrari 360 which has a weight of 1,350 kg is slower than a FIAT Panda, which only weights 840 kg. There is a catch to this theory of yours:
    1. ADF Faces is based on JavaServer Faces, which is a component based framework for writing web based applications. Renderer classes are used to build the user front end. It is not the intention of JSF to allow application developers - but component developers - to tweak the generated component output. If you want something lean, use the default JSF HTML component set, which comes extremely light (but also with less functionality - like a Fiat Panda)
    2. Performance is not alone defined by the HTML downloaded to a client - especially given that static HTML can be cached in browsers and ADF supports page templating for this. There are other factors that play in to this like network bandwidth, latency, query time, business logic execution time, image sizes, CSS and JavaScript
    3. The real load in ADF Faces, as in other AJAX frameworks, is JavaScript. Most of the ADF Faces functionality is created dynamically on the client side using JavaScript objects
    4. ADF Faces has more complex components than HTML. If you compare a HTML table with the table rendered in ADF, you see a difference in the look and behavior
    Btw, here's the tuning guide for ADF: http://download.oracle.com/docs/cd/E21764_01/core.1111/e10108/adf.htm#CIHHGADG . You also may want to test and consider partial page navigation, which speeds up page to page navigation big times.
    Frank

  • RH Automatically Changing HTML Code for Links

    For some reason, RH is doing something to the links I create. In my stylesheet, I have the following code for links:
    a {
        color: #054abc;
        cursor: pointer;
    a:hover {
        color: #336699;
        text-decoration: none;
    a:active {
        color: #333333;
    When I create a link, the HTML code looks like this *at first*:
    <a href="Development_Plan.htm">Development Plan</a>
    But then, after I save the file and switch to HTML view, the code looks like this:
    <a href=" Development_Plan.htm" style="color: #0000ff; text-decoration: underline; ">Transcript</a>
    I am not doing anything other than saving the file, and that apparently causes RH to automatically add the style (color and text-decoration). Why is RH adding that? It's causing my links not to change color when you hover over them.
    How can I make RH stop doing that, so my links display as defined in the stylesheet?

    Hi,
    This is strange behaviour. How exactly do you create a hyperlink? I have seen this behaviour only with links that are empty or contain a single space.
    As a workaround, in your css, add the !important declaration to your hover styles:
    a:hover
    Although this isn't an elegant solution, it will overwrite the inline styling of the link and thus change colour on hover.
    Greet,
    Willam

  • Why does Contribute generate extraneous HTML code?

    Why does Contribute CS4 generate so much extraneous HTML code that is either redundant or conflicts with styles specified in our style sheet?  Below are examples of what we've encountered in the first two weeks of using the product.  It seems that, if we keep using Contribute, our website will soon be cluttered with junk code.  (Some of the special characters listed below and generated by Contribute do not display correctly in this forum.)
    1.       This simple Heading 1 tag: <h1>Heading 1</h1>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:times new roman;font-size:16px;"><strong><span style="font-family:verdana; font-size:15px;">Heading 1 </span></strong></span></p>
    2.       This simple Heading 2 tag: <h2>Heading 2</h2>
    gets replaced with this code:
    <p><span style="font-family:times new roman;font-size:16px;"><strong><span style="font-family:verdana; font-size:13px;">Heading 2</span></strong></span></p>
    3.       This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <span style="font-family:verdana;"> </span><p style="margin-top:0;margin-bottom:0;"><span style="font-family:times new roman;font-size:16px;">Text<span style="font-family:verdana;font-size:13px;">Text</span></span></p>
    4.       The standard straight quote symbol (&quot;) gets replaced with left and right quotes (&ldquo;) (&rdquo;)
    5.       Apostrophe’s get replaced with “&rsquo;”.
    6.       Odd, non-visible (in some browsers) characters are inserted, like: “”.
    7.       Dashes get replaced with these special characters, which may not display in all browsers: “—”.
    8.       This non-standard style tag gets inserted at the top of some pages:
    <!--
    .style1 {font-size: 15px}
    -->
    </style>
    9.       Trademarks, which are reliably denoted with just ”&trade;”, get replaced with this code and these special characters, which may not display in all browsers: “<span style="font-size:12px;">â„¢</span>”.
    10.   The simple Heading 1 tag: : <h1>Heading 1</h1>
    gets overridden with this code:
    <h1><span style="font-family:times;font-size:16px;"><span style="font-family:arial;font-size:15px;color:black;">Heading 1</span></span></h1>
    11.   This simple Paragraph tag: <p>Text</p>
    has the inappropriate “ServNAV” navigation style applied to it:
    <p class=”ServNAV”>Text</p>
    12.   This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:Times New Roman;font-size:15px;"><span style="font-family:verdana;font-size:12px;color:#333333;">Text</span></span></p>
    13.   Extra filler space gets inserted at the bottom of a page with this code:
    <p style="margin-bottom: 0;"> </p>
    14.   Internal links are created as absolute (<a href="http://www.company.com/subfolder/Client-One.html">) rather than relative links ()<a href="../subfolder/Client-One.html">.
    15.   Links to other sites are coded incorrectly,
    as in “<a href="www.company.com">www.company.com</a>”
    instead of: “<a href="http://www.company.com">www.company.com</a>”.
    16.   This simple bold Paragraph tag: <p><strong>About Company</strong></p>
    gets replaced with this
    <p style="margin-bottom: 0;"><strong>About Company</strong></p>
    17.   This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:times new roman;font-size:16px;"><span style="font-family:verdana;font-size:13px;">Text</span></span></p>
    Message was edited by: JerryWeb

    I've just written a detailed list of editing tips for our internal use that, in addtion to using "Paste Text Only", describe how to avoid or re-key Microsoft Office curly quotes and apostrophes, use only Contribute's Insert | Special Characters, etc.
    In addition, I created a new role in which I made the following changes:
    Under Editing, under“General editing restrictions”, checked the “Prevent users from inserting images (except shared assets); under “Paragraph spacing, changed so “Enter key moves insertion point down:” “Two lines, as in web page editors (uses standard <p> tags”; under “Other editing options”, unchecked “Allow multiple consecutive spaces”
    Under Styles and Fonts, under “Styles and Fonts”, unchecked “Include CSS styles in the Style menu; unchecked “Allow users to apply fonts and sizes”; and unchecked “Allow users to apply font color and background color”.
    Under New Pages, unchecked “Create a blank page”
    Our initial experimentation indicates this eliminates most of the extraneous and junk HTML code that Contribute otherwise introduces. Time will tell. However, it requires contributors to be pretty rigorous.

  • How to input password automatically with below html code

      I want to display one pdf file with password(I know the password) on website.How to input password automatically
    with below html code:
    <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="760" height="411" border="0">
          <param name="_Version" value="65539">
          <param name="_Password" value="1234">
    it seems <param name="_Password" value="1234"> does not work.
    Is there any way to input password of PDF file automatically on server side so that Client user don't need to input password.

    Not possible.

  • Change html code in page you're viewing automatically

    How to make firefox automatically edit certain html code on certain web pages
    Like on webpages I can right click inspect element and it will allow me to delete things off the page.
    I want this to happen automatically for certain webpages when containing certain html code

    I tend to write custom scripts for this sort of thing, but for a couple of more general purpose removers, you could investigate these:
    * "Remove it Permanently" can be trained to remove items from a page every time you visit. I believe it works by right-clicking what you want to remove. https://addons.mozilla.org/en-US/firefox/addon/remove-it-permanently/
    * A review on that page recommended Element Hiding Helper, which is a companion add-on for Adblock Plus. If you already use Adblock Plus, this is probably a more efficient combination. https://addons.mozilla.org/en-US/firefox/addon/elemhidehelper/

  • Generate HTML code via JSP

    hi!
    I want to 'run' a JSP and then retrieve the generated HTML code.all without any browser/tomcat...
    is there a way to run JSP's in the virtual machine..?
    greetz
    chris

    we have some templates (generated with dreamweaver), there we want to fill in the dynamic content by java (JSP tags...)
    but in the end we don't have to show the html code on in the browser, we need a fix HTML file which we can print (the dynamic content filled in..)!
    any ideas
    chris

Maybe you are looking for