Folks,
Wanted to start a dialog in hopes of clearing up some confusion about ViewResolvers.
I have checked the docs on this ... and a question still remains. If one did not want to base the View on a file extension ... how could I create a flexible resolver that would take a JSP name or servlet name .. and always forward it properly??? As it is now, I have a viewResolver prepending path and appending extension for JSP's ... I would like to keep this. I realize that I need to specify a different view to handle a request ... but not sure how to set this within a servlet (without writing my own drawn out implementation of 1 of the interfaces)
I thought I could use setView inside of my controller class .. but I learned quickly .. not.
The only example I have been able to find tests the file extension and then requires that a seperate properties file exists to do the mapping. Is there a more elegant way to do this? I like this technology ... but the lack of docs/books kinda sucks. Anyways ...
Any feedback, ideas or mindless gibberish is welcome.
Thanks,
~daleF


Reply With Quote