index.jsp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <%--
  2. Licensed to Jasig under one or more contributor license
  3. agreements. See the NOTICE file distributed with this work
  4. for additional information regarding copyright ownership.
  5. Jasig licenses this file to you under the Apache License,
  6. Version 2.0 (the "License"); you may not use this file
  7. except in compliance with the License. You may obtain a
  8. copy of the License at the following location:
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing,
  11. software distributed under the License is distributed on an
  12. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  13. KIND, either express or implied. See the License for the
  14. specific language governing permissions and limitations
  15. under the License.
  16. --%>
  17. <%@ page language="java" session="false" %>
  18. <%--
  19. ~ Licensed to Jasig under one or more contributor license
  20. ~ agreements. See the NOTICE file distributed with this work
  21. ~ for additional information regarding copyright ownership.
  22. ~ Jasig licenses this file to you under the Apache License,
  23. ~ Version 2.0 (the "License"); you may not use this file
  24. ~ except in compliance with the License. You may obtain a
  25. ~ copy of the License at the following location:
  26. ~
  27. ~ http://www.apache.org/licenses/LICENSE-2.0
  28. ~
  29. ~ Unless required by applicable law or agreed to in writing,
  30. ~ software distributed under the License is distributed on an
  31. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  32. ~ KIND, either express or implied. See the License for the
  33. ~ specific language governing permissions and limitations
  34. ~ under the License.
  35. --%>
  36. <%
  37. final String queryString = request.getQueryString();
  38. final String url = request.getContextPath() + "/login" + (queryString != null ? "?" + queryString : "");
  39. response.sendRedirect(response.encodeURL(url));%>