Can scripting elements be intermixed with JSTL?

For example can you have a statement like <% pageContext.setAttribute("value",row.get(key.toString())); %> within a <c:forEach> loop? One page where I needed it, it worked. On another page, however, I got the error "Scripting elements are disallowed here." If not, is there a way in JSTL to access Map values in a List of Maps when you don't know the keys for the Map ahead of time? Using a variable for the keys does not seem to work in Expression language.

Sure you can. But you shouldn't have to.
What did you do to get a "Scripting elements are disallowed here." message?
is there a way in JSTL to access Map values in a List of Maps when you don't
know the keys for the Map ahead of time?
Using a variable for the keys does not seem to work in Expression languageTo use variables for keys, you have to use the square brackets notation instead of the "dot" notation.
  // this
  ${myMap.myValue}
  // is equivalent to this
  ${myMap["myValue"]}
  // is equivalent to this:
  <c:set var="key" value="myValue"/>
  ${myMap[key]}
// looking at your example
  <% pageContext.setAttribute("value",row.get(key.toString())); %>
// I'm guessing at something like this:
<c:set var="key"><%= key.toString() %></c:set>
<c:forEach var="row" items="${rowList}">
  <c:set var="value" value="${row[key]}"/>
</c:forEach>Not too sure exactly where this key comes from, but I hope this helps a bit.
Cheers,
evnafets

