A JSP File Always Creates a Session

Maybe I am just stupid, but in my latest escapades into cookies and sessions, I noticed that a session always gets created up front in JSP pages. If you have a simple index.jsp page like this one:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>index</title></head>
<body>the index</body>
</html>

The container will set a session cookie as one of the very first things. [...]

July 21, 2008  Tags: ,   Posted in: Programming  7 Comments

Conditional Page Rendering in Java Web Frameworks – Best Practices?

This is a post, that requires your input I want to harvest the information in your brains, on how your favourite web framework is best at not cluttering the view pages, when you need to show them differently for each user or state of the application.
Definition: Conditional Views
I have no better name, than [...]

May 17, 2008  Tags: ,   Posted in: Design, Programming  8 Comments