Struts - map-backed property

I have a dynamically generated struts form(map-backed property).
This is HTML page generated by Struts.
<tr>
<td>Insurance - Cancel: </td>
<td><input type="radio" name="field(2203)" value="I"></td>
<td><input type="radio" name="field(2203)" value="N"></td>
<td><input type="radio" name="field(2203)" value="U"></td>
</tr>
<tr>
<td>Client Letter: </td>
<td><input type="radio" name="field(2202)" value="I"></td>
<td><input type="radio" name="field(2202)" value="N"></td>
<td><input type="radio" name="field(2202)" value="U"></td>
</tr>
Form class
     private final Map values = new HashMap();
     public void setField(String key, Object value)
          values.put(key, value);
     public Object getField(String key)
          return values.get(key);
I am trying to get a value from a radio button checked by a user. but I don't have a clue how to do it in Action class.
does anybody know how to do it?
Thanks in advance.

I have a dynamically generated struts form(map-backed property).
This is HTML page generated by Struts.
<tr>
<td>Insurance - Cancel: </td>
<td><input type="radio" name="field(2203)" value="I"></td>
<td><input type="radio" name="field(2203)" value="N"></td>
<td><input type="radio" name="field(2203)" value="U"></td>
</tr>
<tr>
<td>Client Letter: </td>
<td><input type="radio" name="field(2202)" value="I"></td>
<td><input type="radio" name="field(2202)" value="N"></td>
<td><input type="radio" name="field(2202)" value="U"></td>
</tr>
Form class
     private final Map values = new HashMap();
     public void setField(String key, Object value)
          values.put(key, value);
     public Object getField(String key)
          return values.get(key);
I am trying to get a value from a radio button checked by a user. but I don't have a clue how to do it in Action class.
does anybody know how to do it?
Thanks in advance.

