To display value in html: textarea in struts

Hello,
I want to display value in <html:textarea> in struts application from my userdefine FormBean.
i tried like this
<html:textarea property="documentNumberList" value='"<bean:write name="QualityForm" property="displayDocumentNumber">" ></html:textarea>
I am not getting success.
I would be appriciate to you if anyone could let me know what is the solution of this problem ? or send me one example.
Thanks
Rajnish
[email protected]

Hi,
That did'nt solve my problem. Actually i am trying to get the arraylist data one by one into different textareas. There are two arrays one is quesArray and the other quesIdArray. I need the quesIdArray in the individual text areas.How can i achieve this?
I am using the following code to do that.
<logic:iterate id="item" name="selectionCriteriaForm" indexId="index" property="quesArray">
<tr><td><li><em><b><bean:write name="item"/> </em></li></b></td>          
<td><html:textarea property="quesIdArray" cols="50" rows="2" name="selectionCriteriaForm" onkeyup="limitTextarea(answer<%=i %>,5,50)" />          
<br></td></tr>
<% i=i+1;
%></td></tr>          
</logic:iterate>
Pls help me on this.
Thanx in advance.

Similar Messages

  • Include a display value in HTML footer

    hi guys,
    I am trying to make a report and i included a HTML footer in the report for signatues ,now i have a value in the same page i want it to be included in the report besides the "rceptionest Signautre"it can be ??can i include a value from the page to be displayed in HTML footer ???anybody can help me
    this is the code
    <p align="left"> </p>
    <p align="left"> </p>
    <table border="0" width="696" id="table1" >
         <tr>
              <td width="315" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" style="text-align: left">
              <b>Patient Signature:            </b></td>
         <p align="left"> </p>
              <td width="371" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" style="text-align: left">
              <b> Receptionest Signature:</b></td>
         </tr>
    </table>

    Hi NightCabbage ,
    I have a report that it will be printed from the receptionest i included space at the bottom of the report in the page footer
    like this one Receptionest Signature
    by using HTML code as following :
    <p align="left"> </p>
    <p align="left"> </p>
    <table border="0" width="696" id="table1" >
         <tr>
              <td width="315" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" style="text-align: left">
              <b>Patient Signature:            </b></td>
         <p align="left"> </p>
              <td width="371" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" style="text-align: left">
              <b> Receptionest Signature:</td>
         </tr>
    </table>
    and i have a display value that displays the cashier name ,how can i add the the cashier name from the display value into the html code to be displayed besides the signature
    help me plesase,
    Thank you in Advance,
    Ahmed ,

  • How to set default value for html:file in struts

    hi
                   i am working on an application using struts situation is i am using the
    <html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie                the user wish to upload that default file the default file get uploaded on page submition.     Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this.     thanks in advance

    www.google.com?q=STRUTS+DOCUMENTATION

  • Struts "bean:write" in "html:textarea"

    Hi,
    i want to write a bean with bean:write to a html:textarea
    how can i do this?

    Hint:
    <html:textarea ...>
        <bean:write ... />
    </html:textarea>

  • Unable Submit Form Value to Action when running struts-portlet in OracleAS

    Hi,I have develop a portlet using struts & pdk, after that deploy it by OC4J and register the
    provider at Oracle Application Server 10g 10.1.2.2.
    However the formbean value is unable passing to action after clicking submit button,this problem
    doesn't comeout when i run my code as stand alone application.
    here is my application code:
    1. Action Class:
    public class ZoneAction
      extends DispatchAction
      public ActionForward display(ActionMapping mapping, ActionForm form,
                                   HttpServletRequest request,
                                   HttpServletResponse response)
        throws IOException, ServletException
        ZoneHibernate zh = new ZoneHibernate();
        List list = zh.retrieveAllZone();
        ZoneForms zf = new ZoneForms();
        ZoneForm blankForm = new ZoneForm();
        list.add(blankForm);
        zf.setZoneForms(list);
        request.setAttribute("zoneForms", zf);
        return mapping.findForward("success");
    2.Provider.xml:
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
       <session>true</session>
       <passAllUrlParams>true</passAllUrlParams>
       <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
          <id>1</id>
          <name>irmsPortlet</name>
          <title>iRMS Portlet</title>
          <description></description>
          <timeout>40</timeout>
          <showEditToPublic>false</showEditToPublic>
          <hasAbout>false</hasAbout>
          <showEdit>false</showEdit>
          <hasHelp>false</hasHelp>
          <showEditDefault>false</showEditDefault>
          <showDetails>false</showDetails>
          <renderer class="oracle.portal.provider.v2.render.RenderManager">
             <renderContainer>true</renderContainer>
             <renderCustomize>true</renderCustomize>
             <autoRedirect>true</autoRedirect>
             <contentType>text/html</contentType>
             <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
             <defaultAction>/jsp/zone_maintenance.jsp</defaultAction>
             </showPage>
          </renderer>
       </portlet>
    </provider>
    3. Action Mapping in struts-cofig.xml:
      <action-mappings>
        <action path="/ZoneMaintenance"
                type="my.com.irms.action.ZoneAction"
                name="zoneForms"
                scope="request"
                parameter="action"
                input="/jsp/zone_maintenance.jsp">
          <forward name="success" path="/jsp/zone_maintenance.jsp"/>
        </action>
      </action-mappings>
    4.jsp:
    <pdk-html:form action="/ZoneMaintenance.do">
    -div id="action"-<pdk-html:hidden name="zoneForms" property="action"/>-/div-
    <logic:notEmpty name="zoneForms" property="zoneForms">
    <table border="1">
    <thead>
                <tr>
                    <th><bean:message key="zone.zone"/></th>
                    <th><bean:message key="zone.disc"/></th>
               </tr>
    </thead>
    <tbody>
    <logic:iterate id="zone" name="zoneForms" property="zoneForms" indexId="i">
                <tr id="tr${i}">   
                    <td>
                      <pdk-html:hidden name="zoneForms"
                                      property="zoneForms[${i}].rowStatus" value=""/>
                      <pdk-html:hidden name="zoneForms" property="zoneForms[${i}].id"/>
                      <input type="checkbox" onclick="update()">
                    </td>
                    <td><pdk-html:text name="zoneForms"
                                           property="zoneForms[${i}].zone" size="10"       
                                           onchange="rowDataChanged('tb1',${i})"/></td>
                    <td><pdk-html:text name="zoneForms"
                                           property="zoneForms[${i}].disc" size="30" 
                                           onchange="rowDataChanged('tb1',${i})"/></td>
                </tr>
    </logic:iterate>
    </tbody>
    </table>
    <input type="button" value="Submit" onclick="submitForm('save')"/>
    </logic:notEmpty>
    <input type="button" value="Display" onclick="submitForm('display')"/>
    </pdk-html:form>
    5.javascript for submitForm():
      function submitForm(param)
            document.getElementById("action")
           .getElementsByTagName("input")[0].value = param;
            document.forms[0].submit();
    6.web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app>
      <description>Empty web.xml file for Web Application</description>
      <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>
              org.apache.struts.action.ActionServlet
        </servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>
               /WEB-INF/struts-config.xml
          </param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet>
        <description>Extended Portal
                     SOAP  Server</description>
        <servlet-name>SOAPServlet</servlet-name>
        <servlet-class>
               oracle.webdb.provider.v2.adapter.SOAPServlet
        </servlet-class>
        <init-param>
          <param-name>resourceServletMapping</param-name>
          <param-value>/pdkresource</param-value>
        </init-param>
      </servlet>
      <servlet>
        <description>Image resource server</description>
        <servlet-name>ResourceServlet</servlet-name>
        <servlet-class>
             oracle.webdb.provider.v2.adapter.ResourceServlet
        </servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>SOAPServlet</servlet-name>
        <url-pattern>/providers</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>SOAPServlet</servlet-name>
        <url-pattern>/providers/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>ResourceServlet</servlet-name>
        <url-pattern>/pdkresource/*</url-pattern>
      </servlet-mapping>
      <session-config>
        <session-timeout>35</session-timeout>
      </session-config>
      <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
      </mime-mapping>
    </web-app>
    Can anyone help me? thanks.

    It is probably easier to do with with a standard tag than the <html:button> tag, as it means you can nest the
    <input type="button" name="more" value="more" onclick="setID(<bean:write name="bloodbankList" property="id"/>)"/>or maybe like this:
    <bean:define id="bbId" name="bloodbankList" property="id"/>
    <html:button property="More" value="More" style="color: #00007D; text-transform: uppercase; letter-spacing: 2pt; background-color: #6B719C; border: 2 solid #00007D"   onclick="<%= "setID(" + id + ");" %>" />Cheers,
    evnafets

  • Dynamically scrollable html:textarea

    Hi,
    Can someone please tell me how to make a html:text area scrollable and dynamic(rows are populated from DB). I am using struts and am populating in the jsp page using logic:iterate tags.

    An HTML textarea becomes scrollable as soon as it's content spans rows greater than the display. This is automatically done by the browser. You need to specify how may rows the textarea should display ( this decides how large it will be, vertically ) and that's it.

  • Values having html tags not getting populated while using AJAX in APEX

    Hi,
    I am using AJAX to populate certain values in a tabular report.
    I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049)
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular(pValue, pRow){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    get.add('T_ROWNUM',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    if(gReturn){
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    </script>
    And I have the application process as follows
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f05_000' || :T_ROWNUM || '">' || :TEMPORARY_APPLICATION_ITEM || '</item>');
    HTP.prn ('</body>');
    END;
    If I have :TEMPORARY_APPLICATION_ITEM as 'Vikas' it gets displayed properly but if I have '&lt;b&gt;Vikas&lt;b&gt;' it shows null. if it has any HTML tags function l_Opt_Xml.firstChild.nodeValue is not working properly .Please tell me what modiifcation can I use in function l_Opt_Xml.firstChild.nodeValue to get Values with HTML tags also to get displayed.
    Thanks,
    Vikas

    Vikas,
    Try escaping special characters: htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)Regards,
    Dan

  • How to get selected text values in a textarea by mouse click?

    Hi Everyone,
    What I am trying to do is to click on some texts in a textarea, then get the selected text value.
    If you guys have used an accounting software called Simply Accounting, you might understand better.
    I list all my customer names in a textarea. What I want is, when I click on one customer, another GUI pops up with this customer's information. My problem is that I don't know how to get the selected text value from a textarea.
    Could anyone give a hand here? Thank you in advance.

    Is there some reason you aren't using a JList or
    JTable to display
    the user names/information?Thank you for es5f2000's reply. You just gave me a better idea! There is not a particular reason I have to use TextArea to list my customers. As long as the component can make my idea alive, I definitely use it. Still, if there is any way to get a selected text value, it will help me a lot with my project. Thank you.

  • Change display value of "select list"

    Hi!
    I have a problem with a select list, I want to change the display value through an own pop up (page 5 of apex application) after I submit in it.
    The select list is based on a sql query:
    select A_NAME display_value, A_ID return_value
    from APPLICATIONS
    where a_application_type='GROUP'
    order by 1
    beside I have an link to open a pop up window:
    ... onClick="window.open ('f?p=&APP_ID.:5:&SESSION.::::', 'newWin',
    'scrollbars=no,status=no,width=500,height=270' ...
    On the pop up site there is a tree and a submit button which close the window and renew the original page:
    javascript:window.opener.location.reload();window.close();
    Through the tree I get the value (Group-ID) which I need.
    When I'm back on page 4 a "before header" renew page process links again on the side 4 and change the value of my select list. Afterwards the values have changed correctly but the display value is still the old one. It only change when i go on an other page of the apex application and come back.
    I don't know why it doesn't change immediately!?
    Thanks ahead

    I have done with a solution just in a nutshell of what u r looking for:
    1.create HTML region.
    Add two items : Select list with redirect(P6_X) and text field(P7_X)
    2. Select list is based on LOV query as :
    select empno d,empno r from emp ;
    Source value is Empno Type:DBcolumn.
    3.The text field Source type : SQL Query .
    Query : select ename from emp where empno = :P6_X
    Now select from the dropdown empno and it will populate the Ename value accordingly based on the query .
    U can have more than one text fields and populate those in the same way.....
    Cheers,
    ROSY

  • Display Display value in Red Color in Pop Up List of value Item

    Dear All,
    i have created an Pop up List of Value item.I need to display Display value in Red Color in Pop Up List of value Item.
    What should i pass in HTML Form Element Attributes .I have try using
    style="font-color:red";That code.
    How can i display Display Value in Red Color.
    Thanks

    Is this what you are looking for?
    http://apex.oracle.com/pls/apex/f?p=42778:12
    If so..
    * Go to Shared Components -> Templates -> Select Type as "Popup List of Values"
    * Edit Popup LOV template
    * See the class name being used for div under Result Set section. In My case, its t1PopupBody
    * Under Page Attributes -> Page HTML Head section append following CSS
    <style>.t1PopupBody a{color:red;}</style>* Apply Changes
    If its not working, then inspect the pop-up lov with firebug and update CSS definition accordingly.
    Regards,
    Hari

  • Accessing display values of a select list (or LOV)

    Hi all,
    I was asking myself if it is possible to access the display values of a select list (to be added to a report header and to the Head section of a pdf export),
    and to call them in form of the &xxxxx. notation
    e.g. if &P10_REGION. return the selected value (e.g. 1), I would like to have the corresponding display value (e.g. USA) .
    Kind regards,
    Boris

    Thank you Graham,
    unfortunately I'm a newbie regarding Javascript. Reading the APEX help, I could understand something but not everything.
    I would enter into the page html body the following script
    <script type="text/javascript">
    document.getElementById('P10_hiddenItem').value = document.getElementById('P10_referenceItem').text;
    </script>
    Is this the correct approach?
    how should I then submit the page?
    Thank you,
    Boris

  • How can we set default value within html:file

    Hai,
    To set default value to text box i use the following code. It works well.
    <html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
    <html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?

    Hi,
    guess that one option in a RowImpl would be to check if the attribute is null or if the attribute value can be found in the VO that populates the list. If first is true or seconds false (cannot be found) you return the first value of the VO, making it the current attribute value
    Frank

  • Doubt  in using html:checkbox in struts

    Hi all,
    In my jsp page i have 2 checkboxes name mandatory and active.
    <html:checkbox property="mandatory" value="true"/>
    <html:checkbox property="active" value="true"/>
    Insertion of data works fine,and now my doubt is about the edit mode.
    In edit mode,depending on th value of thethese fields wheteher 0 or 1,checkbox should be checked.how can it be done?
    In th corresponding for,the properties I declared as boolean values.Also reset method is provided .
    Anyone pls help.
    thanks

    It's rather nasty, but you could wrap all your strings in <html></html>. Even so you still have to use entities, but the
    following displays what you want:JLabel lbl = new JLabel("<html>&lt;html>&lt;/html></html>");

  • Plsss help me: how to set default values in html:file and html:radio

    Hai,
    To set default value to text box i use the following code. It works well.
    <html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
    <html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?
    how to set default selection in <html:radio>.

    No it won't help.
    You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
    The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
    Bottom line: you can't put a default value into the input type="file" control.
    And a good thing too ;-)

  • How to display xml to html using xsl?

    hi all...may i know how to display xml to html page?
    i ve included <xsl:output method="html" indent="yes" /> inside my xsl file. i clicked on output.xml file and everything is displayed correctly but the format is xml instead of html. is there anyway to transform it to html?
    below are my xsl and xml codes:
    // xsl file
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="yes" />
    <xsl:template match="/">
    <html>
    <body>
    <h2>Document Contents</h2>
    <table border="1">
    <tr bgcolor="#9acd32">
         <th align="center">Document Name</th>     
         <th align="center">Document ID</th>          
         <th align="center">Owner</th>               
    </tr>
    <xsl:for-each select="Document/Contents">
    <tr>
    <td><xsl:value-of select="DocumentName"/></td>
    <td><xsl:value-of select="DocumentID"/></td>
    <td><xsl:value-of select="Originator"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    // xml file
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="xsltStyleSheet.xsl"?>
    <Document>
         <Contents>
              <DocumentName>register</DocumentName>
              <DocumentID>1</DocumentID>
              <Originator>hhh</Originator>
         </Contents>
    </Document>
    </xsl:template></xsl:stylesheet>

    your XSL transforms to HTML (in fact XHTML): what more do you expect? did you expected anything different from the following output? if yes: what and why?
    <html>
         <body>
              <h2>Document Contents</h2>
              <table border="1">
                   <tr bgcolor="#9acd32">
                        <th align="center">Document Name</th>
                        <th align="center">Document ID</th>
                        <th align="center">Owner</th>
                   </tr>
                   <tr>
                        <td>register</td>
                        <td>1</td>
                        <td>hhh</td>
                   </tr>
              </table>
         </body>
    </html>

Maybe you are looking for

  • MB Pro 13 early 2011 keyboard failing

    As said in the title, the keyboard on my Macbook Pro 13" 2011 seems like it is starting to fail. Out of warranty about 3 months now. Zero key doesn't appear to be working. Keyboard viewer shows that the "CMD"s are being pressed with it, even though t

  • Java 8 not working with Mavericks help

    Updated to Mavericks and went to my dashboard, error screen opens says I need the Java Runtime Environment I installed it (JAVA 8) and it still does not work. Ideas help?

  • How do I create a rule that scales like this?

    Hello, I'm creating a page where I want a solid white horizontal rule. 4 pixels high, fixed distance from the top of the page, fixed distance from the left, and always attached to the right edge of the screen. Something like this: Is this possible? T

  • Want to use to CChannel

    Hi Gurus, I am working on scenario in which i have to use overwrite and append both in Receiver File Adapter. I have created two CChannel(BS) in which first one for create with (OverWrite) and for Second one (Append). for this i have added one field

  • Installation error code exit code 24 (windows 8) when installing

    so when I install it finishes extracts and then this shows up Exit Code: 24 Please see specific errors below for troubleshooting. For example, ERROR: DW001 ... -------------------------------------- Summary -------------------------------------- - 0