Similar Messages

  • Can Photoshop Element 9 work with Lightroom 5?

    Can Photoshop Element 9 work with Photoshop Lightroom 5?

    Hi David_B,
    Thanks for your reply! I've installed PS many times (since version 3, I think), and nothing like this has ever happened. I use and teach PS and LR for a living. The tech person I spoke with told me it is not unusual to have this happen when upgrading to CC 2014.
    What happened is that PS CC2014 would not open the image in PS if I used the Photo>Edit In>PS 2014 command unless I used Photo>Edit In>Open as Smart Object. Once opened as a smart object, PS would not save the file. I think it said Error 2.
    The tech took control of my computer, removed PS and LR and all the associated files a few times. He told me I'd have to have a high level person help me, but they didn't call me, so I phoned in. After waiting an hour to get to the correct person (not a high level tech) he said he'd have to uninstall everything again and start over and that it would take over an hour. I don't have the time right now to fix it as I'm headed out of town until the end of the month to teach LR.
    In the meantime, LR works, but I'm using a trial version that expires in 30 days. It exports to PS ok, but I had to reload all my plug-ins, and apparently LR can't find Photomatix. LR is not installed in my usual applications folder - the tech put it on my system backup drive.
    My case number is: 185696477
    Thanks so much for your willingness to help!
    Terry

  • Can Photoshop Elements 12 work with Photoshop Premiere 13?

    I already have Photoshop Elements 12 and was bought Premiere 13 for xmas and they are not recognising each other. Each keep asking if I want to download the trial version of each? I dont know if you can use Photoshop Elements 12 with Photoshop Premiere 13 so I downloaded the trial version of Photoshop Elements 13 to see if they would work together but they dont. I am trying to do a slideshow in Photoshop Elements 12 and when it comes to the output I want to put it onto a DVD and give it as a present. It does say to transfer to Photoshop Premier (which I have on my wondows 8 computer) but when I click on the link to transfer, it only gives me the option to trial it? And I already have it?

    jasperthesiamese
    Several key factors here....the new Elements Organizer 13  is markedly different than Elements Organizer 12. The Elements Organizer/Create/Slideshow of version 12 and earlier is gone and is replaced by Elements Organizer with different slideshow opportunities very much unlike what you have in 12.
    Photoshop Elements and Premiere Elements integration comes with the same version of the programs on the same computer. But, there are special considerations in this case since we are dealing with a new Elements Organizer in 13.
    However, if you want to salvage your already made Elements Organizer 12 slideshow project and open it in Elements Organizer 13, it is possible. You can also get 1080p and 720p slideshow out of it. You know that already if you have Premiere Elements 13 and its Elements Organizer 13. If interested in this salvage...on to Elements Organizer 12 catalog conversion in Elements Organizer 13.
    Elements Organizer 13
    File Menu
    Manage Catalogs
    Catalog Manager and hit its Convert Button
    In the dialog that opens, look for the name of the Elements Organizer 12 catalog.... Convert Button
    The converted Elements Organizer 12 catalog should open in Elements Organizer 13.
    When you go to double click the slideshow thumbnail (Slide Show Project) in the converted catalog in Elements Organizer 13, Elements Organizer 13 wants to convert the slideshow into the format of its new slideshow feature there. You should see
    Once the converted Slideshow opens, you will see opportunities for Edit, Save, Export including options to Play or Exit.
    If you want to get that converted slideshow into Premiere Elements, then you export to 1080p or 720p and then bring that into
    the Premiere Elements 13 Editor using Add Media/FIles and Folders.
    Please review and let me know if I have targeted your questions.
    Thank you.
    ATR

  • JSP Worked Well Using Scripting Elements, But, Becomes a Null Using JSTL

    I have to bother all of you again with my JSTL problems. I am working on a JSP, which is very similar to the one that caused a lengthy discussion on this forum before. This JSP is a bit more complicated.
    Again, this JSP worked well and displayed what I expected when the page was coded using the scripting elements.
    I tried to use JSTL where possible and managed to correct all the compilation errors.
    Now, I got a simple message: 'null' in the browser without any explanation - typical problem working with JSP: very difficult to debug.
    I have tried to identify problems "one by one" and found the first encounter is where I want to set the background color for each row inside the <c:forEach ....> tag.
    I examined the code again and again, I could not see what would lead to 'null'. I need a hand again.
    <%@ taglib uri="/tags/struts-html-el" prefix="html" %>
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <%@ taglib uri="/tags/tiles" prefix="tiles" %>
    <%@ taglib uri="/tags/request" prefix="req" %>
    <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
    <%@ page import="org.apache.artimus.message.utility.ParamUtil" %>
    <%@ page import="org.apache.artimus.message.exceptions.AssertionException" %>
    <%@ page import="org.apache.artimus.authorization.OnlineUser" %>
    <%@ page import="org.apache.artimus.authorization.OnlineUserImpl" %>
    <%@ page import="org.apache.artimus.filter.EnableEmotionFilter" %>
    <%@ page import="org.apache.artimus.message.ThreadBean" %>
    <%@ page import="org.apache.artimus.message.PostBean" %>
    <%@ page import="org.apache.artimus.message.AttachmentBean" %>
    <%@ page import="org.apache.artimus.MessageInboxConfig" %>
    <%@ page import="org.apache.artimus.WebSiteGlobal" %>
    <%@ page import="org.apache.artimus.SiteUtil" %>
    <c:set var="threadBean" value="${requestScope.ThreadBean}" />
    <c:set var="postRows" value="${requestScope.PostBeans}" />
    <c:set var="numberOfPosts" value="${requestScope.NumberOfPosts}" />
    <c:set var="previousTopic" value="${requestScope.PreviousTopic}" />
    <c:set var="nextTopic" value="${requestScope.NextTopic}" />
    <c:set var="offset" value="${requestScope.offset}" />
    <c:set var="threadID_int" value="${requestScope.thread}" />
    <c:if test="${threadBean.threadID != threadID_int}">
        The two threadID are not the same.
    </c:if>
    <c:set var="threadID" value="${threadID_int}" />
    <%-- the code before this line works fine and I have a number of things displayed as expected --%>
    <c:forEach var="postBean" items="{postRows}" varStatus="i">
    <% PostBean postBean =
       ( PostBean )pageContext.getAttribute( "postBean" );
    %>
       <c:choose>
          <c:when test="${(postBean.parentPostID) eq 0}">
             <c:set var="background" value="#FFCE9C" />
          </c:when>
          <c:otherwise>
             <c:choose>
                <c:when test="${(i+1)%2 ne 0}">
                   <c:set var="background" value="#EEEEEE" />
                </c:when>
                <c:otherwise>
                   <c:set var="background" value="#FFFFFF" />   
                </c:otherwise>
             </c:choose>
          </c:otherwise>
       </c:choose>
    <table width="95%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#999999">
      <tr bgColor="${background}">
      </tr>
    </table>
    </c:forEach>

    Where is the null occuring? Have you looked at the returned HTML code to see where the 'null' is?
    You might try just a few <c:out value=""/>, like:
    The postRows = <c:out value="${postRows"/><br/>
    <c:forEach var="postBean" items="${postRows"/>
      The Current postBean = <c:out value="${postBean}"/><br/>
      The Current parentPostID = <c:out value="${postBean.parentPostID eq 0}"/><br/>
      <!-- Only do this set if background ends up null, to make sure the scope of background is wide enough -->
      <c:set var="background" value="#FFFFFF"/>
      <c:choose>
        <c:when test="${postBean.parentPostID eq 0}">
          <c:set var="background" value="#FFCE9C"/>
        </c:when>
        <c:when test="${(i+1)%2 ne 0}">
          <c:set var="background" value="#EEEEEE"/>
        </c:when>
        <c:otherwise>
          <c:set var="background" value="#FFFFFF"/>
        </c:otherwise>
      </c:choose>
      The Background is now = <c:out value="${background}"/><br/>
      <table width="95%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#999999">
        <tr bgColor="${background}">
        </tr>
      </table>
    </c:forEach>By adding output like that when we are debugging we can help track down where problems that occur are coming from. That and looking at the source code have been invaluable to me...

  • I havev installed a new Hard Drive on my laptop but cannot find my Photoshop Elements product box with the serial number to install Elements 10 or Elememts Premier 10. How can I find out the serial / installation codes for these?

    I havev installed a new Hard Drive on my laptop but cannot find my Photoshop Elements product box with the serial number to install Elements 10 or Elememts Premier 10. How can I find out the serial / installation codes for these? I saw a reply however, it was not my name and assumed it was for someone else. Now timed out. Can UI still have help on this matter please?

    If you registered PSE before, go to the main page of adobe.com, sign in and go to your account and you should find the serial number there in your purchases.

  • Can I use watch folders with my network drive in Photoshop elements 10

    Can I use watch folders with my network drive in Photoshop elements 10

    photodrawken a écrit:
    See the tips in this FAQ:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Watchi ng_Network_Folders
    Ken
    Beware the FAQ you are referring to is no longer relevant. It does not apply to PSE10
    Hereunder the warning issued by the author himself.
    Photoshop Elements 6/7/8 (Windows) Frequently Asked Questions (FAQ)
    John R. Ellis
    Last updated January 21, 2011
    Copyright 2008-10 by John R. Ellis
    As of June 2010 I no longer maintain this FAQ. I’ve migrated to Lightroom 3, which I use for all my organizing and most of my editing (I still use the Photoshop Elements Editor for more involved editing).  Adobe has clearly decided not to invest sufficient resources for properly maintaining the Photoshop Elements Organizer– see my Amazon review of PSE 8. Lightroom is marketed to professionals and prosumers with tens of thousands of photos who demand adequate organizational capabilities, whereas Photoshop Elements is marketed to consumers, most of whom do not want or use the Organizer.
    This page captures my answers to frequent questions about Photoshop Elements 6, 7, and 8 (Windows).  It’s mostly about the Organizer, since I know the Organizer much better than the Editor.
    The versions to which each FAQ applies are indicated with the notation [PSE 6, 7, 8]. If I’m not sure whether something applies to a version, it will be indicated with a question mark, e.g. [PSE 7, 8?].
    If you have corrections or suggestions, please email them to john at johnrellis.com.

  • I can't open .CR2 files with elements 11

    I have a canon T5, it records .CR2 files for RAW. Photoshop Elements 11 won't open .CR2 files. I downloaded update 7.40.137 but that doesn't help. What do I do now?
                        thanks Ed

    Hi elfpcf,
    There were two support available for Canon T5 in ACR in two different version of ACR upgrades.
    ACR 7.4 - Canon EOS 700D (Rebel T5i / Kiss X7i)Casio:Casio Exilim EX-ZR700
    ACR 8.4 - CanonCanon EOS 1200D (REBEL T5, KISS X70)
    Please specify which one you are using. ACR 8.4 was available with Elements 12 and onward(refer below table).
    Adobe application
    Shipped with Camera Raw plug-in version
    Compatible with Camera Raw
    plug-in through version
    Photoshop Elements 13
    8.6
    8.7.1
    Photoshop Elements 12
    8.1
    8.5
    Photoshop Elements 11
    7.1
    8.0
    Photoshop Elements 10
    6.4.1
    6.7
    You can see camera profile supported in each version of ACR update on below link.
    Adobe: Updates for Adobe Camera Raw and DNG Conver
    Also, You can use Elements 13 on trial and can see it's compatibility. Download Photoshop Elements products | 13, 12, 11, 10
    Thanks,
    Raushan

  • First Script: Need some basic skill help? Can you add an image with a click?

    Hello, Im working on a project were you can replace people heads in a photo. Its for a project so its not supposed to be perfect. So far heres what i think the best steps to take are, but im not sure how to take the first scripting steps. How can i add an image with a script? How can i store a x y coordinates?
    1. I would create four variables and than store the XY cords of the the high point of the head, the bottom of the chin, amd the farthest right and left of the face.
    2. I would than add the image of the head that I would already have.
    3. If the x coordinates of the top and bottom are off kilter, I would rotate new head until = old face dimensions..
    4. I would also see if the width is too big or small and resize accordingly
    5. I would than resize the head so that the eyes would match up.
    Thanks for any help you can provide!

    Is that script for a browser html. Its not for Photoshop and like Photoshop would fine UiApp undefined so does Microsoft.  Is that a Chrome script or Android script? Why post it here?
    Atiqur Sumon wrote:
    function doGet() {
       var app = UiApp.createApplication();
       // The very first Google Doodle!
       app.add(app.createImage("http://www.google.com/logos/googleburn.jpg"));
       // Just the man in the middle
       app.add(app.createImage("http://www.google.com/logos/googleburn.jpg", 118, 0, 50, 106));
       return app;

  • I have Photoshop Elements 11, downloaded with a serial number. I have now upgraded my computer. Can  load Elements 11 to my new computer and how?

    I have Photoshop Elements 11, downloaded with a serial number. I have now upgraded my computer. Can I load that version to my new computer?

    Duplicate post. See:
    I havev installed a new Hard Drive on my laptop but cannot find my Photoshop Elements product box with the serial number to install Elements 10 or Elememts Premier 10. How can I find out the serial / installation codes for these?

  • Can I use Photoshop Elements 4.0 with Windows Vista OS?

    Can I use Photoshop Elements 4.0 with Windows Vista OS?

    http://roaringapps.com/apps:table
    Check applications for compatibility.
    PE4 won't work.
    PE6 seems to work as well as PE9.

  • Can I use Photoshop Elements 3.0 with Windows 7?

    Can I use Photoshop Elements 3.0 with Windows 7?

    Probably.  Install PSE3 and see if it works.  If not, you can always try setting PSE3's "Compatibility Mode" to XP.
    Ken

  • I use the operating system Mac os x 10.10.2 and would like me like to purchase Adobe Photoshop Elements 13 am with but not sure because is specified in the system requirement only os x 10.9. Can you help me?

    I use the operating system Mac os x 10.10.2 and would like me like to purchase Adobe Photoshop Elements 13 am with but not sure because is specified in the system requirement only os x 10.9. Can you help me?

    Yes, it works. Download the trial and see for yourself. Adobe never updates the system requirements after any version is released, so that is what was available last Sept. when PSE 13 was released.

  • I use 2 to 3 computers for my photo retouching, can I get them activated with the same serial number? for Photoshop Elements 13, and premier elements 13

    I use 2 to 3 computers for my photo retouching, can I get them activated with the same serial number? for Photoshop Elements 13, and premier elements 13

    You can activate any two of them at a time, but if you want to use it on a third computer you will need to deactivate one of them before you can do so. To do that, go to Help>Sign Out.

  • Can an Elements 6 backup be restored to a new PC with Elements 12?

    Can an Elements 6 backup be restored to a new PC with Elements 12?

    Yes.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Can In Design (id) work with elements 13

    Can In Design (id) work with elements 13? Help

    Thanks Bernie, you made that code work.
    However, I got another issue. That looks like arraylist.add(), replaces all entries rather than adds to the end of the list. I cannot find what is wrong with that. But you or some other expert will probably notice what is wrong.
    the code, that is below, prints :
    4
    4
    4
    4
    4
    import java.util.*;
    class Entry {
    String subString;
    int quantity;
    String breakdown;
    int [] numberOfbrds;
    //Then I use this class:
    class test{
    public static void main(String[] args) {
    ArrayList <Entry> hashTable = new ArrayList <Entry> ();
    Entry hashEntry = new Entry ();
    // here I assign some values to the variables of hashEntry
    for (int i = 0; i < 5; i++) {
         hashEntry.quantity=i;
         hashTable.add(hashEntry);     
    for (int i = 0; i < 5; i++) {
         System.out.println(hashTable.get(i).quantity);
    confused............
    Message was edited by:
    tmirzoev

Maybe you are looking for

  • Can not view any videos on firefox.

    Anytime I want to view a video from within Firefox (YouTube or other) I am not able to view it. With YouTube I get the message "Error occurred. Please try again later." Other videos just give a blank page. I checked my plugins, they are all up to dat

  • My Custom Payment Formats

    I have add GLDATE in custom payment program how to do this which field is belongs to GLDATE can some one help me? How to get the xml file for the same Edited by: 958542 on Sep 26, 2012 6:21 AM

  • How can I make double clicking the space bar to make a period less sensitive

    Hi! When I double click the space bar, it makes a period, which I love. What drives me crazy is that it thinks I'm double clicking the space bar quite frequently, so it'll insert a period in the middle of the sentence. How can I make my space bar les

  • Editing ProRes material on G4...

    Hello... I need to edit ProRes material on my dual 1Gig G4... 1Gb RAM... have Final cut 6... only have Firewire hard drives (400/800) on which to put the ProRes footage. Only need to edit on my cinema display - don't need to output to an HD monitor.

  • Anchored Frames Adrift

    I am using TCS4 (FM11, RH10). In FM, I add images (import by reference), set the anchored frame to "Run into paragraph" and have it right-justified.  Looks good, and publishes to PDF fine. RH imports it and ignores the anchored frame spacing.  If the