JSP Urlencode value

quick and dirty way to use JSP/JSTL to urlencode value:

<c:url var="url" value=""><c:param name="value" value="${param.value}" /></c:url>
<c:import url="http://www.domain.com/?${param.cat}=${fn:substringAfter(url, '=')}" />

Super-basic tomcat app web.xml file

When setting up Tomcat, if you need some basic files for a ROOT app or similar or placeholder pages:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>
  <welcome-file-list>
    <welcome-file>home.jsp</welcome-file>
  </welcome-file-list>
</web-app>

This file is {TOMCATHOME}/webapps/ROOT/WEB-INF/web.xml and in the example above, home.jsp goes in the ROOT folder.