Hi, I have a question. Is it possible for servlets and jsp to share a session object? The problem is as follows : Apache JServ issues sessions on a 'per zone' basis. gnujsp runs the JSPServlet in a zone (on my machine) called 'jsp' my servlets run in a zone called 'tmo' I'm writing a web application that uses a jsp form to submit data to a servlet. The servlet then validates the data, and if it finds any problems, it sets various bits of state in the session object, and redirects back to the jsp form. The idea is that the form can a) fill in data that have already been filled in by using the 'value = "<%= some.java.name() %>"' directive and b) the errors in validation (certain fields missing etc) can be reported at the top of the page. Clearly, for this to work there has to be some form of communication between the two zones, and ideally they should share the session. Now, according to the 'Advanced Apache JServ Techniques', : 'It will be impossible for code inside one zone to see or interact with code in another...' There is an obvious case where this is not desirable behaviour, as outlined above. I have one possible fix, which is to specify in some way which zone the compiled jsp should be run in. This doesn't break the security model if done in the following way : Add a directive to the jserv conf file for each zone that gives a 'jsp webroot' parameter, and set any jsps below that webroot to execute in the appropriate zone. However, this would require modification of both jserv and gnujsp to work. I am open to comments and suggestions. Yours, Tom Oinn -- [EMAIL PROTECTED], European Bioinformatics Institute, Hinxton UK ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
