| Author |
problem in getting model data from spring controller to jsp
|
ganesh pol
Ranch Hand
Joined: Apr 29, 2005
Posts: 151
|
|
i am new to spring in following class i added java.util.Date to ModelAndView but it displays like as follows this is the result $(date) my spring controller is as follows public class SimpleControllerextends AbstractController{ public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception{ //here welcome is view name ModelAndViewmav= new ModelAndView("welcome"); mav.addObject("date",new Date()); return mav; } } my welcome.jsp file as follows <HTML> <HEAD> </HEAD> <BODY> <H1>this is the result</h1> <H4>${date}</H4> </BODY> </HTML> whay do jsp page give me this error result whaen i want actual Date should be Display but it gives me ${date} i think this is a EL expression and i think the problem is because i am using tomcat 4.1 and it does not support jsp 2.0 specifications please help me in solving this problem  [ December 01, 2005: Message edited by: ganesh pol ]
|
 |
Sonny Gill
Ranch Hand
Joined: Feb 02, 2002
Posts: 1209
|
|
|
That sounds about right...why don't you upgrade to the latest version of Tomcat?
|
The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
|
 |
ganesh pol
Ranch Hand
Joined: Apr 29, 2005
Posts: 151
|
|
|
but what to do if i do'nt wants to change it and do'nt use any tag library?
|
 |
 |
|
|
subject: problem in getting model data from spring controller to jsp
|
|
|