Indexed property

i have 20 Text fileds in my form and this may vary when the database data is changed
so i want to use index property to that.
how can i achive in the staruts
i have declared in struts-config.xml as my property
<form-property name="captionId" type="java.lang.String[]"/>
but i dont know how to implement this
please help

Hi konkodi221,
Hi had a similar problem where i was populating my form from a database and updating the form contents back to the database.I solved the problem using Dynamic action forms in Sturts.
Here is the link :
http://javaboutique.internet.com/tutorials/strutsform/index.html

Similar Messages

  • System generated index property not generated in database

    Hi,
    I created an offline table by copying it from an (first) online database to my project. The table contains a unique key constraint, which references a system generated index. Now I used this offline table to generate a table in another (second) online database. This all works well except, that the "System Generated" property of the index is "false" and not "true" as in the offline table (and the first online database). When I manually reconcile the same table to the second online database again, there is always a difference shown for this index property. When I try to continue the reconcile process to change this property I get an error message, that the index cannot be dropped because it is obviousely referenced by the unique constraint.
    When I drop the constraint and try to generate the index only I get the following warning message:
    Jan 11, 2012 2:08:59 PM oracle.javatools.db.property.AbstractPropertyManager processDiffs
    WARNING: Unsupported property: systemGenerated
    Is there a way to work around this annoying behavour? Is it possible to change this index property by an ALTER INDEX statement?
    Im using JDeveloper 11.1.2.1.0 (Build JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081)
    Thanks for help and hints
    Thomas
    Edited by: thmayr on 11.01.2012 05:08

    Hi,
    it might be due to some BUG in RDBMS...
    First Check the Secondary index in TEST system
    Look at the Transport Number in DEV system, If this is having error, then it will show you the error details also,
    If that not moved Properly then you need to create another request for the INDEX and move it again
    See the threads with similar problem...
    Warning: Index does not exist in database system MSSQL
    Index does not exist in database system ORACLE??????
    Re creation of database index
    Hope it will solve your problem...
    <b>Reward Points if useful</b>
    Thanks & Regards
    ilesh 24x7

  • Indexed property - editor needed?

    Folks,
    I have a bean (MyBean) with a indexed property (array of class type ClassX). It has setter and getters (total of 4) according to Java Beans specification.
    On Netbeans, the indexed property appears on Properties list. But, I can�t add itens to it, like it occurs when the property is not indexed or is a String indexed property. I think I should assign an 'editor' to it.
    Does anybody knows how to do this?
    The idea is: the ClassX is a JComponent and the Frame has some of them (10, for example). This indexed property from MyBean should allow users to add as many as they want, but limited to those already added to the Frame. They could add, for example, 4 of 10 to the array.
    Thanks!

    Did you try selecting portal components like books, pages, portlets. I have seen this problem too. But it would go away when you restart workshop.
    --SJ                                                                                                                                                                                                                                                                                                               

  • Help with array / indexed property

    Hi,
    I am trying to save the value of multiple dropdowns in the Session Bean. Therefore, I created an index property "rule" in the Bean.
    Each time the page is loadad, a different dropdown appears depending on the previous choices. If the ok button is clicked, the action is performed to save the current dropdown value in the index property:
    public String button1_action() {
    int cnt = 1;
    // if page was loaded before, replace count
    if (getAdminBean().getCount() > 0) {
    cnt = getAdminBean().getCount() +1;
    } else {
    // save current count in Session
    getAdminBean().setCount(cnt);
    setValue("#{AdminBean.rule[cnt-1]}", selectme.getValue());
    This is the error message:
    Exception Details: javax.faces.el.PropertyNotFoundException
    Error setting property '-1' in bean of type null
    Possible Source of Error:
    Class Name: com.sun.faces.el.PropertyResolverImpl
    File Name: PropertyResolverImpl.java
    Method Name: setValue
    Line Number: 153
    I have played around and even the following code would not work to save a value at the first position of the index property:
    setValue("#{AdminBean.rule[0]}", selectme.getValue());
    Can anyone help?
    Thanks,
    Nils

    You can not set the index as you use here i.e
    #{AdminBean.rule[cnt-1]}
    is not correct. Because in JSF the "[" is used for some other purpose.
    I would suggest you to use another property called "index"
    setValue("#{AdminBean.index", cnt-1);
    setValue("#{AdminBean.rule", selectme.getValue());
    Inside the session bean, in the method setRule get the index (already set) and place your value in the correct indexed array.
    Same logic you can use to get the value too
    setValue("#{AdminBean.index", cnt-1);
    getValue("#{AdminBean.rule");
    the method getRule() should get the value for the index and return it.
    - WInston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Indexed property question

    I have several forms each containing a unique product. Each product has 'other' items that can be associated with each product.
    Rather than creating setter and getter methods for each 'other' item (too many to do), I thought I'd send the values of those 'other' items to an indexed property like String[] other. A user will be presented with a list of 10 or so 'other' items for each, and each 'other' item will have a checkbox. I'd like only the checked values to show up on another page.
    Is an indexed property the way to go with this? Plus I could iterate through the 'other' list on the seperate page. Any examples anyone knows of I can look at for some help? Thanks!

    public String button1_action() {
    setValue("#{AdminBean.rule[1]}",
    selector.getValue());
    How about
    getAdminBean().setRule(1, selector.getValue());Assuming that selector.getValue() returns a Long and that AdminBean is either an Application, Session, or Request Bean.
    Best regards
    Antonio.

  • Indexed Property Example Code

    Is there an example out there for a Java Newby - I am trying to save data in an array - that is using the indexed property in a SessionBean.
    I have then added the indexed property and bound the value to it:
    * Indexed getter for property rule.
    * @param index Index of the property.
    * @return Value of the property at <CODE>index</CODE>.
    public Long getRule(int index) {
    return this.rule[index];
    * Indexed setter for property rule.
    * @param index Index of the property.
    * @param rule New value of the property at <CODE>index</CODE>.
    public void setRule(int index, Long rule) {
    this.rule[index] = rule;
    public String button1_action() {
    setValue("#{AdminBean.rule[1]}", selector.getValue());
    I am getting the followong error:
    Exception Details: org.apache.jasper.JasperException
    Error getting property 'rule' from bean of type magicwheel.AdminBean
    Possible Source of Error:
    Class Name: org.apache.jasper.servlet.JspServletWrapper
    File Name: JspServletWrapper.java
    Method Name: service
    Line Number: 384
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Can anyone help, possibly with some example code?
    Thanks,
    Nils

    public String button1_action() {
    setValue("#{AdminBean.rule[1]}",
    selector.getValue());
    How about
    getAdminBean().setRule(1, selector.getValue());Assuming that selector.getValue() returns a Long and that AdminBean is either an Application, Session, or Request Bean.
    Best regards
    Antonio.

  • Binding to an indexed property

    Hi
    Not sure if this is the correct way to do this, but I created
    an indexed property ( String array ) in the session bean
    with the intention of binding a TextField value to an
    indexed position on the indexed property. When attempting
    to perform the Property Binding for the TextField component
    I don't see the indexed property to bind to.
    Is this possible ?
    Thanks

    Hi Colinodo,
    I am just interacting with people so as to where an external customer can view the filed bugs.
    Once i get the link I would be providing you the reference number and the link.
    Regards.

  • Index property CS4

    Hi there,
    I have issue with index property.
    Running this script with this same document o have different index values for rectangles.
    frames = doc.rectangles;
    for (var i=0;i<frames.length;i++) {
            var frame = frames[i];
           $.writeln(frame.id+" "+frame.index+" "+frame.label);
    desktop Indesign
    33175 0 i12
    33176 1 i6
    33177 2 i9
    33178 3 i3
    33272 4 i10
    33273 5 i4
    33274 6 i7
    33275 7 i1
    33465 8
    33460 9 i11
    33461 10 i5
    33462 11 i8
    33464 12 i2
    Indesign Server
    33175 4 i12
    33176 5 i6
    33177 6 i9
    33178 7 i3
    33272 8 i10
    33273 9 i4
    33274 10 i7
    33275 11 i1
    33465 12
    33460 0 i11
    33461 1 i5
    33462 2 i8
    33464 3 i2
    So index on Server is different. Index property on desktop edition works well and can be used as z-index.
    Is there workaround for this?
    Regards
    Piotr

    After many test now i'm sure, it's just bug in CS4 server, in CS5 server works fine.
    regards

  • Indexed Property, html:select

    Hello,
    Dev. Env. : JSP/Struts - Indexed Properties
    <c:forEach var="lines" items="${MbrLines.map.lines}">
    <td>
    <html:select name="lines" indexed="true" property="loc" >
    <%
    StringBuffer sb = new StringBuffer();
    DBAccess dba = new DBAccess();
    sb = dba.fillDropdown("ALLLOC",0,"");
    out.println(sb);
    %>
    </html:select>
    </td>
    </c:forEach>
    This is the code I have in a JSP used for edits. I fill the dropdown with all available locations(e.g. Chicago, Miami etc) from a database table.
    How do I set the current value in the record to be edited, say "Chicago", to be "selected" in the dropdown? Or, is there a way to pass the property�s current value to the DB method ?
    Any help is greatly appreciated. Thanks in advance.

    the HTML generated as folllows:
    as you may see, the bean has been interpreted to array, which I have correspondent set method in form. Please check the code for form in my previous post.
    If I radio button of any row, it sets all the rows. which looks very strange to me, because it shows to me that the beans has been seperated by using different names. as poDisplayVO[0] ; poDisplayVO[1] ; poDisplayVO[2.
    <! ------------------------ html genterated ------------------------------------------------>
    <tr>
    <td>
    Accounting Studies
    </td>
    <td>
    <input type="radio" name="poDisplayVO[0].fosVO.select" value="Accounting">
    Accounting
    </td>
    <td>
    <input type="radio" name="poDisplayVO[0].fosVO.select" value="no"> NO
    </td>
    <td>
    <input type="radio" name="poDisplayVO[0].fosVO.select" value="yes"> YES
    </td>
    </tr>
    <tr>
    <td>
    Accounting Studies
    </td>
    <td>
    <input type="radio" name="poDisplayVO[1].fosVO.select" value="Bookkeeping">
    Bookkeeping
    </td>
    <td>
    <input type="radio" name="poDisplayVO[1].fosVO.select" value="no"> NO
    </td>
    <td>
    <input type="radio" name="poDisplayVO[1].fosVO.select" value="yes"> YES
    </td>
    </tr>
    <tr>
    <td>
    Accounting Studies
    </td>
    <td>
    <input type="radio" name="poDisplayVO[2].fosVO.select" value="Computerized Accounting(Duplicate)">
    Computerized Accounting(Duplicate)
    </td>
    <td>
    <input type="radio" name="poDisplayVO[2].fosVO.select" value="no"> NO
    </td>
    <td>
    <input type="radio" name="poDisplayVO[2].fosVO.select" value="yes"> YES
    </td>
    </tr>

  • Again need indexed property

    Hi,
    I have in a jsp this nested...
    <nested:nest property="myList[0]">
    <nested:nest property="param[0]">
    <nested:text property="name">
    </nested:nest>
    </nested:nest>
    The problem is what struts invoke method getList() and not getList(int index), i have need what invoke getList(int index) because the list have to grow dinamically.
    any suggest???

    Im finding on web but now nothing solution.
    HELP!

  • BUG CSS Editor z-index property

    I use JDeveloper 10.1.3.1 to edit CSS.
    span.dialog { z-index: 100; } is underlined in red, although span.dialog { z-index: 99; } and span.dialog { z-index: 101; } are OK.

    Hi,
    thanks. I filed a bug with very low priority because a) a work around exists (to set it to 101) and b) at runtime it behaves as designed
    Frank

  • Handle z-index property in chrome browser (was : Is there another issue with Chrome?)

    Hi,
    I'm just wondering is there another issue with Edge and Chrome.
    I know some stuff got sorted out but I am now having a problem with rectangles (as hitboxes) not showing up within Chrome.
    Does anyone know why this is happening?

    Hi Aibun and Vivekuma,
    I am running the most up-to-date version of Edge, because I knew about the other Chrome issue since it was affecting a lot of my work.
    But I haven't seen anything else to do with it since the update and now I'm getting another issue. Not sure if its the same kind of thing or not.
    Here is my composition : Dropbox - Work_fa
    Basically on the page with "Meet Jeff" there are two little white semi-circles and the hit box should be in the right button but its actually off set and further right than it should be.
    I've looked through the composition and the hitbox is within a symbol (s_cpl_fa_0_guide_page1) so also not sure whether its because of that?

  • BIA Index Loading into Mmeory (for SAP) ....

    Hello all,
    I went to www.sdn.sap.com and chose <b>Business Intelligence</b> from the left menu.
    In the <b>BI Knowledge Center</b> (Right side), I chose <b>BI Accelerator</b>, which is under <b>Key Topics</b> section.
    Then I opened a document "<b>SAP Business Intelligence Accelerator (PDF 154 KB)</b>".
    Go to the section "<b>SAP BI Accelerator at Work</b>", which is at page# 5. The third point says like this -
    BI accelerator indexes are loaded into memory where the query is processed. In memory, joins and aggregations are done at run time. Loading of indexes into memory happens automatically at first query request, or it can be set for <b>preloading</b> whenever new data is loaded.
    I had an understanding that it will be loaded into memory only when query was first executed. But this says it can be set for preloading as well wherever new data loaded.
    My question is that where this setting can be done for preloading?
    It says that preloading option is available whenever new data loaded so does that mean that it can only be set for rollup of BIA Index and for initial load, it will still load data into memory when the query is first executed.
    I would appreciate if somebody has knowledge of this as it is new technology.
    Others, who has a knowledge can also answer.
    Your help will be greatly appreciated.
    Thank you to everybody in advance.
    Sume

    Hi,
    I found it.
    It is an option on BIA Index Property button in the wizard. It appears only after the initial load is done. There is check box for to keep the BIA Index in main store. I thin it is only applicable to Roll-up.
    Thank you.
    Sume

  • Can't get it to work with css z-index

    I am trying to get the naviagtion.swf just above the
    movie.swf file. But when I use the z-index property in css, it's
    always the other way around (the movie.swf on top of
    navigation.swf). Here is what I have:
    <div style='position: absolute; z-index: 1; top:
    250px;'>
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="433" height="249" id="movie" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="movie.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="movie.swf" quality="high" bgcolor="#ffffff"
    width="433" height="249" name="movie" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    </div>
    <div style='position: absolute; z-index: 3; top:
    200px;'>
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    width="752" height="130" id="navigation" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="navigation.swf" />
    <param name="quality" value="best" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="navigation.swf" quality="best"
    wmode="transparent" bgcolor="#ffffff" width="752" height="130"
    name="navigation" align="middle" allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    </div>
    Any help on this would be great, thanks.

    hi
    did you make sure , you have compatibility libraries installed on your machine [ compat-glibc* , compat-* ]
    hth

  • How can I find the index from a specific container?

    How can I find the index from a specific container?
    For example, if I'm traversing through textframes like so (an example, not tested):
    var doc = app.activeDocument;
    var story = doc.pages[0].textFrames[0].parentStory;
    for (var i=0, l=story.textContainers.length; i<l; i++) {
         var textFrame = story.textContainers[i];
         if (textFrame.constructor.name == "TextFrame") {
              var lastPara = textFrame.paragraphs.lastItem();        //How can I find the index of this in relation to the story?
    How can I find the index of "lastPara" in relation to the story rather than the current container?
    I tried:
    var newPara = story.paragraphs[lastPara.index];
    but this results in an invalid object. . .
    alert(newPara.isValid);      //returns false

    The .index property is the character offset. So lastPara will begin at story.characters[lastPara.index].

Maybe you are looking for

  • Cannot install drivers for PXI-MXI-3

    We bought a MXI-3 system for our Acqiris cc103 crate. About 2 months ago, after initial troubles, I managed to install and test the system. Unfortunately, I had to uninstall the PCI card and software because I wasn't using the crate and my computer d

  • Correct payment method for Plusgiro vendors in Sweden?

    I´m not sure if I´m in the correct forum, but I hope someone can move my thread to the right one if that´s the case. We use SAP at work and we have recently changed banks to Citibank. At the same time, it was decided that we should enter all the vend

  • Which table or structure it will exists MENGV15

    which table or structure it will exists MENGV15

  • Need to add field to standard program.

    Hi all I need to add a field to standard program whic is from the Ztable.  How do I do it and where should i add the field.  Plz help. Regrds Mona

  • Script to save previously unsaved, newly created files?

    I'm looking for a script that can save an open, previously unsaved, image as a TIFF file. It's important that it's not needed to enter a new file name every single time the script is executed, I need the script to do that for me, at least once a file