PDA

View Full Version : JstlView problems


jtkwon
Nov 10th, 2007, 01:38 PM
I had a view that was working, and I haven't changed the jsp name, or anything in my dispatcher-servlet.xml, so it's a mystery to me why a view isn't showing anymore.

Normally, for a working view, I get this after formBackingObject...

[quality] DEBUG [http-8080-1] JstlView.render(227) | Rendering view with name 'afiles' with model {aFileSamplingList=[20070223_D10-4122P|245 A-FILES|12 A-FILES|||02/23/2007|0, 20070223_D10-DIG-01|6 A-FILES|1 A-FILES|||02/23/2007|0, BOXB|2 A-FILES|1 A-FILES|||02/23/2007|0]} and static attributes {}
[quality] DEBUG [http-8080-1] JstlView.exposeModelAsRequestAttributes(297) | Added model object 'aFileSamplingList' of type [java.util.ArrayList] to request in view with name 'afiles'
[quality] DEBUG [http-8080-1] JstlView.exposeModelAsRequestAttributes(297) | Added model object 'rc' of type [org.springframework.web.servlet.support.RequestCon text] to request in view with name 'afiles'

That's normal behavior...

I have a controller, that after doing formBackingObject, has the following:

[quality] DEBUG [http-8080-2] RDFFilePullRequestController.formBackingObject(88) | In the display list there are: 1
[quality] DEBUG [http-8080-2] InternalResourceViewResolver.resolveViewName(81) | Cached view [rdfForm]
[quality] DEBUG [http-8080-2] DispatcherServlet.render(1139) | Rendering view [org.springframework.web.servlet.view.JstlView: name 'rdfForm'; URL [/WEB-INF/pages/rdfForm.jsp]] in DispatcherServlet with name 'dispatcher'
[

and it never does any JstlView methods... it's as though the Dispatcher croaked...

Any ideas?

jtkwon
Nov 10th, 2007, 01:58 PM
Keep in mind that there's a

/WEB-INF/pages/rdfForm.jsp

which has existed for a few weeks now, working just fine. Why would it stop resolving it now?

Jörg Heinicke
Nov 10th, 2007, 10:44 PM
The debug output

Rendering view [org.springframework.web.servlet.view.JstlView: name 'rdfForm';

shows that everything is ok. So what's the problem? JstlView inherits the called render() method from AbstractView, so you might want to set the breakpoint there.

Joerg