如题,有没有什么api可以直接拿到这次访问所请求的action的类名。或者soring配置的哪个bean
解决方案 »
- 关于validation 验证的问题!!!!
- hibernate外键问题????
- jsp向数据库插入时间
- JSP中怎样正确显示checkbox?
- 各位高手,碰到这种问题吗?当用PreparedStatement.setString方法的时候,如果字符串很多会报下面的错,导致不能用addBatch的方法
- session问题.请大家进来帮帮忙!
- struts的struts-config.xml问题
- jsp页面 超链接 中文乱码问题
- Timestamp使用上的问题
- Weblogic7中的紧急问题,求救.
- 前台页面迭代出input的id值都一样,js取不到第二条以后的值,求解答
- jsp动态跨行跨列问题~~
String contextPath = request.getContextPath();
String url = requestUri.substring(contextPath.length());url就是这次访问的action
public class CatchUrlInterceptor implements Interceptor{
private static final long serialVersionUID = -4502868552994820483L; public void destroy() {
} public void init() {
} public String intercept(ActionInvocation invocation) throws Exception {
ActionProxy proxy = invocation.getProxy();
String namespace = proxy.getNamespace();
String actionName = proxy.getActionName(); return invocation.invoke();
}}
谢谢,用proxy.getAction().getClass()获得了具体地址。。