Results 1 to 3 of 3

Thread: Variable like ${user.email} is printed out as ${user.email}

  1. #1
    Join Date
    Nov 2007
    Posts
    11

    Default Variable like ${user.email} is printed out as ${user.email}

    Hi, I'm new to Spring Web Flow and in general to web-development. Now I adapted more or less the sellitem-application because I want to develop a wizard like thing. But when I try to access values of the backing bean value (in my case 'email' on 'user') via ${user.email}, exactly that string (${user.email}) is shown on the page.

    Does anyone know a solution, did I forget some libraries, taglibs usw. or should I post my configuration?

    Thanks in advance...

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Make sure your web application is servlet api 2.4 enabled, you probably use 2.3 (check your web.xml header).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Nov 2007
    Posts
    11

    Default

    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">

    Looks like its 2.5. I use Tomcat 5.5.25.

    There's another little thing which is weired. Because when I use the FormAction to prepare Date for the form eg. the ages and I access them like this:

    <form:select path="age" items="${ages}" itemValue="id" itemLabel="age"/>

    it works... But not with the backing bean..

Posting Permissions

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