One JSP Coded in JSTL with an Action Link and a Form

My JSP written in JSTL with an action link works fine. The checkboxes are well recognized ( I have a "form" specified in both the action mapping and form bean).
<%@ 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>
     <c:when test="${not empty userRows}">
          <!-- create a "user" object for each element in the userRows -->               
          <c:forEach var="user" items="${userRows}" varStatus="idx">
                  <c:choose>
                          <c:when test="${( idx.count+1 )%2==0}">
                             <tr class="contentCell1">
                          </c:when>
                          <c:otherwise>
                             <tr class="contentCell2">
                          </c:otherwise>
                  </c:choose>
                                       <td align="center">
                                                          <html-el:checkbox property="selectedUsers[${idx.index}].selected" />
                                                          <html-el:hidden property="selectedUsers[${idx.index}].id" value="${user.id}"/>
                                       </td>
                                       <td align="center"><c:out value="${user.createdByUserID}" /></td>
                                       <td align="center"><c:out value="${user.firstName}" /></td>
                                       <td align="center"><c:out value="${user.lastName}" /></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:otherwise>
               <center><H1>No User Found.</H1></center>
          </c:otherwise>
     </c:choose>
......But, if I add another form (form B) with some textfield(s) and a submit button in between the opening <c:when ...> and <c:forEach ... > tag, I get the "runtime" JSP error: "cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope".
The form B also works well. And varStatus="idx" and var="user" still work. 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:
<%@ 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>
     <c:when test="${not empty userRows}">
                                <html-el:form action="/admin/findUsers.do">
                                           // many textfields and a submit button
                                </html-el:form>
          <!-- create a "user" object for each element in the userRows -->               
          <c:forEach var="user" items="${userRows}" varStatus="idx">
                  <c:choose>
                          <c:when test="${( idx.count+1 )%2==0}">
                             <tr class="contentCell1">
                          </c:when>
                          <c:otherwise>
                             <tr class="contentCell2">
                          </c:otherwise>
                  </c:choose>
                                       <td align="center">
                                                          <html-el:checkbox property="selectedUsers[${idx.index}].selected" />
                                                          <html-el:hidden property="selectedUsers[${idx.index}].id" value="${user.id}"/>
                                       </td>
                                       <td align="center"><c:out value="${user.createdByUserID}" /></td>
                                       <td align="center"><c:out value="${user.firstName}" /></td>
                                       <td align="center"><c:out value="${user.lastName}" /></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:otherwise>
               <center><H1>No User Found.</H1></center>
          </c:otherwise>
     </c:choose>
......

Hi,
your strtus config file looks like
<form-beans >
<form-bean name="manageAuditFindingsForm" type="com.lib.struts.form.ManageAuditFindingsForm" />
</form-beans >
<action
      attribute="manageAuditFindingsForm"
      input="/New.jsp"
      name="manageAuditFindingsForm"
      path="/manageauditfindings"
      scope="request"
      type="com.lib.struts.action.ManageAuditFindingsAction">
      <forward name="success" path="/AuditFindings.jsp" />
    </action>Thanks
Edward

Similar Messages

  • One JSP with an Action Link and a Form

    I have a JSP and there are a link (it invokes an action) and a form (the form has a submit button). My struts-config.xml looks lik
    Message was edited by:
    jiapei_jen

    Hi,
    your strtus config file looks like
    <form-beans >
    <form-bean name="manageAuditFindingsForm" type="com.lib.struts.form.ManageAuditFindingsForm" />
    </form-beans >
    <action
          attribute="manageAuditFindingsForm"
          input="/New.jsp"
          name="manageAuditFindingsForm"
          path="/manageauditfindings"
          scope="request"
          type="com.lib.struts.action.ManageAuditFindingsAction">
          <forward name="success" path="/AuditFindings.jsp" />
        </action>Thanks
    Edward

  • One file maximum for uploads with Safari, Opera, FireFox and Chrome to OneDive

    Some Windows 7 users have complained to they can only mark one file maximum for uploading with Safari, Opera, FireFox and Chrome to OneDive

    Hi,
    You mean that you access OneDrive via web browser?
    From my tests, everything is normal and it seems there is no setting in browser to configure this number.
    if I misunderstand this issue, please give us more information on it.
    Alex Zhao
    TechNet Community Support

  • Using multiple motion driver versions on one system...(with Labview 6.1 and Labview 8.0)

    Using Labview 6.1 and Labview 8.0 on same PC computer (my development system).
     Labview 8.0 applications, I would want to use the motion 7.x drivers
     Labview 6.1 applications, I want to use motion 6.x drivers
     (Of course, Labview 6.1 can not use motion 7.x drivers).
     When I installed Labview 8.0 and motion 7.x drivers, it removed my motion 6.1
     drivers (and all the vi's) and installed motion 7.x drivers (with vi's).
     Of course, Labview 6.1 applications can not run with motion 7.x drivers.
     How can I keep my Labview 6.1 applications running and building
     with motion 6.x drivers while still having Labview 8.0 applications
     with motion 7.x drivers (all on the same system).
    And then, of course, the executables, on other systems with the 6.x and 7.x drivers.

    Unfortunately there is no way to install multiple versions of a
    hardware driver on a single operating system. This is not only true for
    NI Motion but for any type of peripheral hardware. Windows can only
    assign a single driver to a specific piece of hardware.
    From my point of view the best solution would be to upgrade your
    LabVIEW 6.1 application to LabVIEW 8.0. If this is not possible for
    some reason you could install a second Windows on another harddrive or
    partition and install LabVIEW 6.1 and NI-Motion 6.x on this system and
    LabVIEW 8.0 and NI-Motion 7.x on the other one.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • I am increasingly having issues with clicking on links and not going anywhere with Firefox. When I paste the path into Internet Explorer it often works. Why?

    I have always preferred Firefox, but am getting quite annoyed when I click on Google links and don't get to the site. I thought maybe the sites were down, but then started pasting into IE and actually getting something. For example, today I clicked on a link from Harry and David to redeem a free magazine subscription to Food & Wine. I tried it multiple times, then tried it with IE and it worked right away. I don't know if it is just the latest version of Firefox, this seems to have been happening more and more for a while.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Interface Matlab with java good links and info

    HI All
    i want to interface Matlab with java
    i did search through the net but i haven't got nay good links and info
    by that i mean the given links either not working or do work for old version of matlab ie R13
    i have R14
    IF you have already done that or
    you have a really good links and info and steps
    please post them here
    thanks

    It doesn't appear that Matlab is free, so i'd expect that's why you are having trouble finding download links.
    Here's is an overview link
    http://www.mathworks.com/access/helpdesk/help/techdoc/rn/r14_v7_external.html#1011951

  • I'm having problems with the hyper-links and footer

    I'm having problems with the hyper-links (they flicker and also highlight other text on the page) and also the footer space goes on forever in preview site mode, even though I have made it small in the master and homepage and subsequent pages.  This only happened after I loaded a MUSE file into the current version of Muse CC as it runs upgrades on the imported Muse file.  Please Help Me Adobe Community.

    Hi Brad,
    I'll do what you mentioned about republishing all files, what Adobe Muse seems to to is run and upgrade when you open an older version .muse file, optimising it.
    Hopefully republishing it rather than syncing with the new version might help.  I'll do this Tuesday evening when I am back from my client meeting.
    I was thinking, is there a way of me rolling back to a previous version of Adobe MUSE CC ?  I'm using build Adobe Muse CC (2014.3) but I wish to roll back to Adobe Muse CC (2014.1), as this was the version the site was working properly with.
    Thanks Brad.

  • Issues with POWL action buttons and row selection after Support Packs

    We recently applied ECC 603 Support Stack 16 to our environment and are having problems with some SAP standard POWL lists (example is KYKOP-OPS-MM-PO-W: Purchase Orders for Goods Receipt).  In fact all of the POWL lists that we are using are behaving the same way.  There are 2 changes that have happened after moving to this stack.
    1.  In order to select a row in the list, we now have to press ctrl + click, previously, just clicking the the row would select it and fire the OnLeadSelection
    2.  All of the Action Buttons in the POWL lists are disabled.
    I have debugged the Feeder Class /KYK/CL_MM_FEEDER_PO and see in th GetActions method and see that the ls_actions-enabled is getting set to true, but for some reason the buttons are disabled when the list is rendered.
    I've checked a side-effects report from OSS and have come up empty handed.  Has anyone else run into this?
    Eric

    I have found an OSS note that addresses this problem.  This problem will effect anyone who is using ALV for ABAP WebDynpro after applying BASIS Support Pack 20 for 7.0.  The OSS note is 1363334.  Question Answered.

  • Officejet Pro 8600 all in one installation on dest top with AMD64 chip set and Window 7

    Can't install an HP Pro 8600 all in one with full features on a Desktop with windows 7 64 bit OS, PC has an AMD chip set, connection is wireless.
    This printer is replacing an HP Pro 8500 all in one that failed. HP's only solution was to upgrade to the 8600. All 8500 software was removed before attempting to install the 8600.
    The installation recognizes the printer & IP address. In the last step of the setup the network connection is not recognized. When I try to add a printer in Windows, the Microsoft drivers are installed and the printer works fine, but no scan or fax.
    I had success installing this wireless setup on 2 desktops (windows 7 & XP OS) and a laptop running VISTA. All of these have Intel CPU's. The installation completed fine.
    The HP Installation CD has an AMD64 folder (with "hpinkins5912"), but no instruction on setup or updating AMD drivers.

    Hey @mech3320 ,
    Thank you for taking the time out of your day to ask that question on the HP Forums today!
    I understand that you are having some trouble with the driver download on your AMD chipset but not your Intel one.
    I recommend that you try the web download of the drivers after you uninstall the ones that you tried form the CD.
    Driver Download Page
    Let me know if the web drivers work better for you or not.
    I worked for HP.

  • Can't get JSP debugging to work with WebLogic 6.0 and Eclipse 2.1.1

    Is native JSP debugging supported in WebLogic 6.0? If so, what are
              the steps involved in getting it to work? I'm in debug mode and my
              servlets will catch at my breakpoints but the JSP pages' breakpoints
              are ignored. I am using compliance level 1.3 and a JRE 1.3. I tried
              to start WebLogic with the 1.4.2 JRE but I get an exception error on
              the WLS JDK name" field. What am I missing here?
              Thanks!
              

    I appear to have solved it, but it is not clear to me why.
    I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="."
    archive="GanttApplet.jar"
    jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
    file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
    Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
    Thanks, Andrew

  • I want one JSP which can handle the Hierarchy of links

    Current System
    EZStore page has a feature that allows static page content distribution to the store users. Currently this hierarchy information is stored in a database table and the content is stored in a directory on the web server. When changes are need to the site the developer is currently hand writing the SQL and routing GWI tickets to the DBA�s.
    Modifications
    Need to modify the process by providing a way to manage the content. Develop a JSP page that contains the necessary fields and should be able to add and modify the links. The page should store the hierarchy information in the database and the documents on the web server. The documents are stored on the web server in docs folder. The table structure is as follows and is located on server: ezdev, database: ezreports.

    Welcome to the Apple community Yao.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • Issue with JSF action method and Popup

    All,
    I have command Button, which has an action method. And my onclick function opens new popup. Once I close the popup, it has to return some values to the parent page and then my action method has to be executed.
    Issue is if I close the popup, nothing is happening in parent page.
    In my JavaScript if I return true, popup is opening and my action method is executing. But my expected behavior is after closing popup then only my action has to be executed.
    Thanks,
    Dhana

    Hi all,
    I came back to this today (after almost 2 years)... the current version of facestrace doesn't require a taglib at all: http://code.google.com/p/primefaces/downloads/list
    Just drop it in WEB-INF/lib, add *.jsf to the url mappings for the faces servlet. Then whenever you add trace=true to your URL, you get a nice dump of information there.
    Best,
    John

  • Can some one simply answer this question with me going round and round in circles,.,I am in Australia. Do I use the British or US firefox download.

    I am in Australia. Do I use the British or US firefox download.
    I am having extreme difficulty getting a simple answer to this question.
    I just keep getting sent back and forth to different firefox sites for more details, or ask community, go to an answer site etc etc.

    Maybe best to install the British version and install the Australian dictionary.
    *https://addons.mozilla.org/en-US/firefox/addon/english-australian-dictionary/

  • Pre Populate AD UserPrincipalName with multiple IT Resources and 1 form - 11g r2

    I have an ICF AD connector with 3 IT resources, each one having a different domain (i.e. example.us.com, users.eu.com....). I only have 1 resource form though. When I prepopulate the UPN field, I have to do userlogin@domainame. When I go to map the variables I don't see Process Data > AD Server option in there. I was thinking of creating a custom adapter and just check which IT resource it's coming from to determine the domainof that IT resource.
    Has anyone ran into this issue before? I'm trying to avoid creating a new form for each IT resource since all the logic is the same except for UPN.
    Thanks

    I would recommend a unique workflow per domain.  It will just make things so much easier for you in the long run.  No domain performs in the same way and you might need to add and remove attributes from them.  It might sound simpler to start and use the same, but it's just not worth the headaches you will encounter in trying to identify them uniquely while having them all use the same workflow.
    -Kevin

  • Can I transfer a Raw Photo to PSE 9 with a direct link and keep changes

    I have limited expertise in all of this stuff so please understand.
    I recently upgraded to PSE 9 because I bought the Nikon D7000.
    Unfortunately I have had nothing but nightmares with the upgrade.
    PSE has eliminated BRIDGE and I can no longer open a RAW file in PSE 9 from the camera.
    They have something called Organizer but the Adobe Forum is full of issues about it.
    I have found it useless and it may stem from both having a MAC and the D7000.
    *Here is my question :*
    I can use Nikon Transfer to Nikon View NX2 to open the RAW files.
    However if I make any changes in View they do not carry over to PSE and ACR (Adobe Camera RAW)
    AND
    I cannot find a way to have a direct link from View NX2 to PSE 9 and ACR.
    I have to drag and drop onto the desktop and then drag and drop into PSE / ACR.
    *If I purchase Aperture ($80.00) can I make changes in Aperture and then have a direct link to PSE 9 if I need to make changes or adjustments in PSE and keep the RAW changes from Aperture ?*
    I hope I made my dilemma clear.
    Thanks,
    Greg

    Your question pivots about several issues, each of which will bear on what you end up doing.
    Briefly, what you'll find is that Aperture does its own RAW conversion (and does it well). You can follow that with either of the following:
    - use PSE9 as an external editor, in which case Aperture creates a copy of the converted RAW file in either TIFF or PSD format (you choose), sends it to PSE9, and receives the changed file back. At this point you have two images in Aperture: your converted image (with Aperture adjustments, if added) and your externally-edited image. Note that your original RAW file is never changed, and remains available.
    - using Aperture, export a copy of your RAW original, and then open it in any program you want. In this case, that program will need to be (or include) a RAW converter. And Aperture will not track the file in any way at all once it is exported.
    ... can I make changes in Aperture and then have a direct link to PSE 9 if I need to make changes or adjustments in PSE and ...
    So that's "Yes" to the first part and ...
    ... and keep the RAW changes from Aperture ?
    ... I'm not sure what you mean to specify in this part.

Maybe you are looking for