Search:

Type: Posts; User: monteslu; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,310

    Did you ever find an answer to this? I have...

    Did you ever find an answer to this?

    I have the same problem and do not wish to put the file in the classpath.
  2. Replies
    3
    Views
    1,840

    I'd like to have answer to that as well. Seems...

    I'd like to have answer to that as well. Seems like it should be a simple thing to do.

    In the mean time, you can always just put what you need in the Model with your Controller and access it with...
  3. Replies
    3
    Views
    1,454

    Thanks for the response. Having to do my own...

    Thanks for the response.

    Having to do my own validation on it loses some convenience.

    I never want to return a 400 or 500 to the user, and will always prepare for anything they try and do to...
  4. Replies
    3
    Views
    1,454

    Error handling with @PathVariable

    I like the RESTful MVC stuff as it is every convient to bind a method parameter to something in the URL path.

    One thing I don't understand is how I'm supposed to do any error handling.

    Let's...
  5. Replies
    1
    Views
    674

    You should be able to just add a spring...

    You should be able to just add a spring Interceptor to your handlermapping.
  6. Replies
    3
    Views
    1,323

    What I've been doing is simply having a...

    What I've been doing is simply having a header.jsp and footer.jsp that I include in the jsp/jstl views. The header and footer can contain the bulk of the html code (menus, css, javascript, etc.)
    ...
  7. Replies
    2
    Views
    686

    Thanks! That fixed it. Really strange...

    Thanks! That fixed it.


    Really strange default behavior though. I can see how it could be useful, but not something I'd want to happen most of the time.
  8. Replies
    2
    Views
    686

    Redirecting to "/" with MVC

    I'm using 3.0 RC1

    I've tried to do redirects in @RequestMapping functions by either returning a ModelAndView with the view being a new RedirectView ("/") or by just returning a string of...
  9. Replies
    3
    Views
    1,594

    Thanks for the quick response, jpreston. What...

    Thanks for the quick response, jpreston.

    What I settled on was doing a "/" mapping so that I could have a dyanmic default page, and then I just keep all the static content in another webapp.
    ...
  10. Replies
    4
    Views
    1,380

    Is this still broken? It looks like util:list...

    Is this still broken?

    It looks like util:list still doesn't have a lazy-init property.
  11. Replies
    3
    Views
    1,594

    MVC 3 and root (home) mapping

    I'd like to have webapp's first document be served up from spring MVC.

    I could just redirect to a "home" servlet mapping from index.jsp, but I'd rather the start page was just...
  12. So it sounds like the view is XML. It's still...

    So it sounds like the view is XML.

    It's still MVC. The php server makes a call to the spring server and asks for a page. The controller does its logic and puts things in a model. The model is...
  13. Replies
    8
    Views
    7,747

    In tomcat 6.0.14 this still wont work because by...

    In tomcat 6.0.14 this still wont work because by default the view will do a forward with the request dispatcher. And tomcat overrides the view and viewresolver. It even ignores the directive on the...
  14. Found a workaround Since I have a custom...

    Found a workaround


    Since I have a custom DispatcherServlet that allows for the setting of a specific viewResolver, I configure two different ones.


    First is for JSP generated html files:

    ...
  15. This is a bug The problem happens in...

    This is a bug

    The problem happens in org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel()




    /**
    * Render the internal resource given the specified model....
  16. Replies
    8
    Views
    7,747

    This doesn't work for InternalResourceView

    This doesn't work for InternalResourceView
  17. Replies
    8
    Views
    7,747

    This no longer works. And having a view with the...

    This no longer works. And having a view with the correct content type doesn't seem to either.

    See this:
    http://forum.springframework.org/showthread.php?p=223959
  18. Digging deeper... I had to write my own...

    Digging deeper...

    I had to write my own Dispatcher servlet to be able to specify which resolver bean name to use.

    I woudn't have had to do that if...
  19. Does anyone know which class actually does the...

    Does anyone know which class actually does the figuring out of which viewResolver to use?

    If there is a hook in the Controller or Handler or ModelAndView or Servlet, then I could override the...
  20. InternalResourceViewResolver and multiple content types ?

    It seems like it isn't possible to have a SpringMVC app with multiple content types using InternalResourceViewResolver.

    The content type put on a response in a controller's handleRequestInternal...
Results 1 to 20 of 20