The html-el:checkbox No Longer Works If Preceded by html-el:form

My <html-el:checkbox worked fine. But if the <html-el:form ....> ... </html-el:form> come before the <html-el:checkbox ... >, I got the runtime JSP error: "cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope".
The complaint points specifically to the <html-el:checkbox property="selectedUsers[${idx.index}].selected" />. The getter method for selectedUsers[0].selected can no longer be recognized.
I need help because I really do not understand why it happens this way.
<%@ page import="......common.pojo.user.User" %>
<!-- Create a variable in scope called userRows from the Users object -->
<c:set var="userRows" value="${requestScope.Users}" />
<c:choose>
                                <html-el:form action="/admin/findUsers.do">
                                           // many textfields and a submit button
                                </html-el:form>
     <c:when test="${not empty userRows}">
          <!-- create a "user" object for each element in the userRows -->               
          <c:forEach var="user" items="${userRows}" varStatus="idx">
                                  <tr>                        
                      <td align="center">
                                                           <html-el:checkbox property="selectedUsers[${idx.index}].selected" />
                                                          <html-el:hidden property="selectedUsers[${idx.index}].id" value="${user.id}"/>
                                       </td>
         </tr>
             </c:forEach>
                    <tr>
                         <td colspan="6" align="left">
                                  <html-el:link action="/admin/selectUsers.do">Edit Selected Users</html-el:link>
                         </td>
                       </tr>
               </table>
          </c:when>
     </c:choose>
......

The checkbox does "not" belong to the form that invokes the "findUsers.do" action. I put some search criteria in that form to search for users in the database.
The checkbox "is" supposed to be outside the form and gets submitted to another action called "selectUsers.do".
Question: How do I use the name attribute as well as the property attribute for the <html-el:checkbox property="selectedUsers[${idx.index}].selected" />?
The checkbox is associated with SelectUsersForm.java:
public class SelectUsersForm extends ActionForm
     private Map selectedUserFieldMap = new HashMap();
     private String[] selectedUsers = new String[0];
     private String[] selectedUserIDs;
    public SelectedUserField getSelectedUsers( int index )
       SelectedUserField selectedUserField = ( SelectedUserField )selectedUserFieldMap.get( new Integer( index ) );
       if ( selectedUserField == null )
         selectedUserField = new SelectedUserField();
         selectedUserFieldMap.put( new Integer( index ), selectedUserField );
       return selectedUserField;
    // Convenience method to get a list of selected user IDs.
    public String[] getSelectedUserIDs()
       List theUserIDList = new ArrayList();
       Iterator i = selectedUserFieldMap.values().iterator();
       while( i.hasNext() )
          SelectedUserField selectedUserField = ( SelectedUserField ) i.next();
          if ( selectedUserField.isSelected() )
             theUserIDList.add( selectedUserField.getId() );
       return ( String[] )theUserIDList.toArray( new String[theUserIDList.size()] );
   public void reset( ActionMapping mapping, HttpServletRequest request)
       selectedUsers = new String[0];
       selectedUserIDs = new String[0];
}and SelectedUserField.java is like:
public class SelectedUserField
    private boolean selected = false;
    private Long id;
    public Long getId()
       return id;
    public void setId( Long newValue )
       id = newValue;
    public boolean isSelected()
       return selected;
    public void setSelected( boolean newValue )
       selected = newValue;
}

