Main.java:13: error: class CharacterEncodingFilter is public, should be declared in a file named CharacterEncodingFilter.java
public class CharacterEncodingFilter implements Filter {
^
Main.java:5: error: package javax.servlet does not exist
import javax.servlet.Filter;
^
Main.java:6: error: package javax.servlet does not exist
import javax.servlet.FilterChain;
^
Main.java:7: error: package javax.servlet does not exist
import javax.servlet.FilterConfig;
^
Main.java:8: error: package javax.servlet does not exist
import javax.servlet.ServletException;
^
Main.java:9: error: package javax.servlet does not exist
import javax.servlet.ServletRequest;
^
Main.java:10: error: package javax.servlet does not exist
import javax.servlet.ServletResponse;
^
Main.java:13: error: cannot find symbol
public class CharacterEncodingFilter implements Filter {
^
symbol: class Filter
Main.java:21: error: cannot find symbol
public void init(FilterConfig config) throws ServletException {
^
symbol: class FilterConfig
location: class CharacterEncodingFilter
Main.java:21: error: cannot find symbol
public void init(FilterConfig config) throws ServletException {
^
symbol: class ServletException
location: class CharacterEncodingFilter
Main.java:46: error: cannot find symbol
public void doFilter(ServletRequest servletRequest,
^
symbol: class ServletRequest
location: class CharacterEncodingFilter
Main.java:47: error: cannot find symbol
ServletResponse servletResponse, FilterChain chain)
^
symbol: class ServletResponse
location: class CharacterEncodingFilter
Main.java:47: error: cannot find symbol
ServletResponse servletResponse, FilterChain chain)
^
symbol: class FilterChain
location: class CharacterEncodingFilter
Main.java:48: error: cannot find symbol
throws IOException, ServletException {
^
symbol: class ServletException
location: class CharacterEncodingFilter
14 errors