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...
Type: Posts; User: martinl; Keyword(s):
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...
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...
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...
DataBinder#setAllowedFields() in the initBinder() method of any Controller that extends BaseCommandController.
I asked the same question, some months ago:...
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...
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. :)
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...
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...
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"...
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,...
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...
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...
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. :(
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...
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...
Good point. There are, of course, use cases where overriding isFormSubmission() is the right thing. :)
That doesn't make any sense, but you probably knew that. ;)
Not based on what you've told so far...
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? ;)
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...
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...
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 {...
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...
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...
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...
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.