passing an attribute from 1 container to the other
hello every1,
My Question goes like this.Is it possible for me to set an attribute in ur servlet code on 1 container and forward to a JSP which is present in other container using request dispatcheri.e forwarding(I dont want to use redirecting).If it is possible please give me some suggestions....
Thnx a lot
[328 byte] By [
j2ee_wcda] at [2007-10-2 5:15:56]

In Tomcat you can do it but not sure about other servers. You sent the context as crosscontext enabled in both web apps. The you can use the ServletContext.getContext("name") to get the ServletContext of the other web ap and then do a forward.
I guess since they have the getContext method that it should be doable in any server.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html
http://tomcat.apache.org/tomcat-5.0-doc/config/context.html