title: Integrate GWT with Spring Security with custom login page
body: <p>I have followed
  <a href="http://krams915.blogspot.hk/2011/01/spring-and-gwt-security-via-spring.html" rel="nofollow">http://krams915.blogspot.hk/2011/01/spring-and-gwt-security-via-spring.html</a>
  to build a GWT app with spring security with custom login page.</p>
  
  <p>However, How can I handle the followings things?</p>
  
  <p>1) If the user is not logged in, direct the user to login page, but not showing the HTTP ERROR page.</p>
  
  <p>2) after the user is logged in, direct the user to front page or previous page but not /j_spring_security_check</p>
  
  <p>I have tried replacing /j_spring_security_check in the loginpage.jsp to the /XXXEntry.html?gwt.codesvr=127.0.0.1:9997. I can successfully redirect back to the GWT app, but it stills said that Authentication required.</p>
  
  <p>Could anybody help? Better with code examples. Thanks a lot!!</p>