3 Replies Latest reply on Sep 21, 2006 7:24 PM by Leo Zhang

    I can`t use ${} in a jsp with spring-mvc

    Kyun Hur Newbie

      when i use spring-mvc i can`t use ${}

      i think it`s so basic...but i can`t handle of it
      ------------------------------------------------------------------

      -- Controller

      public ModelAndView handleRequest(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {


      return new ModelAndView("/error.jsp", "error", "System Error");
      }

      ------------------------------------------------------------------

      -- JSP

      <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
      <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>


      title



      <h2>${error}</h2>
      : <c:out value="${error}"/>



      -------------------------------------------------------------------

      -- results

      ${error}

      ${error}



      -------------------------------------------------------------------

      i was expected to disply "System Error". but it was displayed "${error}"

      i don`t know what`s wrong?

      who knows this tells me about it.