---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- Hello Everybody, I am working with the following setup. 1. Zeus Web Server 2. Apache JServ 1.1 3. GNUJSP 1.0.0 Problem is that two sessions are being maintained each by jsp engine and the servlet engine.Therefore whatever I set in one's session variable is not being able to be got in the other.I have attached a code sample of what I am trying to do. There is a servlet file and a jsp file.I call the servlet file first ,where I set a value in the session and then redirect it to a jsp page, where I try to get the calue from the session. But it prints null in the JSP page. testses.java ---------- import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class testses extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException { doPost(request,response); } public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException { HttpSession session = request.getSession(true); session.putValue("myparam","Alexius"); response.sendRedirect("/jsproot/testses.jsp"); } } testses.jsp --------- <%@ page language="java" %> <HTML> <BODY> HAI <%= session.getValue("myparam") %> </BODY> </HTML> I call the servlet as http://<server name>/jserv/testses I redirect it to the jsp as given in the testses.java file on top. Zeus Configuration ---------------- In Zeus configuration there a module configuration where I have given MountPoint Server Port Zone Protocol /jserv localhost 8007 root ajpv12 /gnujsp jsp ajpv12 and in the mapping I had given under handlers FileExtension Handler ----------- ------ jsp /gnujsp/gnujsp JServ Configuration ----------------- In my jserv.properties file, wrapper.protocol=ajpv12 bindaddress=localhost port=8007 zones=root,jsp root.properties=/usr/local/jserv/conf/zone.properties jsp.properties=/usr/local/jserv/conf/jsp.properties ApJServAction .jsp /jsp/gnujsp ApJServMount /gnujsp/gnujsp Jsp Configuration --------------- repositories=/usr/local/gnujsp/lib/gnujsp10.jar repositories=/usr/local/gnujsp/lib/servlet-2.0-plus.jar servlet.gnujsp.code=org.gjt.jsp.JspServlet servlet.gnujsp.initArgs=checkclass=true,scratchdir=/usr/local/jserv/jspScrat chDir,debug=true,compiler=javac -classpath %classpath%:%scratchdir%:/usr/local/jserv/classlib:/usr/local/gnujsp/lib/ser vlet-2.0-plus.jar:/usr/local/gnujsp/lib/gnujsp10.jar:/usr/jaf-1.0.1/activati on.jar:/usr/javamail-1.1.2/mail.jar -d %scratchdir% -deprecation %source% pagebase=/<zeus web server docroot>/jsp, Other lines in the configuration are just commented lines ,except for few default ones. I would request to patiently go thru my query and find the fault in the configuration. I found a similiar query in the list ,but the answer was not apt to my situation.So kindly solve my problem. Thanking you in advance hoping to find a solution as soon as possible. -Alexius Luke JIN Information Systems. -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search Archives: <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]

Reply via email to