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

Similar Messages

  • 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.

  • Key mapping for forms on web

    Presently we are using forms 4.5. We have got costomise key
    mapping for operating through forms. Now we want to start forms
    on web (Intranet). Earlier we use to change key mapping through
    oracle*terminal. I require help in knowing how to customise key
    mapping in forms 6i / oracle 8.1.7.

    Hi,
    Boy, I have some good news to you: Oracle*Terminal is no longer
    needed.
    WordPad (or your favorite text editor) is your tool from now on.
    Keyboard files are located in $ORACLE_HOME\FORMS60.
    Simply ignore the binary file fmrusw.res when you run Forms on
    the Web. FMRWEB.RES is the one that is used, and it's pure ASCII.
    There are some comments in the file itself.
    The keys are the same as the Motif version of Forms.
    If you prefer the Windows keys, simply use FMRPCWEB.RES instead.
    How? Check under $ORACLE_HOME\FORMS60\SERVER for your
    formsweb.cfg, go to User Parameters and replace the
    otherparams=
    line with
    otherparams=term=%forms60%\fmrpcweb.res
    Now, anyone can define the Function-0 till Function-9 key
    combinations, in order to use KEY-F0 till KEY-F9 triggers.
    Hope this helps,
    Pedro das Neves
    [email protected]

  • Font mapping in Forms 10g on Unix/Linux

    Hello,
    does anybody have a adea how font mapping in forms 10g works on Unix/Linux.
    As far as I know I do have to have a X-Server running on the node so that forms can mapp java fonts, is this true?
    What configuration options do I have on the server.
    Can I differ strictly between development tasks (consideration of developer) and admin tasks ([configuration]considerations of Application Server Admin) referring font mapping in forms 10g?
    Is there any "Best Practices to this subject?
    Thank you.
    Regards
    Frank

    Hello Frank,
    - fontmapping takes place in Registry.dat file?!
    - According to your article "Forms: Using custom fonts in Oracle Forms Services 10g" I only have to customize fontmapping in Registry.dat file.
    -Customer developes on MS-Client and uses Arial,but is surprised about displayed font, which is´nt Arial.
    -Can I just customize font mapping in Registry.dat as follows (according your example)?
    default.fontMap.appFontnames=x,y,Arial
    default.fontMap.javaFontnames=u,v.Arial
    What do we have to consider on client site?
    What´s about java on client (JInitiator)?
    Regards
    Frank

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • 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/

  • HT4847 How i take an old back form my old iphone to my new iphone?!when i acces icloud from my phone and go to manage storage i have 4 back up for diferent phone how can acces this data?!

    How i take an old back form my old iphone to my new iphone?!when i acces icloud from my phone and go to manage storage i have 4 back up for diferent phone how can acces this data?!

    Thanks very much!
    Although I had to add everything again to the playlist, at least I can just copy it over in future!

  • 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 Map Proces form field with Resource form field?

    Hi,
    How to Map Proces form field with Resource form field while creating Process form in Form designer

    Are you talking about Provisioning ?
    then you do that in Data Flow under Process Defintion in OIM 10g
    In OIM 11g you use Request Dataset. In that you can directly map fields to process form.

Maybe you are looking for

  • How do I create an External Hard Drive iPhoto Library

    How do I create an external Hard Drive iPhoto Library? Will it remember faces and places, and the camera settings?  I have over 20k photos. Most pictures are already stored in files on my external hd, but everytime I need to edit, I need to import th

  • Radio? How do I get it to play

    New 4th generation iPod Nano won in raffle. Charged, works... but I cannot figure out how to make the radio work. earphones plugged in. I found my way through the menus. Settings-> General-> Main Menu->Radio. At that point I click on the center circl

  • Query about Leaving date,Reason for leaving fields in R3 report of HR Modul

    Hi Experts,           I have a report in R3 for HR. In the report i am getting fields like leaving date,reason for leaving . When I  clicked F1 on the leaving date and reason  i came to know the field name as FIREDATE and MGTXT... I checked in DD03L

  • CFCHART - Scalefrom & ScaleTo - CF7

    Hi Folks - I am working on a line chart and I am trying to dynamically set the ScaleFrom and the ScaleTo fields. I can do the logic to calculate the values, but when I set them, the chart values get set to the high and low of the values from the char

  • How to repair xls file? Microsoft Excel report me what file is not Excel format.

    I need help again(( i have .xls file that cannot be opened by Excel. It reports that this file is not excel format. Can i recover it?