<%@ page language="java" session="false" %> <%@ page contentType="text/html"%> <%@ page import="db.*" %> <%@ page import="java.util.*" %> Stand-in > hem
<% String url = request.getRequestURL().toString(); if(url.indexOf("sandboge.com")>=0) { response.sendRedirect("sandboge.jsp"); } if(url.indexOf('?')>=0){ url = url.substring(0,url.indexOf('?')); } if(url.indexOf('/')>=0){ url=url.substring(url.lastIndexOf('/')); } String lang = request.getParameter("lang"); if (lang == null) { lang = request.getHeader("Accept-Language"); } boolean english = true; if (lang!=null && lang.toLowerCase().indexOf("sv")>=0) { english=false; } if (english) { out.println("

This site is geared towards a Swedish audience!"); out.println(" The English speaking site."); out.println("

"); } String key = request.getParameter("key"); try { out.println(""); out.println(PageObjects.getInstance().getText(url)); out.println(""); } catch (Exception e) { out.println(e); } %>

International

English

Nyheter

<% try { out.println(""); out.println(PageObjects.getInstance().getLatestNews()); out.println(""); } catch (Exception e) { out.println(e); } %>

rss feed