|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2012 the original author or authors. |
| 2 | + * Copyright 2002-2013 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
50 | 50 | *
|
51 | 51 | * <p>Note that the second strategy also supports the use of submit buttons of
|
52 | 52 | * type 'image'. That is, an image submit button named 'reset' will normally be
|
53 |
| - * submitted by the browser as two request paramters called 'reset.x', and |
54 |
| - * 'reset.y'. When checking for the existence of a paramter from the |
| 53 | + * submitted by the browser as two request parameters called 'reset.x', and |
| 54 | + * 'reset.y'. When checking for the existence of a parameter from the |
55 | 55 | * {@code methodParamNames} list, to indicate that a specific method should
|
56 |
| - * be called, the code will look for request parameter in the "reset" form |
57 |
| - * (exactly as spcified in the list), and in the "reset.x" form ('.x' appended to |
58 |
| - * the name in the list). In this way it can handle both normal and image submit |
59 |
| - * buttons. The actual method name resolved if there is a match will always be |
60 |
| - * the bare form without the ".x". |
| 56 | + * be called, the code will look for a request parameter in the "reset" form |
| 57 | + * (exactly as specified in the list), and in the "reset.x" form ('.x' appended |
| 58 | + * to the name in the list). In this way it can handle both normal and image |
| 59 | + * submit buttons. The actual method name resolved, if there is a match, will |
| 60 | + * always be the bare form without the ".x". |
61 | 61 | *
|
62 | 62 | * <p><b>Note:</b> If both strategies are configured, i.e. both "paramName"
|
63 | 63 | * and "methodParamNames" are specified, then both will be checked for any given
|
|
69 | 69 | *
|
70 | 70 | * <p>For both resolution strategies, the method name is of course coming from
|
71 | 71 | * some sort of view code, (such as a JSP page). While this may be acceptable,
|
72 |
| - * it is sometimes desireable to treat this only as a 'logical' method name, |
| 72 | + * it is sometimes desirable to treat this only as a 'logical' method name, |
73 | 73 | * with a further mapping to a 'real' method name. As such, an optional
|
74 | 74 | * 'logical' mapping may be specified for this purpose.
|
75 | 75 | *
|
|
0 commit comments