【发布时间】:2014-12-01 04:38:19
【问题描述】:
我正在添加一个过滤器来检查会话是否有效。
添加了以下但得到错误
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws java.io.IOException, ServletException {
if (request.getRequestedSessionId() != null
&& !request.isRequestedSessionIdValid()) {
错误:-
The method getRequestedSessionId() is undefined for the type ServletRequest
【问题讨论】: