Results 1 to 4 of 4

Thread: ${flowExecutionUrl} not rendering

  1. #1
    Join Date
    Nov 2008
    Posts
    13

    Default ${flowExecutionUrl} not rendering

    I'm working through a SWF tutorial which contains the following JSP page:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    <html>
        <head>
            <title>Register - GeekWarez</title>
        </head>
        <body>
            <h1>Register</h1>
            
            <div>
                <a href="${flowExecutionUrl}&_eventId=submitRegistration">Submit</a>
                <a href="${flowExecutionUrl}&_eventId=cancelRegistration">Cancel</a>
            </div>
        </body>
    </html>
    When this page is displayed the ${flowExecutionUrl} el variable is not rendering correctly. If I look at the page source it looks like this:

    Code:
            <div>
                <a href="${flowExecutionUrl}&_eventId=submitRegistration">Submit</a>
                <a href="${flowExecutionUrl}&_eventId=cancelRegistration">Cancel</a>
            </div>
    I am using Tomcat 6.0
    Java 6
    jboss-el-2.0.1.GA.jar
    spring-webmvc-2.5.5.jar

  2. #2
    Join Date
    Apr 2009
    Posts
    1

    Default

    I did the same thing, originally via a cut-and-paste from the SWF manual.

    This is the corrected version:

    <a href="<c:out value='${flowExecutionUrl}' />&_eventId=submitRegistration">Submit</a>

    The SWF manual should be corrected for this -- just in case anybody who can do so is reading...

  3. #3
    Join Date
    Dec 2008
    Location
    Ulaanbaatar, Mongolia
    Posts
    123

    Default

    This works too:

    Code:
    <a href="${flowExecutionUrl}&_eventId_cancelRegistration">Cancel</a>
    <a href="${flowExecutionUrl}&_eventId_submitRegistration">Submit</a>
    Let's care our nature!

  4. #4
    Join Date
    May 2009
    Posts
    2

    Default

    Hello,
    I just had the same problem with the same tutorial.

    The solution to use the JSTL is correct but I found something more simple:
    1) have the jboss-el and el-api jars available (el-api.jar may be provided by the servlet-container, it's the case with Tomcat 6)
    2) add the following code to the top of the JSP file: <%@ page isELIgnored="false" %>

    It worked for me. Hope it helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •