Jsf  warn about nested tag

hi I try to make a dynamic data table wtih jsf 1.2; When I run my pr�ject on the server I have gor this warn in my server log.�s there ther e somebody who know this problem.
My datatable code:
<h:column id="column11" >
<f:facet name="header" > </f:facet>
<h:commandButton action="#{RefKayit. detaysil} " rendered="#{ RefKayit. edit1}" image="img/x. gif" id="s"></h:commandB utton>
<h:commandButton action="#{RefKayit. detaysil1} " rendered="#{ RefKayit. edit}" image="img/x. gif" id="ss"></h: commandButton>
</h:column>
warn on the server log:
23519: 09:21:18,551 WARN [HtmlResponseWriter Impl] HTML nesting warning on closing td: element input rendered by component : {Component-Path : [Class: javax.faces. component. UIViewRoot, ViewId: /TestReferansTanim. jsp][Class: javax.faces. component. html.HtmlForm, Id: tref][Class: javax.faces. component. html.HtmlDataTab le,Id: update][Class: javax.faces. component. html.HtmlColumn, Id: column11][Class: javax.faces. component. html.HtmlCommand Button,Id: ss]} not explicitly closed
thanks
how can � solve this warn?

My guess is that you're not resetting state in the parent tag handlers (e.g., data set by the nested tag handlers) correctly for them to work with tag handler pooling. For some more info on this, see an article I wrote for ONJava.com a while back (the "Tag handler life cycle and instance reuse" section):
http://www.onjava.com/pub/a/onjava/2001/11/07/jsp12.html?page=2
or my JavaServer Pages book (O'Reilly), plug plug :-)
http://www.thejspbook.com/
Tomcat 4.1.x uses tag handler pooling by default, but LiteWebServer (which is my company's product, BTW) disables pooling by default. Not sure about Jetty, but it's likely that it also disables pooling. For Tomcat 4.x and LiteWebServer, you control pooling through an init parameter to the JSP servlet in the conf/web.xml file:
    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>enablePooling</param-name>
            <param-value>false</param-value>
        </init-param>
    </servlet>I suggest that you disable pooling in Tomcat first and see if that helps. If so, you know what the problem is and can use the hints in my article to fix it.
Hans Bergsten (JSP and JSF EG member)

Similar Messages

  • Nested tags with a List of Objects

    I'm having trouble getting nested tags to work. Here's an example:
    My form has a List that contains a Bean called Car as well as a getter and a setter. The Car Bean has three String attributes: color, model and manufacturer. Getters and setters are present.
    When I navigate to the form, my Action class creates a single Car and adds it to the list: when the page loads I am presented with three text fields representing my Car bean. Good.
    However when I enter some text into the fields and hit the save button I get the following error:
    Error 500: BeanUtils.populateI've read a bit about nested tags but still I can't figure out what exactly I'm doing wrong.
    Here is a small sample of the JSP code;
    <html:form action="/addCar.do">
    <nested:iterate name="carForm" property="carList" type="com.foo.bean.CarBean">
      <nested:text property="color"></nested:text>
      <nested:text property="model"></nested:text>
      <nested:text property="manufacturer"></nested:text>
    </nested:iterate>
    </html:form>Should I be doing something else to properly use a nested tag? Please let me know if more details are required.
    Thank you,
    David

    I am using crystal reports to show names of a bunch of people. insted of each name comes form different function inside the oracle package, I would like to have a single function with an array of names so that I can return it easily
    eg; board member 1 (from function 1)
    board member 2 (from function 2)
    board member 3 (from function 3)
    I should get something like board member n(from a single function that has n number of members) , so that its easy for managing the list later and reduce the code
    This sounds so silly, but i am new to both crystal and pl/sql....
    please help

  • Re: Warning about taglib in NitroX for Struts 2.0

    This is because NitroX 2.0 is smarter about JSP 2.0 and servlet 2.4.
    In the web.xml version 2.4 the taglib tags should be nested inside a
    <jsp-config> tag. Actually, the next NitroX build will report an error about
    this.
    M7 Support
    "Paul K. Courtney" <[email protected]> wrote in message
    news:[email protected]...
    I just installed 2.0 on my machine and I'm getting a new warning about mytaglibs that was not present in 1.0 or 1.1.
    At the top of my JSP I have
    %@ taglib uri="/tags/struts-logic" prefix="logic" %
    My web.xml is as follows:
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    web-app version="2.4"
    servlet
    servlet-name>action</servlet-name
    servlet-class>org.apache.struts.action.ActionServlet</servlet-class
    init-param
    param-name>application</param-name
    param-value>resources.application</param-value
    /init-param
    init-param
    param-name>config</param-name
    param-value>/WEB-INF/struts-config.xml</param-value
    /init-param
    init-param
    param-name>debug</param-name
    param-value>2</param-value
    /init-param
    init-param
    param-name>detail</param-name
    param-value>2</param-value
    /init-param
    load-on-startup>2</load-on-startup
    /servlet
    servlet
    servlet-name>log4j-init</servlet-name
    servlet-class>app.utility.Log4jInit</servlet-class
    init-param
    param-name>log4j-init-file</param-name
    param-value>WEB-INF/classes/log4j.lcf</param-value
    /init-param
    load-on-startup>1</load-on-startup
    /servlet
    servlet-mapping
    servlet-name>action</servlet-name
    url-pattern>*.do</url-pattern
    /servlet-mapping
    servlet-mapping
    url-pattern>/SurveyGenerator</url-pattern><servlet-name>SurveyGenerator</se
    rvlet-name>
    /servlet-mappingservlet-mapping
    url-pattern>/CatchParam</url-pattern><servlet-name>CatchParam</servlet-name
    /servlet-mapping
    servlet-mapping
    url-pattern>/htmlVers</url-pattern><servlet-name>IQRunSurvey</servlet-name
    /servlet-mapping
    servlet-mapping
    url-pattern>/FinishPage</url-pattern><servlet-name>FinishPage</servlet-name
    /servlet-mapping
    servlet-mapping
    url-pattern>/LastPage</url-pattern><servlet-name>LastPage</servlet-name
    /servlet-mapping
    welcome-file-list
    welcome-file
    index.jsp
    /welcome-file
    /welcome-file-list
    taglib
    taglib-uri>/tags/struts-bean</taglib-uri
    taglib-location>/WEB-INF/struts-bean.tld</taglib-location
    /taglib
    taglib
    taglib-uri>/tags/struts-html</taglib-uri
    taglib-location>/WEB-INF/struts-html.tld</taglib-location
    /taglib
    taglib
    taglib-uri>/tags/struts-logic</taglib-uri
    taglib-location>/WEB-INF/struts-logic.tld</taglib-location
    /taglib
    taglib
    taglib-uri>/app</taglib-uri
    taglib-location>/WEB-INF/app.tld</taglib-location
    /taglib
    /web-app
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    +++++++++++++
    >
    So, why am I getting the warning?
    Paul

    Hello
    According users manuals document for Portege M100 two optical disc drivers are compatible with your Portege M100L:
    TOSHIBA SD-C2612
    TEAC DW-224E
    So if you want to have good working drive obtain one of them.

  • Java 7u45 gives spurious warning about missing Permissions attribute

    The security dialog in 7u45 gives a yellow warning about missing Permissions attribute.   Does anyone know how to get rid of it?
    Same as the yellow box in the screenshots (#2 and #3) documented here (although none of them discuss the Permissions attribute) :
    What should I do when I see a security prompt from Java?
    The MANIFEST.MF file for the app definitely contains this attribute.  There's only one jar for the application, and it's signed.
    Might this be another security dialog bug?  Or am I missing something?  The JNLP contains the same "all-permissions" security tag.
    I also found the release notes for 7u45 mention a couple of cases where the dialog might still appear
    (see last issue: Java™ SE Development Kit 7 Update 45 Release Notes)
    I don't use the JNLPDownloadServlet but my own. I didn't model it on the JNLPDownloadServlet, but guess I could have partly the same issue since I use versioning.
    My jar doesn't fail to download though, it's just that its displaying this warning.
    MANIFEST.MF:
    Manifest-Version: 1.0
    Implementation-Title: My app
    Implementation-Version: 3.0-SNAPSHOT
    Built-By: me
    Application-Name: Myapp
    Created-By: Apache Maven 3.0.5
    Ant-Version: Apache Ant 1.8.2
    Trusted-Library: true
    Implementation-Vendor-Id: org.me
    Trusted-Only: true
    Build-Jdk: 1.7.0_45
    Permissions: all-permissions
    Specification-Title: my-client
    Specification-Version: 3.0-SNAPSHOT
    Archiver-Version: Plexus Archiver
    Codebase: *.me.org

    I went the Java version detection applet and I don't get a warning about the applet being blocked in the future.
    https://java.com/en/download/installed.jsp
    https://java.com/en/download/installed.jsp
    I dug the jar for the applet out of my Java cache and it contains Manifest.MF with the following contents:
    Manifest-Version: 1.0
    Codebase: www.java.com java.com
    Created-By: 1.7.0_25 (Oracle Corporation)
    Permissions: all-permissions
    Application-Library-Allowable-Codebase: www.java.com java.com
    Application-Name: Java Detection
    Name: JNLP-INF/APPLICATION.JNLP
    SHA1-Digest: jPquHTBq5R8txQLe5/T20x70Y7w=
    Name: JavaDetection.class
    SHA1-Digest: kQNVjPC5Yym1DszdpX1D2EH8Ll0=
    The jar contains one Java class and a signed JNLP-INF/APPLICATION.JNLP file that looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="https://java.com/en/download/" href="JavaDetection_applet.jnlp" spec="1.0+">
        <information>
            <title>Java Detection</title>
            <vendor>Oracle Inc.</vendor>
        </information>
        <resources>
            <!-- Application Resources -->
      <j2se version="1.6+"/>
            <jar href="JavaDetection.jar" />
        </resources>
    <security>
      <all-permissions />
    </security>
        <applet-desc
             name="Java Detection Applet"
             main-class="JavaDetection"
             width="1"
             height="1">
         </applet-desc>
         <update check="background"/>
    </jnlp>
    They are running applet via JNLP:
    <applet code="JavaDetection.class" width="500" height="150"><param name="image" value="/im/download/verify_anim.gif"/><param name="centerimage" value="true"/><param name="boxborder" value="false"/><param name="jnlp_href" value="JavaDetection_applet.jnlp"/></applet>
    The JNLP file downloaded from here: https://java.com/en/download/JavaDetection_applet.jnlp matches the signed JNLP file in the jar (except for name).
    We are still working on getting our applications to not show the warning message but this appears to be an example of where the "you will be blocked in the future" message is not happening. We don't run our applications as applets so if anyone can find another working example that is a more traditional JNLP app, please post a link.

  • Warn About Changes and page flow

    Hi, in dev guide, it is said:
    For any single page, or first page in a navigation flow where the retainAM URL parameter value is set to Y (and the pages share the same root UI application module) as you navigate between each page, set the Warn About Changes property to True on the pageLayout region.
    in other word, if pages in page flow are in the same AM, after changing am in the first page, anytime leave the following page to click the home link(oracle branding), the WarnAboutChanges msg should be alerted?
    But,
    Now I have two pages, using the same AM, set the two pages' property "Warn About Changes" to true.
    And I want to implement this: after inputing some words, and click a sunmitButton forward to pageB(add retainAM = Y in setForwardURL in code), then in pageB don't do anything, but click home link, WarnAboutChanges message does not alert.
    Could anyone help to explain this?
    And how to implement the page flow warnAboutChanges?
    And how root application module to set if different pages in different AMs?
    PreThanks to you very much!

    But,
    Now I have two pages, using the same AM, set the two pages' property "Warn About Changes" to true.
    And I want to implement this: after inputing some words, and click a sunmitButton forward to pageB(add retainAM = Y in setForwardURL in code), then in pageB don't do anything, but click home link, WarnAboutChanges message does not alert.
    Could anyone help to explain this?
    I asked u previously also read dev guide properly, here it what dev guide say:
    "By default, the Warn About Changes property is set to True for each of the items in this list except for the
    OASubmitButtonBean whose default value is False (a ccording to the UI guidelines, the "Warn About
    Changes" check should be performed for all submit button instances except for Cancel, Apply and Submit
    buttons). If you want to explicitly enable the check for a submit button, set this property to True. Note that can
    also set it programmatically by calling OASubmitButtonBean.setWarnAboutChanges(pageContext,
    Boolean.TRUE) in processRequest()."
    I hope this answers ur question.
    And how to implement the page flow warnAboutChanges?
    Read "Save Model ('Warn About Changes')" in dev guide :).And how root application module to set if different pages in different AMs?
    You can nest differnt AMs in on AM in AM wizard.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can I stop Windows 7 from warning about security on every linked PDF?

    I am working on a project for which I have created one central document (an index) and 120 linked documents. Each document, on every page, has links to the next alphabetical document and back to the central index. This project will be distributed on disc to people with unknown computer platforms.
    I am a Mac user, and this works well on my iMac using Adobe Reader. It also works on my ancient Windows XP machine. A tech friend has looked the project over, and he says that on Windows 7 (used by more than half of computer users), every time a document links to a new document, Windows 7 throws up a warning about PDF security hazards. With a large number of documents to open, this could be tiresome.
    Is there a way to stop Windows 7 from warning about security on every linked PDF?
    This tech person recommends joining all the PDFs into one file (around 50 MB by his estimate), which would require relinking every current link.
    Acrobat offers to do the same with its Portfolio, but I'm not fond of the graphic styles offered, and I worry that one large file might be a challenge for older machines.
    Any suggestions?

    Can you get a screen shot of this error message or at least the exact wording? I suspect the error message is being displayed by Reader/Acrobat and not Windows.

  • Noob question about DIV tags

    Learning DW and CSS so patience is in order .
    I've being reading numerous posts here and on the web about avoiding tables for laying out web pages. I can see the advantages in terms of cleaner codes and easiness of updating and changing sites at a later time. So I started learning about DIV tags (although tables is very easy for me) and have practice a few times with fairly good results, love the absolute positioning with it. Having said that, for the love of me, can't find a way of centering horizontally a page designed with DIV tags (due to ignorance), for example, 1 column/three rows page, after defining styles, size and colors I enclosed everything in another DIV tag, wrapper I think is called, but have not found a way of centering it on the page, text-aligment on the DIV tag only centers the text not the DIV itself, how to go about this? Help is appreciated.

    love the absolute positioning with it.
    Get over it.  It's a trojan horse.  Absolute positioning is not a general layout method.
    To center ANY block (non-absolutely positioned) element, use CSS to give it a width and left/right margins of 'auto'.  For example -
    <div id="foo">...</div>
    That div will be centered with this CSS -
    #foo { width:300px; margin:0 auto; }
    I think you are on the wrong path already, though.  Stick with tables (which you say are very easy for you) UNTIL you a) understand CSS well enough to understand what absolute positioning is and why I say it's bad, and b) understand how to use float, margin, and padding to place things on the page.  Then you are ready to move away from tables.

  • [svn:fx-trunk] 11454: ASyncList class ASDoc change: added explicit warning about the lack of support for re-inserting pending items .

    Revision: 11454
    Author:   [email protected]
    Date:     2009-11-04 18:17:33 -0800 (Wed, 04 Nov 2009)
    Log Message:
    ASyncList class ASDoc change: added explicit warning about the lack of support for re-inserting pending items.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer:
    Tests run:
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/AsyncListView.as

  • Warning about low disk space on drive E

    Hi,
    I'm running Windows 7 on a HP Pavilion Elite HPE. My main drive i s C and there is also D (Factory image) and then the HP(E: ) one which is giving the warning about low disk space. When I look at what there is in drive E there is a folder called "my name"-PC with a lot of "Backup Set" folders/files in it, and then there is a folder called WindowsImageBackup and subfolder "my name"-PC.
    I know I have to clean out these folders but I ma very insecure as to what I can delete.
    I'd be very thankful if you could give me some advice in this matter!
    This question was solved.
    View Solution.

    File History in Windows 7 is an extensive image backup of your drive which will steadily increase over time and needs to be cleared and suggest that you turn the feature off.  It is not very efficient.
    If you wish to delete this  Windows Image Backup file, you should disable  the automatic backup feature of Windows.
    Click on Start button > Control Panel > System and Maintenance> Backup and Restore.
    In the left pane, click on "Turn Off Schedule".
    From there you can delete the backup files on your E drive.
    I also suggest as an alternative, use Macrium Reflect Free every so often as it is more efficient and reliable.  It will make a complete image back up of your entire hard drive to an external hard drive.  Don't forget to create a rescue disk.
    Go to this site and do a Custom Install:
    http://www.macrium.com/reflectfree.aspx
    I personally use the Professional Edition which gives me more flexibility and features.
    Please mark my post as SOLVED if it has resolved your problem. It helps others with similar situations.

  • After updating to iOS 6 my iPod Touch 4th.Gen is virtually unusable ... does anyone know how to sue Apple since they gave no warning about iOS 6 being for iPad optimisation and a killer  for iPods ?

    After updating to iOS 6 my iPod Touch 4th.Gen is virtually unusable ... does anyone know how to sue Apple since they gave no warning about iOS 6 being for iPad optimisation and a killer for iPods ?  Before I throw away my iPod Touch does anyone know if Apple intends to rectify their obnoxious disregard for iPod users by issuing another 'upgrade' which will allow iPods to work without the constant system crashes that iOS 6 has caused ?

    Contact a lawyer if you want to sue.
    Otherwise try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Custom taglib with nested tag not working

    Hi everybody,
    I have a question concerning a custom taglib. I want to create a tag with nested child tags. The parent tag is some kind of iterator, the child elements shall do something with each iterated object. The parent tag extends BodyTagSupport, i have overriden the methods doInitBody and doAfterBody. doInitBody initializes the iterator and puts the first object in the pageContext to be used by the child tag. doAfterBody gets the next iterator object and puts that in the pageContext, if possible. It returns with BodyTag.EVAL_BODY_AGAIN when another object is available, otherwise BodyTag.SKIP_BODY.
    The child tag extends SimpleTagSupport and does something with the given object, if it's there.
    In the tld-file I have configured both tags with name, class and body-content (tagdependent for the parent, empty for the child).
    The parent tag is being executed as I expected. But unfortunately the nested child tag does not get executed. If I define that one outside of its parent, it works fine (without object, of course).
    Can somebody tell me what I might have missed? Do I have to do something special with a nested tag inside a custom tag?
    Any help is greatly appreciated!
    Thanks a lot in advance!
    Greetings,
    Peter

    Hi again,
    unfortunately this didn't work.
    I prepared a simple example to show what isn't working. Perhaps it's easier then to show what my problem is:
    I have the following two tag classes:
    public class TestIterator extends BodyTagSupport {
        private Iterator testIteratorChild;
        @Override
        public void doInitBody() throws JspException {
            super.doInitBody();
            System.out.println("TestIterator: doInitBody");
            List list = Arrays.asList(new String[] { "one", "two", "three" });
            testIteratorChild = list.iterator();
        @Override
        public int doAfterBody() throws JspException {
            int result = BodyTag.SKIP_BODY;
            System.out.println("TestIterator: doAfterBody");
            if (testIteratorChild.hasNext()) {
                pageContext.setAttribute("child", testIteratorChild.next());
                result = BodyTag.EVAL_BODY_AGAIN;
            return result;
    public class TestIteratorChild extends SimpleTagSupport {
        @Override
        public void doTag() throws JspException, IOException {
            super.doTag();
            System.out.println(getJspContext().getAttribute("child"));
            System.out.println("TestIteratorChild: doTag");
    }The Iterator is the parent tag, the Child shall be shown in each iteration. My taglib.tld looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>cms-taglib</short-name>
         <uri>http://www.pgoetz.de/taglibs/cms</uri>
         <tag>
              <name>test-iterator</name>
              <tag-class>de.pgoetz.cms.taglib.TestIterator</tag-class>
              <body-content>tagdependent</body-content>
         </tag>
         <tag>
              <name>test-iterator-child</name>
              <tag-class>de.pgoetz.cms.taglib.TestIteratorChild</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>And the snippet of my jsp is as follows:
         <!-- TestIterator -->
         <cms:test-iterator>
              <cms:test-iterator-child />
         </cms:test-iterator>The result is that on my console I get the following output:
    09:28:01,656 INFO [STDOUT] TestIterator: doInitBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    So the child is never executed.
    It would be a great help if anybody could tell me what's going wrong here.
    Thanks and greetings from germany!
    Peter
    Message was edited by:
    Peter_Goetz

  • Audio warning about security on computer.....

    I am getting frequent loud audio warning about security on my computer.  The message plays continuously until I turn it off.  it tells me to go to (I think this is it,but I threw the paper away with the exact address) but there is no web address like that.  Is it a hoax and can I block it if so?  Is it real and do I need to do something?  Call from NOTIFICATION® - URGENT ONLINE NOTICE, duration 01:45 is what shows on the log.
    Thank you, Tovarishtina

    please visit the thread below for instructions and suggestions on how to deal with such unwanted and suspicious activities;
    How to Handle Suspicious Calls, Messages and Contact Requests (Scam/Spam)
    CONTACT SKYPE CUSTOMER SERVICE   |  HOW TO RECORD SKYPE VIDEO CALLS  | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES   |  WINDOWS PROBLEMS TROUBLESHOOTING   |  SKYPE DOWNLOAD LINKS  
    MORE TIPS, TRICKS AND UPDATES AT
    skypefordummies.blogspot.com

  • About the warning about changes message.

    Hi all,
    There is a messageChoice on the page,and the messageChoice must fire an action.But if the action is fired,then I click on the other tab or link, warning about changes message will not occur and directly farward to the other page.Is that possible that popup the warning about changes message after the messageChoice's event was fired ?
    Thanks,
    binghao

    Hi,
    this question is hard to understand. I don't see a messageChoice component in ADF Faces, can you give more details to your usecase and the components involved
    Frank

  • Help with nesting tags (STRUTS)

    Hi,
    I'm having a few problems with the following nested tag:
    <input name="indicator_target_<bean:write name='indicators' property='indicator_id'/>" size="10" value="<bean:write name="TargetValuesActionForm" property="indicator_target_<bean:write name='indicators' property='indicator_id'/>"/>"/>
    The page returns no getter method for "indicator_target_", but i'm not trying to get the "indicator_target_" value i'm trying to get the "indicator_target_ + id" (i.e. indicator_target_23) value. For some reason the nested _<bean:write name='indicators' property='indicator_id'/> tag which is part of the input 'value' param is being ignored?
    anyone know how I can resolve this?

    One of the first rules of JSP custom tags - you cannot use a tag as an attribute to another tag. For dynamic attributes you have to use a runtime expression. - either <%= expr %> or in a JSP2.0 container ${expr} as well.
    Your "input" tag is plain template html. So you can use custom tags for the values of the attributes.
    The one that is failing is
    <bean:write name="TargetValuesActionForm" property="indicator_target_<bean:write name='indicators' property='indicator_id'/>"/>
    I am presuming you are in a logic:iterate loop, or equivalent.
    Something like this might work:
    <bean:define id="currentId"  name='indicators' property='indicator_id'/>
    <bean:write name="TargetValuesActionForm" property="<%= "indicator_target_" + currentId %>"/>However all of this is very nasty.
    And struts can do at least part of this for you with indexed properties. You might want to take a look at them.
    Hope this helps,
    evnafets

  • How to use nested tag in Struts

    Hi..
    Can any one guide me how to use nested tag in Struts. So far i already tried bean tag with no error but when i try to use nested tag i got error like
    javax.servlet.ServletException: Cannot find bean: "" in any scope
    Below are my class:
    action class
    session.setAttribute ("MyDetailList", detailList);
    JSP page
    <logic:iterate id="list" name="MyDetailList">
    Company ID : <bean:write name="list" property="companyID" />
    </logic:iterate>
    For bean tag, i got no error at all and below are my code for nested tag
    action class
    session.setAttribute ("MyDetailList", detailList);
    JSP Page
    <nested:nest property="MyDetailList">
    Make : <nested:text property="make"/>
    Car ID : <nested:text property="carID"/>
    </nested:nest>
    When i run the code, i got error message
    javax.servlet.ServletException: Cannot find bean: "" in any scope
    Any body can help me?
    zul

    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

Maybe you are looking for