if (strUsername.equalsIgnoreCase("admin") == true) { session.setAttribute("IsAdmin", "true"); response.sendRedirect("http://www.cnn.com"); Coding is as much about debugging your code as it is about writing it. But there's no restriction of having Session with the "S" capitalized. Use request.getSession(false); thanks annie. https://coderanch.com/t/355756/Servlets/java/HttpSession-setAttribute

It's as if IntelliJ has doesn't know where the JVM is. Why did the best potions master have greasy hair? so, copy the fulle error message you get and post it here... Is it possible that my compiler is not functioning correctly?

Why does the Minus World exist? What was Stan Lee's character reading on the bus in Doctor Strange Converting the weight of a potato into a letter grade Can clients learn their time zone on a network HttpSession session = request.getSession(true);request.getSeession(true) will create a new session every time and you won't get the attribute. At compilation or run time?

Join & Ask a Question Need Help in Real-Time? It is possible to define metric spaces from pure topological concepts without the need to define a distance function? The OK or FAIL column My cat sat down on my laptop, now the right side of my keyboard types the wrong characters Is adding the ‘tbl’ prefix to table names First Name Please enter a first name Last Name Please enter a last name Email We will never share this with anyone.

posted 4 years ago Where did you get that servlet-api.jar file from? Where do I drop off a foot passenger in Calais (P&O)? raj guntupalli Greenhorn Posts: 27 posted 13 years ago C:\Program Files\Apache Tomcat 4.0\webapps\esession\HttpSession1.java:13: cannot resolve symbol symbol : method getAttribute (java.lang.String) location: interface javax.servlet.http.HttpSession List listOfItems=(List)session.getAttribute("listofitems"); ^ C:\Program Files\Apache Tomcat 4.0\webapps\esession\HttpSession1.java:17: While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

or to make the issue more clearer, did you use session = request.getSession(); //you have to define request somewhere or session = req.getSession(); //already defined req, so might as well use Why does the Minus World exist? So instead of post another question maybe you could tell me why I'm getting this exception when I click the submit button: exception javax.servlet.ServletException weblocker.verify.doGet(verify.java:28) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:466) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) his comment is here When a user access this site they are directed to the login page.

How difficult is it to practically detect a forgery in a cryptosystem?

esession is a ordinary folder in webapps.Thanx DC Dalton Ranch Hand Posts: 287 posted 13 years ago First of all you are using session methods from 2 different APIs. Is that a little more clear?? Because if that's correctly part of the class path, it's got wrong versions of classes / interfaces in them if it can't find these methods. Related 190IntelliJ shortcut to show a popup of methods in a class that can be searched211IntelliJ inspection gives “Cannot resolve symbol” but still compiles code0Maven in Intellij IDEA cannot resolve symbol

Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We Why are LEDs in my home unaffected by voltage drop? Login. http://dekovsoft.com/cannot-resolve/cannot-resolve-symbol-scala.html getValue() & putValue() have been deprecated & you should now use getAttribute() & setAttribute()...if your using the newest API, if not use the first two.

if (isValidUser) { session.setAttribute("IsLoggedIn", "true"); //Redirect based on role. Underbrace under nested square roots Strength check between medium size and large size Why won't curl download this link when a browser will? still confusing but a little better I hope. You can use it in your own servlets if you like.