16 Mar 2009 at 14:35 #1 Energize Energize Caporegime Joined 12 Mar 2004 Posts 29,962 Location England If on one page I have this, Code: String catagory2 = "dvd"; session.setAttribute(catagory2, catagory2); and on the next page this, Code: session.getAttribute(catagory2) It says that catagory2 cannot be resolved?
If on one page I have this, Code: String catagory2 = "dvd"; session.setAttribute(catagory2, catagory2); and on the next page this, Code: session.getAttribute(catagory2) It says that catagory2 cannot be resolved?
16 Mar 2009 at 22:14 #2 probedb probedb Associate Joined 24 Jun 2006 Posts 1,462 Don't you have to specify to use sessions in the <@page directive? Can't remember off the top of my head. Incidentally the word is category, with an 'e'
Don't you have to specify to use sessions in the <@page directive? Can't remember off the top of my head. Incidentally the word is category, with an 'e'
16 Mar 2009 at 22:40 #3 Energize Energize Caporegime OP Joined 12 Mar 2004 Posts 29,962 Location England probedb said: Don't you have to specify to use sessions in the <@page directive? Can't remember off the top of my head. Click to expand... Yes, <%@ page session="true" %> Incidentally the word is category, with an 'e' Click to expand... So it is.
probedb said: Don't you have to specify to use sessions in the <@page directive? Can't remember off the top of my head. Click to expand... Yes, <%@ page session="true" %> Incidentally the word is category, with an 'e' Click to expand... So it is.
17 Mar 2009 at 09:08 #4 probedb probedb Associate Joined 24 Jun 2006 Posts 1,462 Hmm, not sure if that's not working. I've had them not work for no apparent reason before as well.