Exception starting filter struts2 – tried adding JAR’s, but same result

Since you are using Struts 2.3, FilterDispatcher is deprecated. You MUST use StrutsPrepareAndExecuteFilter (or its little brothers). From the official documentation Deprecated. Since Struts 2.1.3, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilter and StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one change then this <!– Struts < 2.1.3 –> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> to … Read more

java.lang.IllegalStateException: Cannot (forward | sendRedirect | create session) after response has been committed

A common misunderstanding among starters is that they think that the call of a forward(), sendRedirect(), or sendError() would magically exit and “jump” out of the method block, hereby ignoring the remnant of the code. For example: protected void doXxx() { if (someCondition) { sendRedirect(); } forward(); // This is STILL invoked when someCondition is … Read more