JDev 10.1.2 : ampersand eacute; converted to ampersand amp;eacute;

Hello all,
I am writing an interface that will offer to the users the possibility to enter standard HTML escaping sequence for accentuated characters like for example <ampersand>eacute; (because they do not have this particular character on their keyboard). Those characters are stored as-is in an Oracle database.
When using interfaces developed with JDev 10.1.2, either with uix or jsp, those characters are well extracted from the database but are converted at display time to <ampersand>amp;eacute; (this is visible in the html source code of the page). This makes those characters displayed as <ampersand>eacute; to the user, where I would like them to be displayed as é (this conversion should be done automatically by the browser if the original character has not been modified by the interface).
Is there a way with JDev to make a particular field of the database be displayed without being translated (<ampersand> converted to <ampersand>amp;)? Or is there any workaround to this issue?
Here is the code of my interface (.jsp generated with JHeadstart, but this seems to be more a JDev issue):
<td class="prompt" nowrap="nowrap">Description</td>
<td nowrap="nowrap">
<c:out value="${bindings.InstituteDescription}"/>
</td>
Thanks in advance for your reply.
David

By default <c:out/> tag "escapes" the output, option escapeXml is implicitly true
To change this behaviour add the option: escapeXml="false"
In your case:
<c:out value="${bindings.InstituteDescription}" escapeXml="false"/>
Hope it helped.
Regards
Fred

