Multiligual pages

In oposite to the old Web-server the german and the english pages are contained in a common jsp-file. If the page is used it gets a parameter lang with the value "0" if the page is needed for german ore "1" if the page is needed for english. The page finds the value of that parameter in the following way
<% int lang = de.wias.jee.tags.TagHelper.evalLang(pageContext); %>
In the text you can switch between german and english page with the following construct:
<% if (lang==0) { %>
... german text
<% } else { %>
... english text
<% } %>
example:
<%@ taglib uri="/wiastags" prefix="wiastags"%><wiastags:wiasheader l2Selected="2" menufile="/server/www/ROOT/hints/menu.txt">
<% int lang = de.wias.jee.tags.TagHelper.evalLang(pageContext); %>
<html>
<head>
<title>Multilingual</title>
</head>
<body>
<% if (lang==0) { %>
<h1>Mehrsprachige Seiten</h1>
... deutsche Text
<% } else { %>
<h1>Multiligual pages</h1>
... english text
<% } %>
</body>
</html>
</wiastags:wiasheader>
If only small parts are language dependent the following construct may be helpfull:
<% String text = lang==0?"Mehrsprachig":"Multilingual"; %>
<title><%=text%><title>
If longer parts shall be written in Jave you can use the following construct:
<% out.println(lang==0?"Mehrsprachig":"Multilingual"); %>
If you use at the old server the files filename.html.en and filename.html.de as the english resp. german version of the page you can use the following new file filename.jsp:
<%@ taglib uri="/wiastags" prefix="wiastags"%>
<wiastags:wiasheader l1Selected="1" l2Selected="2">
<% int lang = de.wias.jee.tags.TagHelper.evalLang(pageContext); %>
<% if (lang==0) { %>
<%@ include file="filename.html.de"%>
<% } else { %>
<%@ include file="filename.html.en"%>
<% } %>
</wiastags:wiasheader>