Sorry about first try : how to avoid html-text tag converting & to & amp;

subject
how to avoid html:text tag converting "&" to "& amp;"?
body
hi,
i have some values on DB like "& #351;" and when i use html:text to
show binding's value, html:text converts "&" to "& amp;". in generated
html, it looks like "& amp;#351;".
how to avoid this conversion?
thanks...
Ayhan G�ng�r
note: i use white-space among special characters because browser renders them. ex : (& amp; to &)

hi, i use property attribute of html:text.
property is declared in UIModel xml file.
i mean, i don't use something like
<html:text value="data"/>i use just like
<html:text property="bindingName"/>and value is shown in generated html input tag as value.
html:text has no attribute like filter.
i think i should override html:text tag, and create a new tag that checks if value includes "& #351;" this type data. If there is, don't convert "&" to "& amp;"?
any suggestions?
thanks...
Ayhan

Similar Messages

  • html:text tag

    Hi everybody,
    I am new to Struts concept. I am trying to develop astruts application. I am writing one textbox on that I want call one javascript function for onchange event my html:text tag looks like the following:
    <% int i=0; %>
         <logic:iterate id="ts" name="loginForm" property="timesheet">
         <td>
    <% i+= ; %>
         <html:text property="worked_Hours" name="ts" onchange="findTotal(<%= i %>)"></html:text>
         </script>
         </td>
         </logic:iterate>
         </tr>
    My intention in this code is I am creating the textbox control array. So I want to send that i variable value to that findTotal() javascript function. But the compiler instead of putting i value in the findTotal() function it is putting the code like this
    <input type=text name="worked_hours" value="8" onchange="findTotal(%= i %>).
    How can I get the value of i in the resultant jsp page.
    Please reply me soon.
    Thank you all,
    Varma

    When using custom tags, and specifying a dynamic attribute, always put <%= %> for the entire attribute
    Try this:
    <html:text property="worked_Hours" name="ts"
      onchange="<%= "findTotal(" + i + ")" %>" ></html:text>

  • Struts html:text tag background colour

    How to change the background colour of Struts <html:text> tag?

    styleClass and styleId, you can put css value on it

  • Value not resolved in html:text tag at weblogic

    I've a jsp working fine at tomcat, but after i migrate it to weblogic, some of the html:text tags are not working properly.
              eg. <html:text property="dispParamValue" styleClass="formFill1line" value="${sysvarList[rowCount].dispParamValue}" />
              Instead of displaying the value of ${sysvarList[rowCount].dispParamValue} like "abc", it displays the tag itself "${sysvarList[rowCount].dispParamValue}" at the text field at weblogic.
              My Weblogic version details are as follows:-
              Server info = WebLogic Server 9.0 Sun Jul 3 21:15:00 PDT 2005 598247
              Servlet engine version = 2.4
              Java version = 1.5.0_03-b07
              Anyone has encountered the same problem before? any difference in the server settings that i need to take note of?

    Just to clarify, the EL is supported by a J2EE 1.4 server which corresponds to Servlet2.4 / JSP2.0
    What version of Weblogic are you using?
    You can find out the version of the spec your server supports with the following JSP snippet.
    <h2> Server Info </h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    Java version = <%= System.getProperty("java.vm.version") %><br>Also note to activate the EL in your webpages in a JSP2.0 container, your web.xml file must declare itself as being version 2.4 (if you leave it at 2.3 it disables EL for backwards compatibility)
    Cheers,
    evnafets

  • How to specify HTML meta tags?

    I'm trying to get a portal to always have the following an HTML meta tag in the head of the generated HTML:
    <meta name="ROBOTS" content="NOFOLLOW" />
    I haven't seen any documentation about doing this in particular, but looking at some of the XML schema (*.xsd) files in various weblogic-specific jars, it seems like maybe the following would work in the <netuix:head> tag of the .portal configuration file for the portal:
    <netuix:head>
    <netuix:meta name="ROBOTS" content="NOFOLLOW" />
    </netuix:head>
    However, this does not seem to work.
    Also, I've checked the skin.properties file to see if there are any comments about how to specify meta tags, but there aren't any.

    Turns out there are a number of ways to do this. A BEA consultant recommended modifying the "head.jsp" for the portal's skin.
    Alternatively, it dawned on me that all I had to do was put the meta tags in a jsp and use that jsp in the head area of the .portal file. For example:
    <netuix:head>
    <netuix:jspContent contentUri="/resources/jsp/customHead.jsp"/>
    </netuix:head>

  • How to use bean write in  struts html:text tag

    hi,
    i'm new to struts concepts.here i'm trying to write a value in html struts tag using <bean:write>
    my current tag is
    <html:text property="empname" value='<bean:write name="employee" property="empid">' />
    but it gives same tag in the text box.how i can solve this.

    what am I doing wrong?You will notice above that I mentioned
    YOU CAN'T USE CUSTOM TAGS AS ATTRIBUTES TO OTHER CUSTOM TAGS
    (was that loud enough for you to notice this time)?
    Try
    <html:text styleId="instruction" styleClass="text" size="50" name="instruction" property="value"/>
    //or
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction" value="<%= instruction.getValue() %>"/>
    better alternative: populate your formbean with your action and just have:
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction"/>
    If you set the "instruction" property of your formBean in the action, the value will be automagically reflected here.
    Cheers,
    evnafets

  • How to avoid extra div tags, when we add components using cq:include

    I tried using the below code in my component jsp from forums to remove those extra div tags when we try to add components using <cq:include tags.
    <%
       if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
           IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE);
    %>
    But this code helped to remove most of the extra div tags , but still adds this extra div tag to the first component I add using  <cq:include tag.
    its a basic and very critical necessity to maintain our markup design,But due to this  dynamically added extra div tag will hinder the html and css behaviour of the page.
    Appreciate your help to resolve this issue.
    Thanks

    Hi,
    Can you try below if you really dont want to include anything during include.
    <%
    IncludeOptions opts=null;
       if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
    opts= IncludeOptions.getOptions(request, true);     
    opts.forceSameContext(Boolean.TRUE);
    opts.setDecorationTagName("");
    %>
    Thanks,
    Pawan

  • How to avoid the dialogue when converting from context menu

    This is a follow-up to http://forums.adobe.com/message/2016146#443364 which was locked due to a bug.
    i would like to know how i can avoid the 'save as' dialogue when using the context menu to convert a word file to pdf using windows XP/acrobat 8/word 2007.
    so far, it always prompts me for the filename, which is annoying as it does not allow me to batch-convert several files and let the thing run its course.
    the solution provided by Steve in the other thread does not work - even if the plugin from word does not propt for a filename, it still does when triggered from explorer/context menu.
    so back to square one: how to avoid that dialogue when not opening word at all?
    cheers, thanks for any help. michael

    For a permanent change, START>PRINTERS>right click on Adobe PDF printer and select properties>General>Printing Preferences>Adobe PDF Settings. Under the settings tab, uncheck the box related to asking for a name. Pretty sure that is the location, but it may vary with version.

  • How to Display Html Text with Image

    HI Frens,
    I am getting some html text from a source, Later i want to
    display that data, but it may happened that it has some images in
    it. Currently I am using text area to display it.
    Now My question is if there is any image will it show, as we
    can see it in our mails? if Not, Which component I should use for
    this?
    I also want that I need to select some file from, How can i
    get open dialog box here?
    Thks in Advance for replies frens:
    Ashish Mishra

    Hi Ashish,
    If I have understood your requirement properly, u want to
    display html text on a flex application.
    I think there its better if you use the html component to
    display the text. I have a sample code which will give you a
    direction to think on.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="initApp( )">
    <mx:Script>
    <![CDATA[
    public function initApp( ):void
    var initHtml:String = "<html><head> \
    <title='Page Example'/> \
    <body bgcolor='#ccddee'><h1>Page
    Example</h1> \
    <p>This is a complete <b>HTML</b> \
    page as a
    <em>string</em>.</p></html></body>";
    this.html.htmlText = initHtml;
    ]]>
    </mx:Script>
    <mx:HTML id="html" width="100%" height="100%" />
    </mx:Application>
    Also do you want a file open dialog box??

  • How to print html text created with HTML Editor Standard?

    I would like to print the text I added with the HTML Editor Standard, using advanced printing. I have made up a Word document with a Report Query and a Report Layout, but the text pops up as html text. Also when I use HTML as output the text shows as "p strong hallo /strong /p" (but then with < and >) instead of hallo . I understand what goes wrong, but I am unable to solve it. Is there a way to work around this?
    Thanks a lot, Frits
    Edited by: user3829016 on 10-nov-2009 5:51
    Edited by: user3829016 on 10-nov-2009 5:52
    Edited by: user3829016 on 10-nov-2009 5:53

    Thanks Lilly a lot!
    I forgot about this tag. It helps in my situation.
    P.S. I tried to solve problem with help of tag <pre> in such way:
    some_word<pre>     </pre>some_wordBut it didn`t helped.
    Thank you again

  • How to avoid sorrouding p tag added by the default text component on editing a text in a page

    We are using Default Text component(foundation/components/text) within a CQ5 Page. The text component is automatically adding a <p> tag surrounding the text in the text area. We would like to control this behavior of auto addition of the <p> tag in the text component. Please suggest us a solution to avoid the <p> tag around the text.
    Here is the brief backgroud- We are doing a migration of html pages into CQ5. The editable sections of the page are converted to CQ5 Text components with in the page. While we are creating the page from the backend, we are not adding the <p> tag surrounding the page. However after creating the page, if users goes to the page and edits a text block within a page, the additional <p> tags are getting added which is disturbing the styling.
    Let us know if we need to provide more information on this.
    Thanks & Regards,
    Vamsi

    Hi Vamsi,
    I am facing same kind of issue.
    As of now I am thinking of overritng the css applied by this <p/> tag.
    If this p tag is fallowing same strucute then though of putting reqular expression to catch hold of this tags on the page.
    Some thing like it always creates with id
    <p id="cq-gen246"></p>
    <p id="cq-gen253"></p>
    <p id="cq-gen254"></p>
    Do you have any better approach..

  • How to use HTML 'pre' tag in ADF pages

    Hi,
    I am using adf 11.1.1.6.0 and trying to print some formatted text from log files. It can contain either xml / log file with new lines / tabs.
    When I use hte UIX / Regular jsp, I am able to use the <pre> tag and retain the output format form end user.
    When I am migrated the same application to ADF, I am not able to get the desired output format.
    Here are my trials:
    <af:outputYext> with escape="true" : Entire output is displayed in a single paragraph. All new line/formatting has gone.
    <af:outputYext> with escape="false" : Page itself is not painting as the logout put has some special characters.
    <af:richTextEditor> readonly = true : Taking out all xml tags with in the output log
    I tried with f:verbatim as shown
    <f:verbatim><pre> </f:verbatim>
    #{dojStep.displayStepOutput}
    <f:verbatim></pre></f:verbatim>
    In this case, I get the following error: "End tag does not match start tag 'pre'."
    Can you please suggest the alternative to use the html pre tag in ADF world to print the el expression data as it is.
    Thanks,
    -Jaya.

    Hi,
    have a outputText.. with escape="false"
    and in #{dojStep.displayStepOutput} have it like this
      public String displayStepOutput(){
    StringBuilder sb = new StringBuilder();
    sb.append("<pre>");
    sb.append("your text");
    sb.append("</pre>");
    return sb.toString();
    }example-
    <af:outputText value="#{dojStep.displayStepOutput}"/>

  • How to enable html:text on some condition

    HI,
    I am trying to enable and disable a text field on clicking radio buttons. I am able to disble the form, but I am not able to enable it back.
    <TD>
    <INPUT type="radio" name="radPreYesNo" value="Y"
    onClick='javascript:document.Page3Form.txtYesNo2.value="Y",
    document.Page3Form.agr_num.disabled= "false"'>Y
    <INPUT type="radio" name="radPreYesNo" value="N"
    onClick='javascript:document.Page3Form.txtYesNo2.value="N",
    document.Page3Form.agr_num.disabled= "true"'>N
    </TD>
    This is the text field that I want to make editable..
    <TD width="20%" align="right">Agreement Number</TD>
    <TD width="20%"><html:text property="agr_num" maxlength="20"
    style="width:100px;border:none" />
    </TD>
    Thanks for any help in advance..
    Johnson

    HI ,
    I found what was wrong ;o) The problem was the quotes ( " " ) for false.
    When I say
    'document.Page3Form.agr_num.disabled= "true"'>
    When the value for disabled is anything other than false, the text field is disabled. When I gave
    'document.Page3Form.agr_num.disabled= true'>
    it worked.
    :o)

  • How to insert html table tag in flash.

              i am trying to insert my html table format into flash... but flash doesn't support that html table tags....
    i'm creating a filp book for help manual..  In that we use flash  and html tags... His there any other way to insert html table in to flash...
    give ur suggestions..
    thanks.

    As you say, Flash does not support html table tags.  Create your own tables using textfields and if you need borders around cells use either textfield borders or lines surrounding the textfields.

  • EF 5 Model First Approach- How to avoid Table names from pluralized

    I'm using Entity Framewrok 5.0 Model First approach using Visual Studio 2012 express. The generated database tables are pluralized. How do I avoid this? Please advice. I'm using Model First approach (Designed the entities in the EF designer and generated
    the Database.) . Please note that following technic does not apply to this scenario as it applies to code - first approach.
    using System.Data.Entity.ModelConfiguration.Conventions;
    protected override void OnModelCreating(ModelBuilder modelBuilder)
    modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();

    Hi Arasheed,
    Welcome to the MSDN forum.
    I tested your problem. It seems a default setting that Table names are pluralized. If you want to avoid pluralizing, you can do it manually:
    Right click the empty area and select “Generate Database from Model…”.
    Choose the correct connection and click “Next”.
    You will see the generated DDL. Please copy all the content, then click “Cancel”.
    Click “Data” on the Visual Studio bar and select “Tansact-SQL Editor”. Then click “New Query Connection…”.
    Connect to the right server.
    Paste the DDL we copied before.
    Modify the table creation lines. Note: do not forget to change the corresponding name in constraints.
    Right click the empty area and click “Execute SQL”.
    In addition, you can submit your feature requests here to improve Entity Framework:
    http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestions
    Good day.
    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us

Maybe you are looking for

  • Static Events

    What is the main purpose of using static events in ABAP?

  • NSP (SAP NW2004s ABAP AS 7.00 SP8) does not start anymore

    Hi all, I installed SAP NW2004s ABAP Trial Version SP8 and was able to work with it. Since today I get a timeout error when starting the Application Server. I tried to start the MaxDB instance with the SAP MMC but I do not know the user and/or passwo

  • Multiple Parameter form windows

    Hello, can i open multiple parameter form windows for different reports from forms? Both forms and reports are 11G. thanks.

  • The application does not have a card CREATIVE CLOUD [Android]

    I have a problem with App - Adobe Acrobat DC. I am a Polish citizen. I have a smartphone SAMSUNG SIII with App Adobe Acrobat DC. I have subscription plan Creative Cloud. I would like to testing the effect of pdf files in the cloud but on my device no

  • Regular Expression Filter Mapping In Web.xml

    I have a situation where I need to filter URL's that don't have a file extension. There are hundreds of URL's, so i can't specify each one separately. From what I understand, you can have a filter mapping in web.xml to map certain file extensions to