Similar Messages

  • Struts Mapped-Backed Form & Javascript

    Hi I have a form like this:
        <html:form action="AlAction.do" styleId="form"
              onsubmit="return verify()">
         <input type="hidden" name="value(mca_action)" value="AccessLocationAddSubmit">
         <table border="1" id="accesslocation">
             <tr>
              <td>Roaming Group Name</td>
              <td><html:text property="value(alName)" styleId="alName" onkeypress="return onKeyPressBlockNumbers(event);"/></td>
             </tr>
             <tr>
              <td>IP Address</td>
              <td>IP Mask</td>
              <td>Type</td>
              <td><input type="button" value="Add" onclick="addRow('accesslocation');"/></td>
             </tr>
             <tr>
              <td><html:text property="value(alIpAddress)"/></td>
              <td><html:text property="value(alIpMask)"/></td>
              <td>
                  <html:select property="value(alType)">
                   <html:option value="sgsn">SGSN</html:option>
                   <html:option value="coa">COA</html:option>
                  </html:select>
              </td>
             </tr>
         </table>
         <BR>
         <input type="submit" name="Submit" value="Submit">
         <input type="reset" name="Reset" value="Reset">
        </html:form>The field "value(alName)" is a required field but i'm having trouble accessing it in my javascript:
    document.form.element['value(alName)']==""
    Is that the right way to access the fields?

    Give proper name to html fields.
    remove brackets from the name.
    If u want any separater then better give underscore.
    hope this will solve ur issue

  • How do I map custom property from portal api ptsearchresponse?

    I want to map the search results to my datatable.
    I can execute the search fine. But how do I map the property value? My property id is 101.
    In other words which ptSearchResponse method do I use?
                    IPTSession ptSession;
                    IPTSearchRequest ptSearchRequest;
                    IPTSearchResponse ptSearchResponse;
                    IPTSearchQuery ptSearchQuery;
                    string serverConfigDir = ConfigPathResolver.GetOpenConfigPath();
                    IOKContext configContext = OKConfigFactory.createInstance(serverConfigDir, "portal");
                    PortalObjectsFactory.Init(configContext);
                    ptSession = PortalObjectsFactory.CreateSession();
                    ptSession.Connect(1, "", null);
                    // Create a SearchRequest object
                    ptSearchRequest = ptSession.GetSearchRequest();
                    // Set search settings (constraints)
                    // Set maximum results desired (100)
                    ptSearchRequest.SetSettings(
                    PT_SEARCH_SETTING.PT_SEARCHSETTING_MAXRESULTS, 100);
                    // Set the folder in which to search (array to support multiple folders)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_DDFOLDERS,
                        new int[] { Convert.ToInt32(ConfigurationManager.AppSettings["DocumentFolderId"]) });
                    // Include subfolders of the folder
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_INCLUDE_SUBFOLDERS, true);
                    // Restrict search to just portal documents
                    // (not ALI Collaboration or ALI Publisher)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_PORTAL);
                    // get documents only
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_OBJTYPES, new int[] { PT_CLASSIDS.PT_CATALOGCARD_ID });
                    // Request the intrinsic PT_PROPERTY_PROVIDERCLSID and custom property 101
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_RET_PROPS,
                        new int[] { PT_INTRINSICS.PT_PROPERTY_PROVIDERCLSID, 101 });
                    //Use IPTFilter to create search filter with clause with two statements
                    IPTFilter ptFilter;
                    IPTPropertyFilterClauses ptFilterClause;
                    IPTPropertyFilterStatement ptFilterStmt1;
                    IPTPropertyFilterStatement ptFilterStmt2;
                    // Create the filter itself
                    ptFilter = PortalObjectsFactory.CreateSearchFilter();
                    // Create the filter clause
                    ptFilterClause = (IPTPropertyFilterClauses)ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_CLAUSES);
                    ptFilterClause.SetOperator(PT_BOOLOPS.PT_BOOLOP_OR);
                    // Attach it to the filter itself
                    ptFilter.SetPropertyFilter(ptFilterClause);
                    // Put two statements into the clause
                    ptFilterStmt1 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt1.SetOperand(101);
                    ptFilterStmt1.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt1.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt1, ptFilterClause.GetCount());
                    ptFilterStmt2 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt2.SetOperand(1);
                    ptFilterStmt2.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt2.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt2, ptFilterClause.GetCount());
                    // Make the filter into an actual search query
                    ptSearchQuery = ptSearchRequest.CreateAdvancedQuery(ptFilter);
                    // Run the search and return results
                    ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);               
                    // How many things matched the search?
                    int totalMatches = ptSearchResponse.GetTotalMatches();
                    // How many items were returned? (Not necessarily all)
                    int returnedMatches = ptSearchResponse.GetResultsReturned();
                    // create DataTable and map results to
                    // datatable fields
                    DataTable dtSearchResults = new DataTable("Documents");
                    dtSearchResults.Columns.Add("Name");
                    dtSearchResults.Columns.Add("Excerpt");
                    dtSearchResults.Columns.Add("DocSubject");
                    dtSearchResults.Columns.Add("DocTopic");
                    dtSearchResults.Columns.Add("DocType");
                    dtSearchResults.Columns.Add("DocKeywords");
                    dtSearchResults.Columns.Add("Url");
                    dtSearchResults.Columns.Add("ImageURL");
                    DataRow dr;                                                                                                          
                    // Print the name of each result
                    for (int i = 0; i < returnedMatches; i++)
                        dr = dtSearchResults.NewRow();
                        String strName = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTNAME);                  
                        String strText = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTSUMMARY);
                        String strURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_DOCUMENTURL);
                        String strImageURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTIMAGEUUID);
                        dr["Name"] = strName;
                        dr["Excerpt"] = strText;
                        dr["Url"] = strURL;
                        dr["ImageURL"] = "pt://images/plumtree/portal/public/img/sml" + strImageURL + ".gif";
                        dtSearchResults.Rows.Add(dr);
    Edited by [email protected] at 04/11/2008 7:26 PM
    Edited by [email protected] at 04/11/2008 7:27 PM

    Problem solved. I should use JsonObject instead of JSONObject :D 

  • How can i get Google maps back on, i lost them with the ios6 update, the new maps are terrible

    how can i get Google maps back on, i lost them with the ios6 update, the new maps are terrible

    It's still not known if and when Google Maps becomes available in the AppStore. This is today's story: http://www.macrumors.com/2012/09/25/google-has-not-yet-submitted-a-google-maps-a pp-to-apple/

  • How to map back charge process

    Hello friends,
    I need help to map below scenario in SAP:
    We have third party business process, where vendor V1 is supplying material to customer. When customer receives material; V1 invoices us and we make payments to V1.At this point PO is closed for vendor V1.
    Now if customer faces any problem with material, then we call local vendor V2 to repair or service the material. What ever charges come from local vendor is suppose to reimburse by vendor V1.
    Now how can we link V2 vendor invoice amount to V1 invoice. What will be the document flow? How to map back charge process . 
    Note:
    We have considered adding negative line items to the existing PO but understand this is not possible once payment has been issued and the PO is closed.
    We have considered creating a u201Creverse sales orderu201D but do not want to create a separate order or handle the vendor under a separate sold-to account (as a customer)
    We have considered a manual FI invoice but do not want to handle the vendor under a separate sold-to account (as a customer)
    Seeking valuable inputs from experts.
    Regards
    Ravi

    Hi Raghavendra
    Yes V2 exist in SAP, right now we create new purchase order to V2 for services for material at customer location, after his service we do payment to V2 and same amount is charged to V1.
    While charging V1 , we need to treat V1 as a customer( sold to party ) , which we donu2019t want , and direct clearing from FI is also not fusible as we again need to treat V1 as customer ( sold to party ) .
    Our requirement is to map using some credit memo or debit memo or any other documents.
    regards
    Ravi

  • Mapping back to Auto-ID field

    We have an Auto-ID number that is created in MDM. We then syndicate this (and other data) out to XI through a BAPI and it returns this number and a second number created externally. I am unable to map the field on the source file with the matching Auto-ID on the destination file in MDM so that everything else maps correctly. We have key mapping turned on.

    Suman,
    Thanks for your suggestion. Perhaps I'm going about it wrong. Let me go into more detail as to what I am working with. Here are some example field values:
    MDM
    Customer MainTable:
    Remote Key:  NULL
    ID: Auto-ID
    Cust-ID: Calculated = ID + 1000
    Customer: 90001234
    SAP_ID: NULL
    Customer_Cont:
    Contact_ID: NULL (to hold contact tracking #, unique to contact)
    SAP_ID: NULL (to hold SAP_ID of contact)
    What is happening is that I am syndicating out to an XML file which will hold four fields:
    CUSTOMERNO: can be any number
    MDMCUSTOMER: will be NULL upon syndication
    return_item_CONTACT: NULL
    return_item_MDM_CONTACT: NULL
    The idea is that these will be syndicated out with a key in CUSTOMERNO and then when it is returned by XI, the R3 system to which it was syndicated will be returning values for MDMCUSTOMER which will be mapped back to SAP_ID in the Customer Main table as well as
    return_item_CONTACT:
    return_item_MDM_CONTACT:
    which will provide the data going into the Customer_Cont table.
    Within Import Mgr, I have mapped the field CUSTOMERNO to the following fields:
    Remote Key, Cust-ID, Customer
    ID: Auto-ID will not allow itself to be mapped to.
    I have remote mapping turned on and for exact and partial matches, I set the option to "Update (NULL fields only)", but in every instance, it simply creates a new record. I am afraid I am missing a step in creating a key. Is there a way to populate the "remote key" value before syndicating it out?
    Thank you in advance.

  • Is there any documentation on taxes map back to B1

    In SAP B1 we have the taxes at the lowest level defined at the COUNTY level since the customers are US customers.  This is the SALES TAX CODE configuration in B1.
    Does the 'TAX CODE' in ECOMMERCE map back to the SALES TAX CODE in B1?
    If that is the case, then there could be slight variation in the tax capture since in in ECOMMERCE the appropriate TAX CODE is picked based on ZIP code/State combo.  Where as in the B1 the TAX CODE is defined based on county.  Since some ZIP codes could belong to two counties, there is the chance that the tax reporting will be off since a ZIP code could map reimbursement to the wrong county.
    Could someone confirm or deny that please?
    Mike

    Mike,
    A little background information.
    B1 maps taxes to shipping addresses, then also gives the user the ability to override or set the tax when they enter an order on behalf of that BP. 
    Web tools being fundamentally different in the fact that the CUSTOMER is entering the information for their own account record, then entering the details of their own order does not map a tax to a shipping address but rather an automatic calculation is done based on the data input by said customer and the tax is applied to each order at the time of the order.  This, coupled with the fact that the DI puts it's own tax calculation based on the data entered by the merchant in B1 on behalf of the customer creates the issue you and everyone has, is, or will encounter.
    If you are not synching B2C accounts to B1, then you should go to the BP record of your "one time customer" or Internet Guest BP.  Then on the addresses tab you have to add every tax that you have in Web tools with some fake or placeholder data.  If the tax exists on a shipping address in B1 for the BP the order is placed for(Internet Guest) then the tax calculation will match the one in Web tools.
    Example:
    BP: Internet Guest
    Address tab : Shipping address : one entry for each tax in web tools that could be charged to a B2C customer, ie 1111 11th St South, Mapleton, ND, 58077, TAXCODE: ND
    Then when the customer from ND places an order on the web after creating a new login, and thus is charged the ND tax based on the shipping address being within 58077 zip code, the order will synch to b1, the Internet Guest BP will be used for the owner of the sales order and the ND tax will be applied as this BP has an address in ND and it is assigned the tax code of ND.
    Make sense?

  • I updated my software for my Iphone and my maps disapperead. New maps provided by Apple or of significantly worse quality than my previous Googke maps. How can I get my Google maps back?

    I updated my software for my Iphone and my maps disapperead. New maps provided by Apple or of significantly worse quality than my previous Googke maps. How can I get my Google maps back?

    This app does it well, including StreetView
    http://itunes.apple.com/gb/app/ifindview-connect-to-facebook/id480510706?mt=8

  • How can I get rid of Apple Maps and Put the Google Maps back?

    I wanted to know how to remove the Apple Maps and reinstall the Google Maps. The Apple Maps is a very inferior programme and not worth the space on the. Computer. It can't find anything. It's a complete waste of time.
    So my original question is, how to get rid of it, and put the Google Maps back?

    CHances are google maps are never coming back as part of the bundled OS. Apple and Google seem to have parted ways (possibly has something to do with Google having their apps on other devices from other manufacturers but no one knows for sure)
    Since preinstalled apps cannot be deleted, the most you can do is ignore the icon, shove it back on a back menu page (I have a 4th menu page on my iPad containing nothing but the bundled apps I consider worthless. I just ignore that page and never go there) and then put a shortcut to google maps on your iPad or find a third party map app you like better.

  • How do I get google maps back and turn on location services so I don't have to use your absolutely garbage maps

    How do I get google maps back so I don't have to use apples disgusting version of an attempt at a map

    You don't. You can use Safari and go to mobile Google maps and after opening that, tap on the arrow on the bottom of the page and save it to the homescreen. That will allow you to use Google maps web app on the phone. There is a rumor that Google is working on a stand alone app for the App store however no one knows yet if it has been submitted.

  • How can I get Google maps back on my IOS 6 IPad

    How can I get the Google Maps app back on my IOS 6 IPAD 2. This new IOS 6 Apple Maps app is absolutly awful.
    Any suggestion.
    Apple wake up and smell the coffee and put Google Maps back in the Apps Store.

    It's still not known if and when Google Maps becomes available in the AppStore. This is today's story: http://www.macrumors.com/2012/09/25/google-has-not-yet-submitted-a-google-maps-a pp-to-apple/

  • How to get regular google maps back on iPhone after ios6 "up(down)grade"

    Hoping someone from Apple will contact me about this.
    I recently downloaded the ios 6 (I hesitate to call it an upgrade at this point) and now my maps look like absolute garbage.
    I would like Google Maps back, properly (not the web app). I've read about downgrading to ios5.1.1 on other forums, but apple does not support it, and I'm afraid of bricking my iphone, or loosing my data and settings that I've spent many months refining.
    So, I'm asking you, Apple, to please figure something out for those of us who would like to go back in time and have the original phone we purchased. The maps app is absolutely useless to me at this point. If a solution is not given in a timely manner, I promise that my next phone and my next tablet will be an android (planning on upgrading both in about 1 year when my phone contract is up). I'm sure many others are also thinking the same thing.
    I think it's absolutely insane that you would break people's devices and not offer to revert back to 10 minutes ago before we started the download. This kind of planned obsolesence will only create irritated customers who will switch to a platform that doesn't tie your hands up and take away features on a whim.
    The only way to salvage your reputation from this flub is to fix it. NOW!

    ekimztom wrote:
    Hoping someone from Apple will contact me about this.
    These are user to user forums.  You are not addressing Apple by posting here, and nobody from Apple will contat you.
    If anyting , your post will be deleted as ranting and complaining are a violation of the terms of use you agreed to when signing up to use the forums.

  • Apple IOS6 Maps a serious downgrade. How can I get google maps back!

    Apple IOS6 Maps a serious downgrade. How can I get google maps back?

    Try using this for the time being
    https://maps.google.com/

  • TS1702 How can I get google maps back??

    How can I get google maps back?????? Can I get google maps on android, can I get iTunes on android or will I have to close my account and copy all my music over?please help

    Do you own an actual apple product that you need help with?

  • Map on ios6 is suck !! how can i get google maps back !????

    Every thing eles is fine , only MAP is very suck ! i need google map back ! how ?

    SO Apple inc have to approve it now !!!   thanks stevejobsfan0123

Maybe you are looking for

  • Sales Tax per item

    Hi all, How to calculate the Tax for individual item(Material). Please help. Thanks

  • BMP Tutorial mistakes

    I finished the Oracle BPM Turorial (10g Realease 3 (10.3.1) january 2009) and I want to report a couple of mistakes in the guide. On page 36 (Creating a Screenflow), step 12 says: In the Proyect Navigator, expand Processes and click Expense Report. T

  • Web Dynpro Error Messages

    Hi Guys, I have the ff scenario: 1. I have a web dynpro with a tabstrip. 2. I have a save button. My problems are: 1. When I raise error message via lo_message_manager->report_attribute_error_message, the error message is raised and the field in erro

  • Information about SAP Netweaver portal

    Hi, I am looking for information on SAP Netweaver portal, basic info getting started kind of stuff and other related stuff. I am new to portal world, I know java, servlets, jsps. I have to prepare document on introduction of SAP Netweaver portal, fea

  • Überblendungs Asset in Adobe Encore CS 5.5 MAC -  Sprung am Ende

    Hallo miteinander, ich habe ein Problem mit einem Überblendungs Asset in Adobe Encore. Es soll von einem Hauptmenü zu einem Schnittfenster (Film) überblendet werden. Eigentlich ne ganz normale Sache. So bin ich vorgegangen: 1. Menü nach After Effects