<%-- /* * Copyright 2001-2013 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ Document : index Created on : Mar 30, 2013, 10:05:37 PM Author : Alex O'Ree --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <% Cookie[] cookies = request.getCookies(); if (cookies != null && cookies.length > 0) { for (int i = 0; i < cookies.length; i++) { if (cookies[i] != null && cookies[i].getName() != null && cookies[i].getName().equalsIgnoreCase("locale")) { if (cookies[i].getValue() != null) { session.setAttribute("locale", cookies[i].getValue()); response.sendRedirect("home.jsp"); } } } } if (request.getMethod().equalsIgnoreCase("post")) { String lang = request.getParameter("language"); String checked=request.getParameter("setcookie"); if (lang != null) { session.setAttribute("locale", lang); if (checked != null && checked.equalsIgnoreCase("on")) { Cookie cookie = new Cookie("locale", lang); cookie.setMaxAge(Integer.MAX_VALUE); cookie.setPath("/"); response.addCookie(cookie); } response.sendRedirect("home.jsp"); } } %> Welcome to Apache jUDDI


Welcome to jUDDI


Remember my decision

We welcome help internationalizing jUDDI!