struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanlick <stanl...@gmail.com>
Subject 2.1.6 ActionContext change?
Date Thu, 16 Apr 2009 13:26:37 GMT

I just received notice that the ActionContext now throws NoSuchMethodError
from this interceptor.  I am advising to use HttpServletRequest request =
ServletActionContext.getRequest (); however, I am surprised to learn about
this break.  



private void dropCrumb(ActionInvocation invocation) {
		
// if request was not of type GET and config is for GET only, forget about
it.
ActionContext context = invocation.getInvocationContext ();
HttpServletRequest request =
(HttpServletRequest)context.get("com.opensymphony.xwork2.dispatcher.HttpServletRequest");

java.lang.NoSuchMethodError:
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/Object;)Ljava/lang/Object;

        at
com.strutsschool.interceptors.breadcrumbs.BreadCrumbInterceptor.dropCrumb(BreadCrumbInterceptor.java:70)

        at
com.strutsschool.interceptors.breadcrumbs.BreadCrumbInterceptor.doIntercept(BreadCrumbInterceptor.java:43)
-- 
View this message in context: http://www.nabble.com/2.1.6-ActionContext-change--tp23077974p23077974.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message