File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Variable symbol not found
Joined: Apr 02, 2011
Apr 08, 2011 16:05:06
Hi everybody. i have run my program in
but i have move it to
. during compilation, the following error ensued
C:\Tomcat 6.0\webapps\test\WEB-INF\classes>javac Test.java Test.java:26: cannot find symbol symbol : variable session location: class Test String name = session.getAttribute("name").toString(); ^ 1 error
what do i do thanks
Author and ninkuma
Joined: Jan 10, 2002
Apr 08, 2011 16:16:33
Did you define a variable named
? If not, and are expecting there to be an implicit variable (like there is in JSP), then that's the issue.
You can fetch the session from the request instance.
Asking smart questions
Books by Bear
Joined: Feb 07, 2008
Apr 10, 2011 01:49:09
Have you declared session???anymore in your code
I agree. Here's the link:
subject: Variable symbol not found
can anyone please briefly teach me how to write a classic game?
Help with DateFormat!?
doubt related to packages (To chandilya poppuru)
class in the default package not found by javac?
Error in Package
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015