This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See Please note that i am calling servletContext.setAttribute("", hashMap )in init() method of a servlet. Even though when i compile with orion1.5.x it works fine and compiles successfully. What the problem can be there, is there a version problem or something else. Please respond to the above. thanks. Best regards Rashid Ali
Jbuilder is probably using an older version of the servlet API. setAttribute is available since version 2.2. It replaced the older method called putValue().
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
posted 15 years ago
Thanks for your message Bosun. You are right. JBuilder3 was using the JSDK old version when i deleted it and as already servlet.jar was in its liberary, it started to compile. But now as i have deleted this JSDK old liberary and using servlet.jar, it is not running its own ServletServer.java file and not running its own server. Any suggestion so that i can work with JBuilder's own server. There might be a solution that i should to download a JSDK new version and put it in its liberary, will this work. Please suggest. Kind regards Rashid Ali