Use Transformer tag within HTML tag

Does anyone know how to use the transformer tag within the HTML tag? I couldn't get it to work...
I.e <input type="hidden" name"id" value="<pt:userInfo name='EmployeeID' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>">
The example above didn't give the actual value...the <pt> tag never got parsed...
I even tried with the <c:set> JSTL tag as well, same result...the <pt> tag never got parsed...
Please advise!
Thanks
BC

You can work around this with JavaScript:
<input type=&#034;hidden&#034; id=&#034;myHiddenField&#034; value=&#034;&#034; />
<script type=&#034;text/javascript&#034;>
var employeeID = &#034;<pt:userInfo name='EmployeeID' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>&#034;;
document.getElementById('myHiddenField').value = employeeID;
</script>

Similar Messages

  • Ssi tags within html tags

    My ssi tags are processing fine as long as they are not inside of
              other html tags. example: (works)
              <title><servlet name=ServletName><param name=tag value=title>
              </servlet></title>
              (doesn't work)
              <body bgcolor="<servlet name=ServletName><param name=tag
              value=background>
              </servlet>" >
              Does anyone know of a work around? Thanks
              

    No, you cannot use HTML.
    As for the formatting. All that the api offeres is available....

  • Dynamic text box generation in jsp page by using net-ui jsp html tags

    Hi All,
    I Need to generate the "TextBoxes" Dynamically by using the "Net-UI HTML Tags".How can i do this ?
    I am using
    1. WebLogic portal server 8.1 sp4 (Workshop dev environment)
    2. JavaPageFlow Applications
    3. Net-UI tags html jsp
    I need to generate the textboxes dynamically and i have to
    get those values in the page flow .
    How it is possible by using the "Net-UI Tags".
    Thanks In Advance,
    KiranBabu.Karusala

    how we create dynemic text box in jsp based one value which we give at runtime

  • Can i use JSF tags and HTML tages Together

    i am trying to use html and JSf tages together. i hope it should owrk. but for me html tags are not working.
    can any one help me

    thanks
    its working but i have one more clarification
    can we wuse jsf tags in javascript
    for examp
    this my javascript using html
    newQuotCell1[0].innerHTML='<input type=text class=TextField name="nameofEmployer'+count1+'">';
    if i want to write a jsf tage there . does it allow
    i want to bind the textfield with bean value . Is it possibel.
    please let me know.
    thansk in advance

  • How to use add image in HTML tag

    Hello frndz
                     i  m working on text chat application in adobe  air.using <mx:html/> tag for dispalying text and  images(smiley).but the font size fo flex is diffrent and html diffrent.i  mean i m using 10 font size but it looks too large on  <mx:html/>  component.is there any way to cast them in same size.
    The second and major problem is that it can not add images to html  tag.when i m giving images like:-private var txt:String="<img  src='src\smily\tongue.gif'/>" .
    it shows nothing but when i give images through http path it shows  images on html componenet.
    can any body explain me the problem.
    Thanks And regards
      Vineet Osho

    thanks Alot René Bühling for  your quick reply.but the link u mentioned ith reply is not working for  me.
    ok can u tell me how can i manage my flex font  size 10 to  <mx:html tag 's font size 10.
    i think there is large difference  between flex font and html font.so please guide me for that.
    Thanks  Alot
    Vineet osho

  • Using jsp variables within JSP tag

    I have a variable defined within a JSP:
    <%
    String cust_id = request.getParameter("cust_id");
    %>
    I want to use this variable as a parameter to a custom tag:
    <%@ taglib uri="/tlds/DBTags.tld" prefix="db" %>
    <db:MultiColumnSelect columns="c.id, c.po" name="ccar_id" table_name="ccar_headers c, ccar_rmas r" selectString="r.ccar_id = c.id AND c.cust_id = <%= cust_id %>"/>
    The selectString value that is passed to my tag is:
    r.ccar_id = c.id AND c.cust_id = <%= cust_id %>
    The <%= cust_id %> is not replaced by the actual variable value.
    How would I accomplish using this variable within my JSP tag?

    Your definition of the selectString attribute must indicate that it can accept runtime expressions.
    <%
    String cust_id = request.getParameter("cust_id");
    String selectString = new String("r.ccar_id = c.id AND c.cust_id = " + cust_id);
    %>
    <%@ taglib uri="/tlds/DBTags.tld" prefix="db" %>
    <db:MultiColumnSelect columns="c.id, c.po" name="ccar_id" table_name="ccar_headers c, ccar_rmas r"
    selectString="<%= selectString %>"/>

  • How do I use a tag within a tag?

    I have a tag that takes a variable input that is produced from another tag. But I can't figure out how to use the output of one, as the input for another. I'm using the value produced as a value for a form. ex
    <input type="text" value="<x:tag var="<x:tag2/>"/>"/> is there a certain way to do this?

    You can't use JSP custom tags as attributes for other JSP custom tags.
    You can only use runtime expressions like <%= expr %> or in JSP2.0 ${expr}
    The snippet you have given looks ok, as the <input type="text"> is just HTML template text, and not a JSP custom tag.
    Your <x:tag> looks a little confused, as you have an opening and closing, and the quotes don't seem to match up with 'var="
    <input type="text" value="<c:out value="${username}"/>">

  • Javazoom UploadBean - using UploadBean properties within jsp tags

    I am working on a jsp web application and integrating the UploadBean from javazoom.net into it. I am using a MySQL database to capture all informaion about mp3 files being uploaded - filename, date, filetype, etc.
    Can someone guide me as to whether it is possible to reference the properties of the UploadFile class within a jsp tag?
    What I am trying to do is this - I want to capture the filename of the file I upload and store it in a MySQL database. Within the SimpleUpload.jsp page, the filename is accessed within scriplet code as follows:
    file.getFileName();
    (Where file is a variable representing an instance of the UploadFile class, and getFileName() is a method in this class that returns the file name you are uploading).
    What I would like to do is use this method so that this same filename can be used in a a sql:update tag to populate a database with the filename and with the other details of the file which is uploaded.
    Can anyone advise as to if this is possible and how? I tried to create a sql:update statement to populate the database with the result of file.getFileName();
    The problem is that the sql:update jsp tag can't see the file.getFileName() object and method - it doesn't know about this object and method.
    Thanks!

    I'd still appreciate an answer to this if anyone can help.
    Thanks.

  • Grab Values within HTML Tag

    <div class="primary-title-and-description">
    <h1>
    Title Here
    </h1>
    <p>
    Paragraph Here
    </p>
    </div>
    <div class="secondary-title-and-description">
    <h1>
    Secondary Title Here
    </h1>
    <p>
    Secondary Paragraph Here
    </p>
    </div>
    Hi
    I am trying to get the values within the <h1></h1> only from the <div class="primary-title-and-description">. How do I go about doing that?
    I tried my luck with the below code but no joy. What I did was copy the above code and save it as test.html and I use the code below.
    $test = gc test.html | % { [regex]::matches( $_ , '(?<=<div class="primary-title-and-description">\s+)(.*?)(?=\s+</h1>)' ) } | select -expa value
    $test
    I did not get any response from the powershell. What have I done wrong? Should I use xml method to get the values?
    Thanks

    Hi
    Thanks for the code. I have this issue here.
    I used the DownloadString($url) from a URL and thus there is no way to do a -raw on that. And when I use
    $url -replace ("`t|`n|`r","") -match 'primary-title-and-description"><h1>(.*?)</h1>'
    $matches[1]
    I don't get any results.
    Thanks

  • Struts tag within struts tag

    Hi, i'm trying to preselect my dropdown list in my jsp page from a value inside a javabean:
    <td>
             <html:select property="value(profType)" value="<bean:write name="item" ignore="true" property="profType"/>">
              <html:option value="postpay">POSTPAY</html:option>
              <html:option value="prepay">PREPAY</html:option>
              <html:option value="differential">DIFFERENTIAL</html:option>
              <html:option value="prepay-differential">PREPAY-DIF</html:option>
             </html:select>
         </td>However, I'm sure this isn't legal so is there another way to preselect the value?

    Sorry it was a little abrupt.
    Struts can work both ways.
    Yes it takes the values from your html form, and maps it into your form-bean for you.
    Great stuff.
    However it can also take it from your form-bean and display it on the html form.
    If you don't specify a value for the field, it will try and look it up using the name/property attributes of the tag.
    Your property value(profType) would indicate that you are using a map backed form? If your form contains that value it should be able to populate the select box for you using that property.
    ie all you should need is this:
    <html:select property="value(profType)">
    or maybe
    <html:select name="item" property="profType")>
    As you have noticed you can't nest custom tags as attributes to other custom tags. You can only use runtime expressions.
    If you have JSP2.0 container then you could probably write it as
    <html:select property="value(profType)" value="${item.profType}">

  • Custom html tags with JEditorPane

    I'm trying, to use my own tags within html in the JEditorPane. An insert parses without exception but the html in the pane is missing the custom tags that I attempted to insert. I have tried to use the 'setPreservesUnknownTags' command on the html document, but it appears to have no affect. This is the code I have been trying to use:
    edtHTML.insertHTML(docHTML, 0, "<p><my:link id=\"12\">ABC</my:link></p>", 0, 0, HTML.Tag.P);
    I have also tried
    edtHTML.insertHTML(docHTML, 0, "<my:link id=\"12\">ABC</my:link>", 0, 0, new HTML.UnknownTag("my:link"));
    Can anyone help?
    Thanks

    I have no example for custom Tags but I found out that every tag is stored as an attribute.
    You can access the attributes if you use a JTextPane. There is a method (i don't know the name yet I will find out tomorrow in the office) which gives you the AttributeSet of each Character at the Carent position. All characters have an attribute "name" and the value of this attribute should be the name of the tag you've inserted.
    The only problem is that I had to read out every character so it's quit slow.
    If you could find a better solution please let me know ([email protected]).
    Thank you.
    J&ouml;rn

  • How to Read a program with  HTML tags from SO10

    Hi All,
    I have a html program in Standard text (SO10).But when I am trying read the program content using FM:  READ_TEXT, the html tags <b> </p> etc are creating problem. 
    They are retrieved as <(><<)>b>.
    What should we do to get same/original text as in SO10?  Is there any other FM for that? Any other way to achieve this?
    Thanks & Regards,
    Vimalan Ram

    here is the code sample.
    after reading the text using READ_TEXT you have to use CONVERT_ITF_TO_ASCII to convert the contents.
    DATA: itf_tab TYPE STANDARD TABLE OF   tline ,
    wa_itf TYPE tline .
    DATA: c_datatab TYPE tdtab_c132 .
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       client                        = sy-mandt
        id                            = 'ST'
        language                      = sy-langu
        name                          = 'Y_RAJA_HTML'
        object                        = 'TEXT'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        = HEADER
      TABLES
        lines                         = itf_tab
    EXCEPTIONS
       id                            = 1
       language                      = 2
       name                          = 3
       not_found                     = 4
       object                        = 5
       reference_check               = 6
       wrong_access_to_archive       = 7
       OTHERS                        = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
    EXPORTING
    *   CODEPAGE                = '0000'
    *   FORMATWIDTH             = 72
       language                = sy-langu
       tabletype               = 'ASC'
    *   TAB_SUBSTITUTE          = ' '
    *   LF_SUBSTITUTE           = ' '
    *   REPLACE_SYMBOLS         = 'X'
    *   REPLACE_SAPCHARS        = 'X'
    IMPORTING
    *   FORMATWIDTH_E           = FORMATWIDTH_E
    *   X_DATATAB               = X_DATATAB
       c_datatab               = c_datatab
    *   X_SIZE                  = X_SIZE
      TABLES
        itf_lines               = itf_tab
    EXCEPTIONS
       invalid_tabletype       = 1
       OTHERS                  = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • How can I nest tag within each other

    Hello,
    I am trying to nest a tag within another tag as follows:
    <h:selectitem itemValue="<fmt:formatDate value="${d}" pattern="yyyy-MM-dd hh:mm:ss" type="both"/>" itemLabel="Today"/>d is a java.util.Date variable.
    Tomcat won't accept that. What am I getting wrong?
    Thanks in advance,
    Julien.

    I don't think taglibs could be other's attribute value.
    Try using attributes:
    <fmt:formatDate value="${d}" pattern="yyyy-MM-dd hh:mm:ss" type="both" var="anyDate"/>
    <!-- Is a custom tag lib? Use pageContext.findAttribute("anyDate"); -->
    <h:selectitem itemValue="anyDate" itemLabel="Today"/>
    <!-- Does your container accept EL? (Tomcat 5 does) -->
    <h:selectitem itemValue="@{anyDate}" itemLabel="Today"/>

  • HTML tags: img alt="" element title=""

    Has anyone managed to have the "alt" tag on an image <img src="abc.gif" alt="my image descriptor"> or the title tag (such as in ) work in the JavaHelp. If so, how did you accomplish the task. I have exhausted every avenue and have not been able to get those tags to work. They display fine in all browsers (IE, Moz, Firefox and Netscape), I am baffled.
    Furthermore, I have still to be able to get any of the org.netbeans.modules.javahelp.* to work of the JavaHelp. Checked all params and values, they are correct, but all i get in the JavaHelp are the cursed ??. Is their a file or library that needs to be included at the top of the HTML file?
    Thanks
    Pablo

    I have posted similar items in every blog i could think of in order to fetch an answer. Unfortunatelly, my belief is that JavaHelp is unable to support the alt and title tags within html code.
    TY Balus
    ps I wish I could award more stars for an answer to this dilema...
    Edited by: pablodiaz on Dec 4, 2008 9:21 PM

  • HTML tags img src="Pic.gif" alt="blah..." a href="file" title="blah..."

    Has anyone managed to have the "alt" tag on an image <img src="abc.gif" alt="my image descriptor"> or the title tag (such as in ) work in the JavaHelp. If so, how did you accomplish the task. I have exhausted every avenue and have not been able to get those tags to work. They display fine in all browsers (IE, Moz, Firefox and Netscape), I am baffled.
    Furthermore, I have still to be able to get any of the org.netbeans.modules.javahelp.* to work of the JavaHelp. Checked all params and values, they are correct, but all i get in the JavaHelp are the cursed ??. Is their a file or library that needs to be included at the top of the HTML file?
    This question is also posted in JavaHelp Blogs
    Thanks
    Pablo

    I have posted similar items in every blog i could think of in order to fetch an answer. Unfortunatelly, my belief is that JavaHelp is unable to support the alt and title tags within html code.
    TY Balus
    ps I wish I could award more stars for an answer to this dilema...
    Edited by: pablodiaz on Dec 4, 2008 9:21 PM

Maybe you are looking for