Similar Messages

  • Embedding html from youtube no longer works

    embedding html from youtube no longer works??

    You need to select the 'Enhanced Privacy' check box in YouTube before getting your embed code.

  • How can I deauthorize a computer that can no longer connect to the internet or is no longer working ?

    How can I deauthorize Itunes on a computer that can no longer connect to the internet or is no longer working ?

    You can't, which shouldn't be a problem unless you have 4 other computers authorized with the iTunes account and you need to authorize another.
    Once you have authorized 5 computers, you can de-authorize all computere from a computer that is currently authorized followed re-authorizing the current active computers that need to be authorized.

  • Since I upgraded to iTunes 11.01 the "Smart" playlists feature no longer works.  I can CREATE the list but, the songs that I have played don't accumulate in the list.  I haven't changed the steps that worked for me previous to the upgrade.  I have no idea

    Since I upgraded to iTunes 11.01 the "Smart" playlists feature no longer works.
    I can CREATE the list but, the songs that I have played don't accumulate in the list.
    I haven't changed the steps that worked for me previous to the upgrade.
    I have no idea how to fix this and can't find mention of anyone else having a similar problem.
    Any suggestions?

    Click on a station and drag to the left. The playlists sidebar will open up. Drop on the playlist you want to add to.
    tt2

  • After the last update iTunes no longer works...  "This application failed to start because MSVCF80.dll was not found.  Re-installing the application may fix this problem"  I tried and it did not fix the problem?

    After the last update iTunes no longer works...  "This application failed to start because MSVCF80.dll was not found.  Re-installing the application may fix this problem"  I tried and it did not fix the problem?

    Click here and follow the instructions.
    (99061)

  • After using my iPod classic in my infinity G35 a few weeks ago, I took it out of the car and it no longer works.  Just a white screen with the web address for Apple iPod support.  Worked fine when hooked up to iPod jack in car.  But wont work anywhere now

    After using my iPod classic in my infinity G35 a for the last few weeks, I took it out of the car and it no longer works.  Just a white screen with the web address for Apple iPod support.  Worked fine when hooked up to iPod jack in car.  But won't work anywhere now.  I tried re-setting but has not worked.  Any ideas would be appreciated.

    I finally resolved my problem after spending way too much time on it. I simply handed my 160GB iPod to my husband to put his fav Stones & Beatles songs on and I went back to my 80GB Microsoft Zune which has never disappointed me.
    After spending so much time trying to figure this out I did finally take it back to Apple Store who performed a diagnostic and found there was a problem with the device. They replaced it with a refurbished one which has similar issues. All I wanted to do was listen to my music. Was that too much to ask? So I am happy to be free of this problematic device. No more Apple for me!!

  • After recently installing itunes on my new PC running windows 8, the CD/DVD drives no longer works, gives a code 19 message. Seems itunes is impacting the registry of the DVD drive. What is best solution to keep running itunes

    After recently installing itunes on my new PC running windows 8, the CD/DVD drives no longer works, gives a code 19 message. Seems itunes is impacting the registry of the DVD drive. What is best solution to keep running itunes normally in the future & get the CD/DVD drive working again? if I delete the upper / lower registry keys what other functions are impacted? I see others say itunes asks for a reinstall...then same problem all over again! THX

    Have you revieved this support document?
    TS2308: iTunes for Windows: Optical drive is no longer recognized, or "Disc burner or software not found" alert after install.
    tt2

  • My third party lightning sd card reader sold to me in the Singapore Apple shop no longer works w

    My third party lightning sd card reader sold to me in the Singapore Apple shop no longer works  under iOS 7

    Having the same problem with one I bought with my iPad in the Regent Street Apple Store. Not sure why it wouldn't work unless the OS now needs the lightening Connector certificate to use a card now.
    I am hoping there will be a fix real soon or maybe someone knows a work around?

  • In Yosemite Mail, the control click option no longer works when clicking on attachments, that previously allowed you to save, quicklook, and select app to open with. Any solutions?

    In Yosemite Mail, the control click option no longer works when clicking on attachments, that previously allowed you to save, quicklook, and select app to open with etc. Any solutions?

    Hi
    It shows just 4 always as an option in the "open with" lsit. Also I haven't downloaded any apps for a while so why would it start now?
    Do you know how I can estabilsh how many apps are counting toward this 10 and what they are?

  • After updating to iOS 8 the AV connector is no longer working,

    after updating to ios 8 the av connector is no longer working, I use this to teach the iPad and it is frustrating to not be able to use the connector which worked perfectly well on ios 7
    <Re-Titled By Host>

    Hey Mastmate,
    Thanks for the question. There is a troubleshooting section in the following resource that may help to resolve your issue:
    iOS: About Apple Digital AV Adapters
    http://support.apple.com/kb/ht4108
    Thanks,
    Matt M.

  • Ever since I updated my Macbook Pro, the shortcuts on the F1-F12 keys no longer work as they did before.

    Ever since I updated my Macbook Pro, the shortcuts on the F1-F12 keys no longer work. I used to press just the F12 key and I would be able to raise the volume, now it switches to the home page. I want the old shortcuts back and I don't know how to do that. Please help.

    Ever since I updated my Macbook Pro
    updated from what to what?
    Suggest you try a NVRAM / PRAM reset, as described by Apple:
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • When trying to open lightroom I get a message that says, "The lightroom.exe that the short cut refers to has been changed or moved, so the short cut will no longer work properly.  Do you want to remove this short cut?  The program has opened and worked fi

    When trying to open lightroom I get a message that says, "The lightroom.exe that the short cut refers to has been changed or moved, so the short cut will no longer work properly.  Do you want to remove this short cut?  The program has opened and worked fine in the past.

    You have (probably accidentally) moved or deleted the Lightroom program. You need to find it (have your operating system search for lightroom.exe) and move it back to where the shortcut expects it to be.

  • Seems the gyroscope function is no longer working on my iPhone 5c. Suggestions?

    Seems the gyroscope function is no longer working on my iPhone 5c. Suggestions?

    Thank you so much for this reply.  I had already seen this reboot suggestion and actually tried it.  During the night I realized that I had phrased the question wrong because I really had the issue of getting my iPhone to change to LANDSCAPE mode. For some reason I asked for help on the gyroscope Thinking that the gyroscope controlled this feature.  I found that I had accidentally turned on the "orientation lock"  and by bringing up the control panel from the bottom of the screen I was able to find this lock button and correct the problem.    The truth is ---- the iPhone scree is so small that I was not able to see this little lock symbol at all.   I found this symbol on my iPad and transferred the knowledge to my iPhone.  Everything is working fine now And I thank you very much for taking the time to write to me.  SuzanneVA

  • Since the Hotmail Watcher is no longer working, if I downloaded the X-notifier, would that work the same?

    Since the Hotmail Watcher is no longer working, if I downloaded the X-notifier, would that work the same?

    Maggie,
    You currently have an open thread at [/questions/994827]. Please continue there. You are violating the [[forum rules and guidelines]] more specifically,
    <blockquote> Create one thread and only one thread for each subject you want to discuss. </blockquote>
    I'll be closing this thread!

  • After installing OSX Lion, the built-in camera no longer works.  Solution?

    After installing OS X Lion on a late 2010 MacBookPro, the built-in camera no longer works.  Worked beautifully with Snow Leopard.  Reset SMU to no avail.  Any solutions?

    Hi, Thanks for the reply, I really appreciate your help with this.
    Yes to both questions: iMovie is in the Applications folder, not in any subfolders. And I have reinstalled iMove from the original disc (before and after the OS reinstall) but can only get up to 7.1.4 without buying a later edition of iLife.
    The camera definitely worked under Snow Leopard but not since I upgraded from SL to Mountain Lion.
    Found the following on this forum:
    If you have iLife '09 or older, there have been no iPhoto 8, iMovie 8 or
    Garageband 5 (or older) updates relating to Lion or Mountain Lion. The
    support and compatibility situations for those versions is unknown as
    Apple hasn't said anything. We can only determine compatibility
    anecdotally. If it turns out that there is a problem and Apple doesn't
    release an update, your only recourse is to buy the latest version of
    the application.
    I reinstalled some other iLife apps as well. iDVD went missing after the ML reinstall. When I reinstalled it from the original disc, it wouldn't open and I had to download a manual update to get it working. iWeb previously stopped working after the upgrade to ML (all the menu options were greyed out) but when I reistalled it (together with iMove and iDVD) yesterday, it started working again.
    All this seems to point to a compatibilty issue between iLife '08 and ML.

Maybe you are looking for