Similar Messages

  • Jhs 10.1.2 : ampersand eacute; converted to ampersand amp;eacute;

    Hello all,
    First of all congratulations to the whole team of JHeadstart for the great job you are doing. I am evaluating different products to generate standard to complex database interfaces and Jhs looks very promising to me.
    Now on with the trouble: my interface will offer to the users the possibility to enter standard HTML escaping sequence for accentuated characters like for example <ampersand>eacute; (because they do not have this particular character on their keyboard). Those characters are stored as-is in an Oracle database.
    When using JHeadstart generated interfaces, either with uix or jsp, those characters are well extracted from the database but are converted at display time to <ampersand>amp;eacute; (this is visible in the html source code of the page). This makes those characters displayed as <ampersand>eacute; to the user, where I would like them to be displayed as é (this conversion should be done automatically by the browser if the original character has not been modified by JHeadstart).
    Is there a way with JHeadstart to tell that a particular field of the database should not be translated (<ampersand> converted to <ampersand>amp;)? Or is there any workaround to this issue?
    Thanks in advance for your reply.
    David

    David,
    Thank you for the kind words, and you haven't seen 10.1.3 yet :-)
    You can achieve what you want by telling the UIX item to not escape html characters. You do this by using a <rawText/> element rather than the generated messageTextInput element.
    In 10.1.2, you need to make this change post-generation, and then switch off page generation for this group to preserve your post-generation change.
    In 10.1.3 you keep your page generatable by creating a custom item template for all items in your app that should not escape html.
    Steven Davelaar,
    JHeadstart Team.

  • Convert smart quotes and other high ascii characters to HTML

    I'd like to set up Dreamweaver CS4 Mac to automatically convert smart quotes and other high ASCII characters (m-dashes, accent marks, etc.) pasted from MS Word into HTML code. Dreamweaver 8 used to do this by default, but I can't find a way to set up a similar auto-conversion in CS 4.  Is this possible?  If not, it really should be a preference option. I code a lot of HTML emails and it is very time consuming to convert every curly quote and dash.
    Thanks,
    Robert
    Digital Arts

    I too am having a related problem with Dreamweaver CS5 (running under Windows XP), having just upgraded from CS4 (which works fine for me) this week.
    In my case, I like to convert to typographic quotes etc. in my text editor, where I can use macros I've written to speed the conversion process. So my preferred method is to key in typographic letters & symbols by hand (using ALT + ASCII key codes typed in on the numeric keypad) in my text editor, and then I copy and paste my *plain* ASCII text (no formatting other than line feeds & carriage returns) into DW's DESIGN view. DW displays my high-ASCII characters just fine in DESIGN view, and writes the proper HTML code for the character into the source code (which is where I mostly work in DW).
    I've been doing it this way for years (first with GoLive, and then with DW CS4) and never encountered any problems until this week, when I upgraded to DW CS5.
    But the problem I'm having may be somewhat different than what others have complained of here.
    In my case, some high-ASCII (above 128) characters convert to HTML just fine, while others do not.
    E.g., en and em dashes in my cut-and-paste text show as such in DESIGN mode, and the right entries
        &ndash;
        &mdash;
    turn up in the source code. Same is true for the ampersand
        &amp;
    and the copyright symbol
        &copy;
    and for such foreign letters as the e with acute accent (ALT+0233)
        &eacute;
    What does NOT display or code correctly are the typographic quotes. E.g., when I paste in (or special paste; it doesn't seem to make any difference which I use for this) text with typographic double quotes (ALT+0147 for open quote mark and ALT+0148 for close quote mark), which should appear in source code as
        &ldquo;[...]&rdquo;
    DW strips out the ASCII encoding, displaying the inch marks in DESIGN mode, and putting this
        &quot;[...]&quot;
    in my source code.
    The typographic apostrophe (ALT+0146) is treated differently still. The text I copy & paste into DW should appear as
        [...]&rsquo;[...]
    in the source code, but instead I get the foot mark (both in DESIGN and CODE views):
    I've tried adjusting the various DW settings for "encoding"
        MODIFY > PAGE PROPERTIES > TITLE/ENCODING > Encoding:
    and for fonts
        EDIT > PREFERENCES > FONTS
    but switching from "Unicode (UTF-8)" to "Western European" hasn't solved the problem (probably because in my case many of the higher ASCII characters convert just fine). So I don't think it's the encoding scheme I use that's the problem.
    Whatever the problem is, it's caused me enough headaches and time lost troubleshooting that I'm planning to revert to CS4 as soon as I post this.
    Deborah

  • How to convert Date format from yyyy mm dd   to   dd mmm yyyy in ADF

    Hi,
    I have Date Format in Data Base as yyyy mm dd, but in the UI I want to display the format as dd mmm yyyy, which code I have to write to get the required format in JDev 11.1.2.3

    Hi,
    Use converter : &amp;lt;af:convertDateTime&amp;gt;
    See also : convertDateTime Demo
    -Arun

  • Ampersand character encoding in generated xml

    Hi,
    I'm generating xml from my relational database tables using XSU. I'm having a problem where my table column contains data with the ampersand symbol as in 'Black & White'. XSU generates my xml but i can't parse the generated xml till i convert the '&' to '&amp;'.
    Is there a way to tell XSU to encode these symbols in the generated xml? I would like to avoid storing the encoded data in my relational tables like 'Black &amp; White'.
    I'm using the XDK for PL/SQL for Unix 9.2.0.3.0 on Oracle 8.1.7.3.
    I would appreciate if someone could help me out with this issue.
    Thanks,
    Sanjit
    [email protected]

    I've got the same problem but not only with the & but also with strange characters like
    Belgik -> k
    Comiti -> i
    Its something like {( returns..
    Is this a bug or something?
    Thanks in advance, Didier

  • How to convert Special charachter in SAP PI

    Hi SAP PI Team,
    I am working on SAp PI 7.31 single stack .
    I have a requirement to convert the special character into entity reference as seen below.
    Name
    Character
    Entity Ref
    Quotation mark
    &quote;
    Ampersand
    &amp;
    Apostrophe
    &apos;
    Less than sign
    <
    &it;
    Greater than sign
    >
    &gt;
    Could you please check and let me know if i will have to parse the entire xml or is there any other way to achieve this.
    Regards
    Ravi

    Hi Stefan,
    The input  looks like this as seen below :
    And the required output should be as seen below :
    Regards
    Ravi

  • & is converted to &

    Hi,
    We have a problem in which we are getting data from one source system which contains "&" in it.
    This data is received in SOA and in transformation its being converted to &amp;
    Then SOA is calling a database Adapter. Hence its being saved in the same format(&amp;) in the database.
    Can we do someting so that "&" is preserve as "&".
    Also sometime source system sends data as "&amp;" then also I need equivalent character of this i.e. "&".
    Any suggestions is highly appreciated.
    Thanks,
    Ashu

    following piece of java embedding code solved the problem for me.
    Where raw_Msg= Message with wrong value of ampersand (&amp;).
    Str_var= Output Message which will have correct representation of ampersand (&)
    *<bpelx:exec name="Java_Embedding_Sp_Char" version="1.5" language="java">*
    *<![CDATA[*
    try
    setVariableData("Str_Var", ((String)getVariableData("raw_Msg")).replaceAll("&","&amp;") );
    catch (Exception e)
    setVariableData("javaException", e.getMessage() );
    *]]>*

  • Retrieve the jdev project from the ear file

    I have an ear file, but I've lost the original jdev project.
    How can I retrieve the project from the ear file?
    I would know if there's a function in jdev or with another tool to convert an ear file to the original project in jdeveloper.
    Thanks.

    Try the File->Import menu option.

  • Converting time stamp to double

    Hello,
    I am currently using the write to spreadsheet file.vi to save data.
    It looks something like this:
    I also want to add the date and time stamp into the saved data but do not know a way of converting a date and time stamp to 'double format'. When the date and time stamp is in teh double format I can easily concatenate the data stream with the 'date and time' in a 2-D array.
    Thanks,
    Nevica

    Duplicate post
    http://forums.ni.com/t5/LabVIEW/converting-time-st​amp-to-double/td-p/1181397
    Tim
    Johnson Controls
    Holland Michigan

  • Cannot produce the ampersand character in an output ile

    We are using DBMS_XMLQuery to select some stuff from thedatabase (8.1.7) and output as XML in a CLOB.
    We pass transform this CLOB to a text output file (not html) by passing the above result to the xmlparser package.
    Our stylesheet looks like
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/" >
    testing
    </xsl:template>
    </xsl:stylesheet>
    OK, we're just trying to get anything to appear!!!
    Obviously this fails. Replacing ampersand with 'ampersand amp;' causes hash number tobe output (38 I think).
    I'd really like to get an ampersand out the end of this.
    I have tried enclosing the ampersand amp; in <xsl:text> - no good
    <xsl:text disable-output-beffering> - no good
    I've tried CDATA, using <xsl:output type="text" /> at the start of the stylesheet, all to no avail.
    I've searched this forum, lots of similar questions but no relevant answer (I'm new to this stuff).
    Help!!!!!!!!!!!!!!

    Apologies for replying to my own posting (although I would greatly appreciate someones elses reply), I decided to try out oraxsl from the unix command line. Sure enough, it output the ampersand as an ampersand and not a code. Therefore, I must have something wrong in the plsql code that sets up the parser.
    Heres the code - I think we got it from the online docs. I've chopped out the comments and debug, hopefully I didnt chop out any code :)
    PROCEDURE gen_file(dir varchar2, p_clob clob, xslfile varchar2, resfile varchar2, errfile varchar2) is
    p xmlparser.Parser;
    xmldoc xmldom.DOMDocument;
    xmldocnode xmldom.DOMNode;
    proc xslprocessor.Processor;
    ss xslprocessor.Stylesheet;
    xsldoc xmldom.DOMDocument;
    docfrag xmldom.DOMDocumentFragment;
    docfragnode xmldom.DOMNode;
    xslelem xmldom.DOMElement;
    nspace varchar2(50);
    xslcmds xmldom.DOMNodeList;
    begin
    -- new parser
    p := xmlparser.newParser;
    xmlparser.setValidationMode(p, FALSE);
    xmlparser.setErrorLog(p, dir &#0124; &#0124; '/' &#0124; &#0124; errfile);
    xmlparser.setPreserveWhiteSpace(p, TRUE);
    xmlparser.setBaseDir(p, dir);
    xmlparser.parseclob(p, p_clob);
    xmldoc := xmlparser.getDocument(p);
    xmlparser.parse(p, dir &#0124; &#0124; '/' &#0124; &#0124; xslfile);
    xsldoc := xmlparser.getDocument(p);
    xslelem := xmldom.getDocumentElement(xsldoc);
    nspace := xmldom.getNamespace(xslelem);
    xmldom.getExpandedName(xslelem));
    xslcmds := xmldom.getChildrenByTagName(xslelem, '*', nspace);
    ss := xslprocessor.newStylesheet(xsldoc, dir &#0124; &#0124; '/' &#0124; &#0124; xslfile);
    proc := xslprocessor.newProcessor;
    xslprocessor.showWarnings(proc, true);
    xslprocessor.setErrorLog(proc, dir &#0124; &#0124; '/' &#0124; &#0124; errfile);
    docfrag := xslprocessor.processXSL(proc, ss, xmldoc);
    docfragnode := xmldom.makeNode(docfrag);
    xmldom.writeToFile(docfragnode, dir &#0124; &#0124; '/' &#0124; &#0124; resfile);
    -- deal with exceptions
    exception
    when xmldom.INDEX_SIZE_ERR then
    raise_application_error(-20120, 'Index Size error');
    when xmldom.DOMSTRING_SIZE_ERR then
    raise_application_error(-20120, 'String Size error');
    when xmldom.HIERARCHY_REQUEST_ERR then
    raise_application_error(-20120, 'Hierarchy request error');
    when xmldom.WRONG_DOCUMENT_ERR then
    raise_application_error(-20120, 'Wrong doc error');
    when xmldom.INVALID_CHARACTER_ERR then
    raise_application_error(-20120, 'Invalid Char error');
    when xmldom.NO_DATA_ALLOWED_ERR then
    raise_application_error(-20120, 'Nod data allowed error');
    when xmldom.NO_MODIFICATION_ALLOWED_ERR then
    raise_application_error(-20120, 'No mod allowed error');
    when xmldom.NOT_FOUND_ERR then
    raise_application_error(-20120, 'Not found error');
    when xmldom.NOT_SUPPORTED_ERR then
    raise_application_error(-20120, 'Not supported error');
    when xmldom.INUSE_ATTRIBUTE_ERR then
    raise_application_error(-20120, 'In use attr error');
    end gen_file;
    null

  • &#174 converts to

    i need to enter
    &#174 into the database, but when i use documentbuilder it converts it to &#174; in the xml
    when i display the xsl fo (<xsl:value-of.......) using that xml the symbol shows up as
    &#174; in plain text and not the symbol
    is there any way to get the symbol to show?
    thanks

    small correction, the documentbuilder converts it to & amp ; # 1 7 4; in xml

  • How to Parse Escape Character(&) with JSP Include URGENT

    Hi,
    I guess anyone could help me out.
    I have a JSP file where I am including another JSP file and setting parameter for that include file. Among those parameters one of the parameter is having a value having ampersand with it. like R&D. In such case am i getting following error.
    I dont know how should I get rid of this &.
    I tried converting it to amp; even tried \\& also tried using escape("R&D"). But no success. Can you guys help
    Code:
    <jsp:include page="../hottopics/controller_hottopics1.jsp" flush="true">
    <jsp:param name="UserID" value="<%=username%>" />
    <jsp:param name="kmsid" value="<%=kmsid%>" />
    <jsp:param name="department" value="<%=department%>"/>
    <jsp:param name="location" value="<%=location%>"/>
    <jsp:param name="supportorg" value="<%=supportorg%>"/>
    <jsp:param name="supportflag" value="<%=supportflag%>"/>
    </jsp:include>
    department : R&D
    Error :
    java.lang.IllegalArgumentException
    at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:151)
    at org.apache.tomcat.facade.RequestDispatcherImpl.addQueryString(RequestDispatcherImpl.java:546)
    at org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherImpl.java:388)
    at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:270)
    at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
    at ITHelpAlerts_0002dv_00034._0002fITHelpAlerts_0002dv_00034_0002fgadget_0002ejspgadget_jsp_7._jspService(_0002fITHelpAlerts_0002dv_00034_0002fgadget_0002ejspgadget_jsp_7.java:210)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:534)

    Okay, not surprising. Like I said, the & has special meaning in URLs, to seperate one parameter from the next. Perhaps you should thing about using request attributes instead of parameters:
    request.setAttribute("department", "R&D");
    //then on recieving side
    String department = (String)request.getAttribute("department");

  • XML to PCL: Problem with special characters, entity referenceses, etc.

    I (an XML beginner) am trying to produce PCL (escape sequences, you know) documents from XML using the PL/SQL parser and I'm having the following problems:
    1. I need the escape character either in the XSL file, or in the XML, but this results in the error:
    Error occurred while parsing: Invalid char in text.
    2. I also need the character &. I tried to use the entity reference for & but the result was that it's converted to ampersand-#-38; (without the hyphens, of course) in the parsed file.
    3. I have to use characters from the German alphabet (umlauts) but it seems that I'm not the only one who doesn't like them! I tried changing the encoding (ISO-8859-1 or -2) in my XSL file but the error is always:
    Error occurred while parsing: 6-byte UTF8 encoding not supported.
    How can I get all these characters in the result file?
    Thanks for any info on the subject!

    I am having this same trouble. I want to have an XML document that has ISO-8859-1 encoding that contains an (ampersand)amp; character entity. When I apply XSL to this, I want the (ampersand)amp; entity to remain intact. Instead it is converted to (ampersand)#38; Please let me know if you find an answer to this problem. [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Penn ([email protected]):
    I (an XML beginner) am trying to produce PCL (escape sequences, you know) documents from XML using the PL/SQL parser and I'm having the following problems:
    1. I need the escape character either in the XSL file, or in the XML, but this results in the error:
    Error occurred while parsing: Invalid char in text.
    2. I also need the character &. I tried to use the entity reference for & but the result was that it's converted to ampersand-#-38; (without the hyphens, of course) in the parsed file.
    3. I have to use characters from the German alphabet (umlauts) but it seems that I'm not the only one who doesn't like them! I tried changing the encoding (ISO-8859-1 or -2) in my XSL file but the error is always:
    Error occurred while parsing: 6-byte UTF8 encoding not supported.
    How can I get all these characters in the result file?
    Thanks for any info on the subject!<HR></BLOCKQUOTE>
    null

  • DBAdapter output XML special charachters

    Hi
    I am calling a stored proc in OSB via a DBAdapter. The output is in the XML form. There is an issue I am facing . Not sure if it is a bug in DBAdapter or some configuration issue at my end.
    Assume one of my column output is Tom & Jerry then the XML output is "Tom amp; Jerry". But if my column output is Tom&Jerry (Note:There is no space between the ampersand and the 2 words) then the & is not replaced to "amp;" .I guess it is converting the & to "amp;" only when it is a whole word.
    help appreciated.
    PS: I have deliberately removed the & before the amp; for readability purpose.
    Regards
    Edited by: getroshan on Feb 8, 2011 12:50 AM

    Just to update you, I tried the same thing with Oracle XE db (varchar2 type column) and OSB 11.1.1.3 and everything worked as expected (used alert and log action to confirm) i.e. '&' is getting escaped with "amp" in both the cases.
    Regards,
    Anuj

  • Pop up not displaying in Task Flow application?

    Hi...
    I have a button which displays a popup on its click event.
    When i converted this application to a task flow application this stopped working.
    My button code :
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service =Service.getRenderKitService(facesContext,ExtendedRenderKitService.class);
    service.addScript(facesContext,"var popup = AdfPage.PAGE.findComponent('pAddPopup'); popup.show();");
    where pAddPopup is pop up window's id.
    Edited by: Lovin_JV_941794 on Mar 11, 2013 4:33 AM

    Hi,
    jdev version??
    When i converted this application to a task flow application this stopped working.what does this mean? you always get a better answer once you post your question properly.
    This video covers how to use a taskflow as popup : http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p2/taskflow-overview-p2.html
    ~Abhijit

Maybe you are looking for

  • IPhoto '11 refusing to detect ANY new faces in imported photos

    I've been using iPhoto forever.  It's always "just worked."  I just got back from vacation and imported all of my photos.  After deleting half of them and doing only some very minor "tweaks" (adjusting levels, etc.) to a few of them, I wanted to name

  • Mac freeze during the night sleep.

    After system upgrade from 10.9.5 to 10.10 frequently I encontering computer lock with blank screen after resume from sleeping in the morning. Everyday I leave computer to sleep with all my apps open (Oracle Virtual Box 4.3.18 ,Java IDE, Finder , Mozi

  • AppleScript to change artboard reference point? CS5

    Hi, I'm very new to scripting - just stumbled across it as I was researching tools to tackle an extremely repetitive project. One of the functions I should very much like to automate is changing the artboard reference point to top-left and then set t

  • Apple Script command on background image

    Hello, So the thing is. I want to creat this apple script that would react only when i switch to a certain space. I searched in the interent and found out that the Mac has no easy way of finding out, on which space it is on, so my questions is. Would

  • Error message 403 when connecting to live stream

    message 403 says that I don't have access. how do i get access?