Revision: 582
http://svn.sourceforge.net/stripes/?rev=582&view=rev
Author: bengunter
Date: 2007-06-17 09:07:51 -0700 (Sun, 17 Jun 2007)
Log Message:
-----------
getActionBean(ActionBeanContext) does not need to cast the request to
StripesRequestWrapper
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
2007-06-14 04:09:36 UTC (rev 581)
+++
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
2007-06-17 16:07:51 UTC (rev 582)
@@ -241,16 +241,9 @@
* @return the name of the form to be used for this request
*/
public ActionBean getActionBean(ActionBeanContext context) throws
StripesServletException {
- String path;
- StripesRequestWrapper request = (StripesRequestWrapper)
context.getRequest();
+ HttpServletRequest request = context.getRequest();
UrlBinding binding =
UrlBindingFactory.getInstance().getBindingPrototype(request);
- if (binding == null) {
- path = getRequestedPath(request);
- }
- else {
- path = binding.getPath();
- }
-
+ String path = binding == null ? getRequestedPath(request) :
binding.getPath();
ActionBean bean = getActionBean(context, path);
request.setAttribute(RESOLVED_ACTION, getUrlBindingFromPath(path));
return bean;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development