<%@page contentType="text/html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<c:if test="${param.language == 'zh' || param.language == null}">
  <fmt:setLocale value="zh" scope="session"/>
</c:if>
<c:if test="${param.language == 'en'}">
  <fmt:setLocale value="en" scope="session"/>
</c:if>
<c:if test="${param.language == 'sv'}">
  <fmt:setLocale value="sv" scope="session"/>
</c:if>
<c:if test="${param.language == 'de'}">
  <fmt:setLocale value="de" scope="session"/>
</c:if>
<fmt:setBundle basename="labels" scope="session"/>
<html>
<head>
<title>
<fmt:message key="title"/>
</title>
</head>
<body bgcolor="white">
<h1>
  <fmt:message key="title"/>
</h1>
<fmt:message key="select_language"/>
:
<form action="index.jsp">
<p>
  
  <input type="radio" name="language" value="zh"/>
  <c:if test="${currLang == 'zh'}">checked</c:if>
  <fmt:message key="chinese"/>
  <br>
  <input type="radio" name="language" value="en"/>
  <c:if test="${currLang == 'en'}">checked</c:if>
  <fmt:message key="english"/>
  <br>
  <input type="radio" name="language" value="sv"/>
  <c:if test="${currLang == 'sv'}">checked</c:if>
  <fmt:message key="swedish"/>
  <br>
  <input type="radio" name="language" value="de"/>
  <c:if test="${currLang == 'de'}">checked</c:if>
  <fmt:message key="german"/>
  <br>

<p>
  <input type="submit" value="<fmt:message key="new_language" />">

</form>
</body>
</html>
