DCCoolBreeze
Programmer
I have encountered a problem moving my code from tomcat to a server with apache.
I am using the HttpSession class methods' getattribute and setattribute to pass data from the servlet to the jsps.
This works on my machine because I am using the servlet.jar provided by tomcat in my classpath when I compile my programs.
However, This doesn't work on the new server box because the methods cannot be found. I was able to get around this problem by copying the servlet.jar from tomcat on to the new server and adding it to my classpath. This allowed me to compile the servlets.
The jsps however can't find the getattribute method so the jsps fail.
SO
should something else be installed on the npics server like javax.servlet.http or are these methods hidden somewhere in apache and we need to change the path or classpath variables?
I am using the HttpSession class methods' getattribute and setattribute to pass data from the servlet to the jsps.
This works on my machine because I am using the servlet.jar provided by tomcat in my classpath when I compile my programs.
However, This doesn't work on the new server box because the methods cannot be found. I was able to get around this problem by copying the servlet.jar from tomcat on to the new server and adding it to my classpath. This allowed me to compile the servlets.
The jsps however can't find the getattribute method so the jsps fail.
SO
should something else be installed on the npics server like javax.servlet.http or are these methods hidden somewhere in apache and we need to change the path or classpath variables?