How to configure session cookie at Tomcat server level or at Application level (web.xml) In this post we will see how to configure session cookie at Tomcat server level or at application level using web.xml You can use either way to set a cookie. Tomcat server Go to -> conf directory -> open context.xml -> add below lines:- <Context sessionCookieName="<yourCookieName>" ... Read More »
Tag Archives: tomcat
How to handle HTTP error 414 Request-URI Too Long
Typically Web servers set fairly generous limits on length for URL query string e.g. up to 2048 or 4096 characters. While running a web application in Tomcat & HTTP Apache server, we came across a situation where we were asked to handle an extremely long URL query strings. Which was throwing HTTP 414 “Request-URI Too Long” error. For this situation ... Read More »
Java HttpServletRequest get current URL in browsers URL bar
If your current request is coming from an “inside the app-server” forward or include, the app-server is expected to preserve request information as request attributes. The specific attributes, and what they contain, depends on whether you’re doing a forward or an include. For, the original parent URL will be returned by request.getRequestURL(), and information about the included page will be ... Read More »
Configuring HTTP Apache Server and Tomact/ Jboss AS Application server
Download mod_jk (mod_jk.so is a Tomcat connector.) Download HTTP Apache server. And below I am describing the ways to configure mod_jk, HTTP Apache and Tomcat/Jboss AS 1). After downloading mod_jk rename this file as mod_jk.so 2). Place this file in the installed directory of apache in the below specified path – 3). Create the below mentioned files in the conf ... Read More »
Jkoder.com Tutorials, Tips and interview questions for Java, J2EE, Android, Spring, Hibernate, Javascript and other languages for software developers