Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Replies
    32
    Views
    8,692

    Well, the solution you found (using / instead of...

    Well, the solution you found (using / instead of /*) was also suggested in this thread, but forwarding to the default-servlet by using the defaultHandler-property of SimpleUrlHandlerMapping is a nice...
  2. Replies
    6
    Views
    1,387

    Could this be a upper-/lowercase-problem? Your...

    Could this be a upper-/lowercase-problem? Your getter and setter methods should be named getDatabaseName()/setDatabaseName(), with a capital D. Also, the path in your spring:bind should be...
  3. Replies
    2
    Views
    2,070

    1. Use onSubmit instead of onClick: ...

    1. Use onSubmit instead of onClick:

    onSubmit="return doSubmit()"

    2. Return false from doSubmit() if you don't want the form to be submitted.

    alert("Something wrong");
    return false;

    This...
  4. DataBinder#setAllowedFields() in the initBinder()...

    DataBinder#setAllowedFields() in the initBinder() method of any Controller that extends BaseCommandController.

    I asked the same question, some months ago:...
  5. Replies
    11
    Views
    5,668

    Have you considered AbstractWizardFormController...

    Have you considered AbstractWizardFormController or WebFlow, as was suggested above? AWFC probably requires least work, and it'll probably feel more right than two controllers communicating...
  6. Replies
    32
    Views
    8,692

    Ah, you're right. I seem to have a knack for...

    Ah, you're right. I seem to have a knack for failing to see the obvious (at least in this thread). Your example would work just as well as mine. :)
  7. Replies
    32
    Views
    8,692

    What would ensure that the static content...

    What would ensure that the static content requests aren't rewritten in the same way?

    If the syntax is perl-compatible, I guess you could use <from>^([^\.]+)$</form> to ensure it doesn't match...
  8. Replies
    32
    Views
    8,692

    You're welcome. :) However, also look into...

    You're welcome. :) However, also look into dhewitt's Url Rewrite Filter if you need to serve static content as well (from or below your application's context path).

    Does anyone know of a way to...
  9. Replies
    32
    Views
    8,692

    Ah, now I see what you meant. I agree completely...

    Ah, now I see what you meant. I agree completely with this, but the whole point of this thread has become "what IF we want it anyway?". So saying "why can't you just map it with *.html or whatever"...
  10. Replies
    32
    Views
    8,692

    So, the spec states that JSP-enabled containers...

    So, the spec states that JSP-enabled containers must (implicitly) map URLs matching "*.jsp" to a Servlet (or whatever) that is able to handle parsing av rendering a .jsp page. How it is implemented,...
  11. Replies
    32
    Views
    8,692

    Can you explain why? Following my suggestion...

    Can you explain why? Following my suggestion wouldn't handle them any more or less special than they already are (implicitly).

    Further, this isn't a my case at all - I'm just trying to help Jeroen...
  12. Replies
    32
    Views
    8,692

    Good thinking. Though, I think I have an even...

    Good thinking.

    Though, I think I have an even better idea...
    How do .jsp files get mapped in the first place? Well, according to SRV 11.2.1 in the servlet 2.4 spec, this is because of an implicit...
  13. Replies
    32
    Views
    8,692

    If you're referring to element SRV 6.2.5 of the...

    If you're referring to element SRV 6.2.5 of the servlet spec, it seems it only applies to filter-mappings, not servlet-mappings. No luck, there. :(
  14. Replies
    32
    Views
    8,692

    Yup, this would be what you're looking for. ...

    Yup, this would be what you're looking for.


    I don't think that would help. Even if it knew it had "been here before", it wouldn't help in rendering the .jsp itself. It could avoid matching the...
  15. Replies
    32
    Views
    8,692

    You're quite right, I had forgot about the top...

    You're quite right, I had forgot about the top level.


    Those were two different lines of thought. Both of which could be a separate solution. But as you pointed out, the "everything...
  16. Replies
    7
    Views
    1,406

    Good point. There are, of course, use cases where...

    Good point. There are, of course, use cases where overriding isFormSubmission() is the right thing. :)
  17. Replies
    1
    Views
    664

    That doesn't make any sense, but you probably...

    That doesn't make any sense, but you probably knew that. ;)

    Not based on what you've told so far...
  18. Replies
    7
    Views
    1,406

    If you have to override isFormSubmission() for a...

    If you have to override isFormSubmission() for a SimpleFormController, it sounds to me like you have picked the wrong Controller. Are you actually submitting form input to this Controller? ;)
  19. Using the AWFController, you can go back and...

    Using the AWFController, you can go back and forth between pages as you wish - you don't have to move forward always.

    If you're looking for an easy way to jump between different pages in the...
  20. If you don't need any information for the new...

    If you don't need any information for the new request, how about using ModelAndView.clear() before redirecting (i.e. before returning the success view)? I guess it depends on what kind of Controller...
  21. I'm not sure if this is the "right" way to work...

    I'm not sure if this is the "right" way to work around this, but I've created a HandlerInterceptor to do this:



    public class AddGlobalObjectsToModelInterceptor implements HandlerInterceptor {...
  22. Replies
    32
    Views
    8,692

    So the question is: Is there a way to forward...

    So the question is: Is there a way to forward view handling to the .jsp file without using RequestDispatcher.forward() (or include())? If not, the problem is more an issue with the Servlet API than...
  23. Replies
    32
    Views
    8,692

    Hm... Well, a VelocityView doesn't call...

    Hm... Well, a VelocityView doesn't call RequestDispatcher.forward(), like an InternalResourceView does when rendering itself, so that may explain the differing behaviour. Does the RequestDispacher's...
  24. Replies
    32
    Views
    8,692

    Yes, you are. If I understand what you're...

    Yes, you are.

    If I understand what you're saying, you're describing describing something that shouldn't (and if done correctly can't) happen. However, you can't expect anyone to find out what...
  25. Replies
    7
    Views
    1,983

    Well, the first one was missing the viewClass...

    Well, the first one was missing the viewClass property. I haven't used Tiles, so I can't tell if there's anything wrong with the second one.
Results 1 to 25 of 52
Page 1 of 3 1 2 3