HtmlDataTable (seem to be) not updating HtmlSelectOneListBox model values

I have a table with multiple rows of model objects in a list. One of the controls in the row is a selectone list box with its own list of selectItem objects
On submit and back, any text controls I have in the table and also in the form are retaining their state and updating the model values
But the selctone list box is not updating the models?
If I follow the phase events I see the update model phase passing through. Not sure why the data in the ui is not submitted to the model
If I locate the ui control and ask its selected value I see the changed value. But this is not communicated to the the model.
Is there a known issue with a data table and select drop downs, especially for keeping the state.
The backing bean is session scope where the data for the table is maintained as a list of pojo objects. The drop down values are kept in a list of SelectItem objects
Thanks in advance for help
Satya

In short, my fault.
I have the list items bound to a list. But the I haven't bound the HtmlSelectOneList box with a value binding. I was under the impression that the selected item from this list is kept with the item as in the case of html. But in this case it is kept with the parent via its value attribute.
Now the state is kept as the form goes back and forth.

Similar Messages

  • How to  not update the model value whe, multiple back-end validation failed

    Hello !
    I have a save button who perform in backend code multiple validations on some fields. The validations can be ok, if not, I show specific error messages in my page. It's working fine.
    The problem is that all the InputText I need to valid are value binded with value=#{backing.somepropery} to the model and when the code of the ActionEvent is called the model was already update.
    So the validation is useless, you see error message ok but I can't prevent action to be done.
    As the validation occurs only when I press a specific button I can't use custom validator.
    does someone have an idea to manage that ?
    Thank You.
    Dan.

    Thnaks for your repsonse but, it"s not working because the values are bound so the modifications are already done.
    I'm sure that there is a way to do that.

  • Hello, why is all of my music on my iphone but only a few songs on my itunes on my laptop? it seems like its not updating on my laptop because it still says i have credit and i know i that there isnt any please help thanks

    hello, why is all of my music on my iphone but only a few songs on my itunes on my laptop? it seems like its not updating on my laptop because it still says i have credit and i know i that there isnt any please help thanks

    If they are iTunes purchases that you bought on your phone then have you copied them over from it to your computer's iTunes ? If that is the computer that you sync the phone to then you should be able to copy them over by connecting it and doing File > Devices > Transfer Purchases. Or (depending upon what country that you are in) you might be able to redownload them directly on your computer's iTunes via the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage.
    In terms of your account's balance, have you tried logging out of your account on your computer (Store > Sign Out menu option) and then logging back in (it will change to a Store > Sign In option) and seeing if your balance changes ?

  • Batch Split in OBD & billed for the entire Quantity .RG1  register does not update the excise values

    Hi All,
    I am new here . We have batch split in Delivery and 601 happens for the individual batches and billing we bill for the entire quantity . Hence the RG1 does not update the excise values for the batches and it is showing as zero (upon extraction in J2I6). Upon research through the program the latest note which i presume is patched
    The latest note is N158234 which does not show in the program but seems have been patched considering we are using the Latest version of SAP .
    As you see above in the billing we have billed for the whole quantity but RG1 does not update for the since the batches are zero .
    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split .
    Now i have checked few other projects in my company and they all seems to be following the program . So i am wondering whether my process or some customization is missing .
    Sales order (no batch determination)  , in delivery the batches are picked through wm to and batch split happens in the delivery . Then billling for the whole quantity . We have automatic excise invoice creation enabled so no J1IIN .
    Can somebody help me .
    Thank you

    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split
    Which field (H & J) they were referring in VBFA ?
    i have checked few other projects in my company and they all seems to be following the program
    How about the other projects' values in VBFA where your techinical team is guessing some issue.  Have you compared this?
    Since you have already the note 158234 implemented in your system, ideally, you should not face any issue.
    G. Lakshmipathi

  • MIGO not updating with excise value.

    Hey Guys,
    I am facing with this problem of MIGO not
    updating with excise value.
    When I am creating the MIGO doc, and after
    I give the excise invoice no. the excise
    values are not picking up. Its showing
    zero values.
    The following
    steps are being followed by me.
    ME21N - Create STO from plant to warehouse
    VL04 - Create outbound delivery
    VF01 - Create invoice
    J1IIN - Excise invoice
    MIGO - Goods receipt at warehouse
    Earlier it was working fine, but after
    we upgraded the system with patches and implemented
    Secondary higher education cess the
    problem arose.
    Please advise.
    Appreciate your help.
    Thanks,
    Zak

    Got answer from SAP..dunno what they did but it was rectified.

  • J_1IRG23D Table was not updated With Correct Values While Doing MIGO

    Hi Friends,
    I am new to the Excise duty , facing a proble in CIN -While doing MIGO, the Excise Calculation are coming correct values (i.e 10% ),but in the table it was not updated correctly (J_1IRG23D) only one entry is showing wrong ,the other entries in the table are correct.
    In table -J_1IEXCDTL the EXBED it was with correct value 10% of the Base value
    But In table -J_1IRG23D the EXBED,ADE,CESS It was updated with 0.06% on the base value .its gives wrong value
    Kindly help in this issue.
    Regards
    Siva

    Hi,
    Go to T Code - J2I5 (not 215 it is j 2 i 5) enter details and select register PLA Check box and execute. This can be extracted many times - no problem.
    After J2i5 balance will update in registers including tables.
    Ramesh

  • Type 2 SCD -- does not update the old value.

    I have following columns in the source table:
    SSN, credit_score
    In the target, I have following columns,
    SK_ID, SSN, credit_score, flag
    I am flagging the old credit_score as 'N' when updating the row and at the same time it is supposed to enter a new credit score with flag 'Y' in another row.
    Second, If a row is completely new, It should be inserted with the flag 'Y'.
    SK_ID is the surrogate key and SSN is the natural key, My trigger column is credit_score.
    The problem is that when I run this type 2 mapping, it does not update anything but inserts the new rows only.
    I have posted the screen shots at the following link.
    http://www.box.net/shared/ea9v48r0xa
    Thanks for your help in advance.

    First of all, thanks for the reply...
    You can also look at the screen shots I posted in previous post.
    Here is how I am updating the rows (update logic).
    If source_SSN=target_SSN and source_credit_score!=target_credit_score
    then flag = 'N' (this is the update from 'Y' to 'N' after which i will insert a new row containing new value of credit_score with flag 'Y')
    As an example, if my old rows in the target table were:
    sk_id SSN credit_score flag
    101 2212 654 Y
    102 3023 707 Y
    Now let's say my source table has these values.
    SSN credit_score
    2212 648
    2220 690
    Then my target table should be like this:
    sk_id SSN credit_score flag
    101 2212 654 N
    103 2212 648 Y
    102 3023 707 Y
    104 2220 690 Y
    Do you see what I mean...

  • JScrollPane not updating when Jlist values are changed

    Hello,
    I have a utility where I have a JList with file names inside a JScrollpane. When a user changes directories, the file list changes to the fully qualified names of the files contained in the new directory. The idea is to have the file names show up in the viewport by scrolling the horizontal scroll bar all the way to the right.
    Here's a short break down of what my code. Sorry I can't provide a runnable snippet, I'm a lot crunched for time.
    Arrays.sort(fileArray);
    fileList.setListData(fileArray);
    hBar = FileScrollPane.getHorizontalScrollBar();
    hBar.setValue(hBar.getMaximum());
    The problem is that hbar.getMaximum() always seems to be a step behind. I always get the Maximum width from the last list of files. As I traverse down a directory tree this results in the knob always being not quit all the way to the right.
    I've tried running fileList.revalidate() after the setListData.
    I've tried calling FileScrollPane.setViewportView(fileList) after the setListData.
    I've tried setting the setViewPositon using getWidth from fileList.
    I've tried setting fileList.setPreferredSize(null) after the setListData, then setting the Viewport, then calling revalidate.
    Somehow the JScrollPane just isn't picking up that the jList has changed and updating it's scrollbars model accordingly until after I've run setValue.
    So my question summed up is:
    Is there someway to force JScrollPane to realize that the JList has changed and update it's components accordingly?

    I tried the revalidate and repaint and it didn't seem to work. I can't use threads for political reasons. so I wrote up the following code which demonstrates the problem. Notice that you have to click a button twice to get the correct values displayed in standard out. Any help would be greatly appreciated.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    public class TestJListScroll extends JFrame {
      JScrollPane jScrollPane1 = new JScrollPane();
      String[] listValues1 = {"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",
                              "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",
                              "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",
                              "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh"};
      String[] listValues2 = {"TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT",
                              "TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT",
                              "TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT",
                              "TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT"};
      String[] listValues3 = {"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD",
                              "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD",
                              "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD",
                              "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD",
                              "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"};
      BorderLayout borderLayout1 = new BorderLayout();
      JPanel jPanel1 = new JPanel();
      JList list = new JList();
      JButton button1 = new JButton();
      JButton button2 = new JButton();
      JButton button3 = new JButton();
      public TestJListScroll() {
        try {
          jbInit();
        catch(Exception e) {
          e.printStackTrace();
      public static void main(String[] args) {
        TestJListScroll testJListScroll1 = new TestJListScroll();
        testJListScroll1.setSize(150,300);
        testJListScroll1.setVisible(true);
      private void jbInit() throws Exception {
        jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
        jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        this.getContentPane().setLayout(borderLayout1);
        jPanel1.setMinimumSize(new Dimension(10, 75));
        jPanel1.setPreferredSize(new Dimension(10, 75));
        button1.setText("List 1");
        button1.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            button1_actionPerformed(e);
        button2.setText("List 2");
        button2.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            button2_actionPerformed(e);
        button3.setText("List 3");
        button3.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            button3_actionPerformed(e);
        this.getContentPane().add(jScrollPane1, BorderLayout.CENTER);
        this.getContentPane().add(jPanel1, BorderLayout.SOUTH);
        jPanel1.add(button1, null);
        jPanel1.add(button2, null);
        jPanel1.add(button3, null);
        jScrollPane1.getViewport().add(list, null);
        list.addPropertyChangeListener("model", new PropertyChangeListener() {
          public void propertyChange(PropertyChangeEvent e) {
            list_ModelChanged(e);
      void button1_actionPerformed(ActionEvent e) {
        System.out.println("button 1 pressed");
        list.setListData(listValues1);
      void button2_actionPerformed(ActionEvent e) {
        System.out.println("button 2 pressed");
        list.setListData(listValues2);
      void button3_actionPerformed(ActionEvent e) {
        System.out.println("button 3 pressed");
        list.setListData(listValues3);
      private void list_ModelChanged(PropertyChangeEvent e) {
        list.revalidate();
        list.repaint();
        BoundedRangeModel model = jScrollPane1.getHorizontalScrollBar().getModel();
        System.out.println("   file list width = " + list.getWidth());
        System.out.println("   Maximum = " + model.getMaximum());
        System.out.println("   extent = " + model.getExtent());
        model.setValue(model.getMaximum() - model.getExtent());
        System.out.println("   value = " + model.getValue());
    }Thanks,
    Jason

  • Trigger is not updateing the :new value in the table

    Hi,
    I've greated a row trigger that will trigger on insert statements.
    The last thing the trigger will do is to update the :NEW.role_id value in the inserted row, see the trigger bellow.
    The trigger was mutation so I had to add the 'PRAGMA AUTONOMOUS_TRANSACTION;' to avoid the mutation error.
    When performing test with controlled insert statements the trigger is working without problems, but when I my J2EE application is inserting rows to the table the role_id value is nog updated, see the trigger below and the :NEW.role_id := nRole_id; part. The role_id for the new row is empty. What can be the problem?
    CREATE OR REPLACE TRIGGER MSP_36.M2_USER_ALERT_INSERT_TRG_SCA
    BEFORE INSERT
    ON MSP_36.M2_USER_ALERT
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    ex_not_valid_role_name EXCEPTION;
    /* Variables */
    nAlertTypeId M2_USER_ALERT.alert_type%TYPE;
    isLogical      boolean;
    validRole     boolean;
    nRole_id      M2_ROLE.role_id%TYPE;
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
         BEGIN
              SELECT distinct at.alert_type INTO nAlertTypeId
              FROM M2_USER_ALERT ua, M2_ALERT_TYPE at,M2_ALERT_TYPE_PROPERTIES atp
              WHERE ua.alert_type = at.alert_type
              AND at.alert_type = atp.ALERT_TYPE_ID
              AND ua.alert_type = :NEW.alert_type
              AND upper(atp.property_name) = 'LOGICAL'
              AND upper(atp.property_value) = 'TRUE';
              isLogical := true;
         EXCEPTION
                   WHEN no_data_found THEN
                   isLogical := false;
                   NULL;     
         END;     
    IF (isLogical = true) THEN
    BEGIN
              SELECT distinct ro.role_id INTO nRole_id
              FROM M2_ROLE ro, M2_USER_ALERT
              WHERE ro.name = :NEW.name;
         EXCEPTION
                   WHEN no_data_found THEN
                        validRole :=false;
                        RAISE_APPLICATION_ERROR(-20001,'LOGICAL UserAlert: Role with id'|| nRole_id || ' does not exist.');     
                        NULL;
         END;
         validRole := true;
         IF (isLogical = true AND validRole = true AND :NEW.status = 1) THEN
         INSERT INTO M2_USER_ROLE (user_id,role_id)
         VALUES (:NEW.user_id,nRole_id);
         :NEW.role_id := nRole_id;
    END IF;
    END IF;
    commit;
    END;
    Many thanks,
    Michael

    I only get a empty column that include now data. The first insert is working correct so I know that the role_id is valid and working. Can there be problem with commit or my AUTONOMOUS_TRANSACTION running this from JDBC ?
    EXAMPLE data from
    M2_USER_ROLE
    ===================
    USER_ID = ROLE_ID =
    ===================
    20 = 10040 =
    1259756 = 10040 =
    ===================
    Example partly data from
    M2_USER_ALERT
    =========================================================
    USERALERT_ID = USER_ID = ALERT_TYPE = NAME = ROLE_ID =
    =========================================================
    3725 = 1259756 = 10288 = MG_Test = =
    =========================================================
    When inserted from the application the role_id is empty and I've taken the same SQL from the library cache and run it with same BIND variables and then it's working.
    Michael

  • How come my local variable is not updating it's value with respect to what's happening in the while loop?

    Hello,
    I am trying to extract data out of a while loop as my declarations update with respect to the iteration number. I have attempted to use both local variables and shift registers, but with no luck.
    I have also done the following example: http://www.ni.com/white-paper/7585/en and it works like a charm.
    I attached the PNG file with local variable declaration circled in red. Will attach a VI in the next respnose.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Local Variable.png ‏366 KB

    OK, looking at the code...
    Can you explain what it is supposed to do? What's the purpose of the value property node read which only seems to update an indicator.
    The inner while loop should proably be a FOR loop, because the number of iterations is known before the loop starts.
    Your use of formula nodes seems overly complicated.
    LabVIEW Champion . Do more with less code and in less time .

  • BPS on portal not updating all YTD values on saving

    Hi All,
    We recently integrated BW-BPS with EP portal.
    When i do a test run on layout from portal, i see some of the YTD calculations not getting updated at all even after my several hits on save icon. But this is happening only to some of the YTD calculations.
    I check the fox calculation.
    To  make sure from BW-BPS side, i ran an other test run in BW-BPS and see all YTD values updated on the layout as saved.
    Could somebody help me out if you have any idea on this issue.
    Appreciate any kind of input.
    Regards,
    Mamatha

    Issue resolved. Change to process chain.

  • Fieldpoint engine not updating after first value

    I'm using an FP-1000 and an FP-TC-120 with two thermocouples attached. I've successfully set everything up with Fieldpoint Explorer and the data updates perfectly. The problem is when I try and read the tag values using a VI in Bridgeview. I start the VI and it starts the Fieldpoint Engine and reads the first value from it. This is the only value it will report to the VI and I can't figure out what the problem is. The only way to get a new value is to restart the engine, and once again it only reads one value and then doesn't update anymore. The VI continues running and getting data but it's always the same as the first time. I tried searching for a problem similar to mine but I wasn't sure what exactly to search for and I couldn't find much help.
    Thanks.

    There are several items in the tag configuration that you should check as they may cause extremely slow updates. First (and most likely), check the Update Deadband. If I recall correctly, it defaults to 1%. With an FP-TC-120 set to -270 to 1770 C, that is 1% of 2040 C or 20.4 C. This means that the engine will automatically filter out changes that are less than 20.4 C from the initial value. Next, check the tag update rate. You should set it for an interval of 1.13 seconds (All Channel Update Rate of the FP-TC-120). Finally, check the group update rate.
    Edit: A more appropriate deadband would be 0.05% or 1.02 C with the -270 to 1770 C range.
    Regards,
    AaronMessage Edited by Aaron G on 03-06-2005 08:38 AM

  • Editable alv not update with decimal values

    Friends.
    i have editable alv, there is a editable field is with 3 decimal places.
    my problem is when i changed there value as  15 its take 1.5 and if i change as 150 its take 15.
    can you please help me to solve my problem?
    thanks in advance!

    Hi Friend,
    This Problem will be solved in below method.
    Define Your filed type in currency.
    Eg. vnumber TYPE CE1SAS1-KWABLK (kwablk is a currency field).
    In FIELDCATALOG add currency.
    Eg:
    lw_fcat-fieldname = 'VNUMBER'.
    lw_fcat-edit = 'X'.
    lw_fcat-datatype = 'CURR'.

  • Update Model from database does not update Nullable Property -- Possible bug?

    Hi,
    I don't know if this is the correct forum.
    When updating Model from database seems does not update the entity nullable property.
    and it will not update the Default Value from the Backend (MSSQL) also.
    I am using VS2008 SP1 3.5EF, XP64Bit Machine.
    Thanks
    vb.net GUI

    maybe related..
    today.. i changed the PK size.. from char(10) to char(36)
    got many problems.. easy to fix...
    but some query stop working:
    Table1Record.Table2Reference.Load(); //i'm trying to load table2 from table1..
    throw this error: A relationship multiplicity constraint violation occurred: An EntityReference expected at least one related object, but the query returned no related objects from the data store.
    i get this error only when PK is greater than char(10)...
    with SQL profiler.. i saw that PK was truncated to char(10) :
    exec sp_executesql N'SELECT [... some fields...]
    FROM  [dbo].[Table1] AS [Extent1]
    INNER JOIN [dbo].[Table2] AS [Extent2] ON [Extent1].[NoTable2] = [Extent2].[NoTable2]
    WHERE [Extent1].[NoTable1] = @EntityKeyValue1',N'@EntityKeyValue1 char(10)',@EntityKeyValue1='a2164b14-e'
    (NoTable1 is the PK changed from char(10) to char(36))
    i'm working with VS.NET 2008
    so, i looked at Model1.Edmx... in notepad
    CSDL was not changed when i did the "Update Model from Database" !!!
    here is SSDL part:
            <EntityType Name="Table1">
              <Key>
                <PropertyRef Name="NoTable1" />
              </Key>
              <Property Name="NoTable1" Type="char" Nullable="false" MaxLength="36" />
    here is CSDL part:
            <EntityType Name="Table1">
              <Key>
                <PropertyRef Name="NoTable1" />
              </Key>
              <Property Name="NoTable1" Type="String" Nullable="false" MaxLength="10" Unicode="false" FixedLength="true" />
    Cool.. i found the prob.... but why ? and how to correct this ? manually change Model1.Edmx in notepad ??
    why the maxlength property is readonly in Model Browser pane ??
    what about VS.NET 2010 ?! same prob ??
    is it a bug or by design ?
    I hope this can help someone.. I spent a few hours on this prob
    Patrick

  • Struts2 - ScopedModelDriven - Unable to update the model in session

    Hi,
    I have a problem implementing ScopedModelDriven.
    I Have Model / User Java Bean object in action class.
    I am trying to implement concept of same model object being used for 3 JSP pages with PREVIOUS and NEXT button navigation.Data to be updated in Model object for every page navigation and to be saved in session.
    It is found the latest data is found from value stack when jsp page is navigated to next page, but not updated in Model object either in request or session scope I am sure I have configured necessary interceptors properly.
    This could be easily done in struts1 by setting the Actionform in session scope.Any advice or thought?.
    Struts.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
    <struts>
    <constant name="struts.enable.DynamicMethodInvocation" value="false" />
    <constant name="struts.devMode" value="false" />
    <package name="myPackage" namespace="/" extends="struts-default">
    <interceptors>
    <interceptor name="myMultipleForm"
    class="com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor">
    <param name="scope">session</param>
    <param name="name">user</param>
    <param name="className">com.ut.p.s2.beans.User</param>
    </interceptor>
    </interceptors>
    <global-results>
    <result name="error">/jsp/Error.jsp</result>
    <result name="invalid.token">/jsp/Error.jsp</result>
    <result name="login">/jsp/login.jsp</result>
    </global-results>
    <global-exception-mappings>
    <exception-mapping
    result="error"
    exception="java.lang.Throwable"/>
    </global-exception-mappings>
    <action name="ShowScopedModel" class="com.ut.p.s2.actions.ServletTestAction" >
    <interceptor-ref name="servletConfig"/
    <interceptor-ref name="app_common"/>
    <result name="model_test_page">/jsp/smodelTest.jsp</result>
    <result>/jsp/smodelTest.jsp</result>
    </action>
    <action name="scopedModelAction_*" class="com.ut.p.s2.actions.ScopedModelDrivenAction" method="{1}">
    <interceptor-ref name="basicStack"/>
    <interceptor-ref name="defaultStack" />
    <interceptor-ref name="prepare"/>
    <interceptor-ref name="debugging"/>
    <interceptor-ref name="scopedModelDriven">
    <param name="scope">session</param>
    <param name="name">user</param>
    <param name="className">com.ut.p.s2.beans.User</param>
    </interceptor-ref>
    <interceptor-ref name="params"/>
    <interceptor-ref name="conversionError"/>
    <interceptor-ref name="workflow"/>
    <result name="input">/jsp/smodelTest.jsp</result>
    <result>/jsp/smodelResult.jsp</result>
    <result name="model_test_page">/jsp/smodelTest.jsp</result>
    <result name="model_test_page2">/jsp/smodelTest2.jsp</result>
    <result name="model_test_page3">/jsp/smodelTest3.jsp</result>
    <result name="model_result_page">/jsp/smodelResult.jsp</result>
    </action>
    </package>
    </struts>
    Action:
    package com.ut.p.s2.actions;
    import java.util.ArrayList;
    import com.ut.p.s2.beans.Books;
    import com.ut.p.s2.beans.Dept;
    import com.ut.p.s2.beans.User;
    import com.opensymphony.xwork2.ActionSupport;
    import com.opensymphony.xwork2.Preparable;
    import com.opensymphony.xwork2.interceptor.ScopedModelDriven;
    public class ScopedModelDrivenAction extends ActionSupport implements ScopedModelDriven,Preparable {
    private User user =null;
    private static final long serialVersionUID = 1271130427666936592L;
    private String scope = null;
    public void prepare() throws Exception {
    user = new User();
    ArrayList arlList=new ArrayList();
    Books b1 = new Books("Java",100);
    Books b2 = new Books("VB",200);
    arlList.add(b1);
    arlList.add(b2);
    Dept dept = new Dept();
    dept.setDeptNo("100");
    dept.setDeptName("Mechanical");
    user.setDept(dept);
    user.setArlList(arlList);
    public String getScopeKey() {
    return scope;
    public void setModel(Object arg0) {
    this.user = (User) arg0;
    public void setScopeKey(String arg0) {
    scope = arg0;
    public Object getModel() {
    return user;
    public User getUser() {
    return user;
    public void setUser(User user) {
    this.user = user;
    public String execute() {
    System.out.println("execute()........."+user);
    return INPUT;
    public String input() throws Exception {
    System.out.println("input()........."+user);
    return SUCCESS;
    public String save() {
    System.out.println("save()........."+user);
    return "model_result_page";
    public String page1() {
    System.out.println("page1()........."+user);
    System.out.println("page1()....scope....."+scope);
    return "model_test_page";
    public String page2() {
    System.out.println("page2()........."+user);
    System.out.println("page2()....scope....."+scope);
    return "model_test_page2";
    public String page3() {
    System.out.println("page3()........."+user);
    System.out.println("page3()....scope....."+scope);
    return "model_test_page3";
    }//end class
    JSP Page:
    <%@ page errorPage="/jsp/Error.jsp" %>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@taglib uri="/struts-tags" prefix="s" %>
    <html>
    <head>
    <s:head theme="simple"/>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>User Details</title>
    </head>
    <body>
    <h2>User Details</h2>
    <hr>
    User Name :<s:property value="name" /><br>
    Age :<s:property value="age" /><br>
    Hobbies :<s:property value="hobby" /><br>
    Country :<s:property value="country" /><br>
    <TABLE border="1">
    <s:iterator value="arlList" status="row">
    <TR>
    <TD><s:textfield name="arlList[%{#row.index}].name" value="%{name}" /></TD>
    <TD> <s:text name="arlList[%{#row.index}].price" /></TD>
    </TR>
    </s:iterator>
    </TABLE>
    <h2>
    User Department :<s:property value="dept" /><br>
    <s:property value="dept.id" />
    <s:property value="dept.name" />
    <jsp:include page="Footer.jsp"/>
    </body>
    </html>

    I am very surprised that you aren't aware of the CODE tags after being registered here for 5 years. Now your whole post with raw and unformatted code is hard to read. Make use of CODE tags to post code. You can use the CODE button in the toolbar of the message editor to get them.
    With regard to your actual problem: as this is a Struts specific issue and you're here at a JSP forum, all I can do is to suggest you to use a forum/mailinglist devoted to Struts if you don't get sufficient support here after a while.

Maybe you are looking for

  • I forgot my icloud email and my password pls help me ineed my phone fix

    i forgot my icloud email and password what can i do ? pls help me

  • Can my Airport Extreme recieve a signal from another AE?

    I'm buying a new iMac that will have an Airport installed in it. I want my old flat panel iMac 800Mhz G4 to now be wireless. Can I just connect the AE via ethernet and Bam be connected with my old iMac. I asked a question earlier about a USB connecte

  • Hi BAPI & MM experts

    hi when i m creating po using bapi_po_create1 ,i am giving item category as 'B' in input, but when the BAPI is saved  it is getting saved as 'D' in ekpo table. i am facing this problem in  version 5.0, but when i am doing the same in ecc 6.0, i am ge

  • System to system interaction through gateway

    Hi, I'm building an mobile/desktop application with SAPUI5 -> Gateway ->HANA as the architecture. Now apart from the end user inputs I have a scenario where I will get data from a system. Is system to system interaction via OData services acceptable?

  • Incoming

    where can i find the hotmail incoming and outgoing settings for my mac pro?  i am assuming the settings will be the same for my iphone as well? please help thank you.