jon * wrote:

> > In my servlets, I want to force the use of Url Rewriting and disable cookie
> > support, making it consistant for all users.  Is there a property or some
> > other way to do this?
>
> the simple way to do it is to not use the encodeUrl() method and to just
> write your own.
>

1.1 has a configuration setting for turning off the use of cookies, but 1.0 does
not.  Jon's suggestion is about the only viable work-around, but do be aware that
it locks you in to Apache JServ's mechanism for encoding with a query parameter.

>
> > Also, when I restart the server it seems that session data is lost rather
> > than persist like I would expect.  I would expect Jserv to save session data
> > as the server is shut-down and reload it when it starts back up.
>
> you might expect it, but in the 2.0 servlet api is this not required of the
> servlet engine. your Sessions will receive an event notification about being
> destroyed and instantiated...it is at this point that you can write your
> save state stuff.
>

Even in the 2.1 and 2.2 APIs, session persistence is not a required feature of
any servlet engine.

>
> apache jserv 1.1 will have a ton of new features that will allow you to do
> this automaticially (thanks craig) though.
>

If you configure 1.1 for this, it will attempt to serialize and deserialize your
session objects.  Thus, they must implement "java.io.Serializable" to be
persisted.  This will probably be true for any servlet engine that supports
session persistence.

>
> -jon
>

Craig




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to