Skip to content
Browse files

Some more session stuff, etc

  • Loading branch information...
1 parent cca6b69 commit 2cc266637d8a2a3c28aba07b7f6d0d39a1dad0d2 @jcrossley3 jcrossley3 committed Jul 13, 2011
Showing with 16 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +7 −0 java-sessions/WEB-INF/web.xml
  3. +6 −0 java-sessions/index.jsp
View
4 .gitignore
@@ -1 +1,3 @@
-Gemfile.lock
+Gemfile.lock
+/java-sessions/make-love-not.war
+/java-sessions/cookies
View
7 java-sessions/WEB-INF/web.xml
@@ -0,0 +1,7 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+ <distributable/>
+</web-app>
View
6 java-sessions/index.jsp
@@ -0,0 +1,6 @@
+<%
+ String q = request.getParameter("q");
+ if (null != q) session.setAttribute("foo", q);
+%>
+
+Session value=<%=session.getAttribute("foo")%>

0 comments on commit 2cc2666

Please sign in to comment.
Something went wrong with that request. Please try again.