URL Rewriting

luckas
20 de Diciembre del 2001
Alguien sabe donde puedo encontrar información sobre URL Rewriting?
No sólo de que trata sino, ejemplos, explicaciones,...

Achilles
20 de Diciembre del 2001
He encontrado un pequeño párrafo describiendo el URL rewriting. Está en ingés.

"URL rewriting.
When cookies are not available, then an alternate method called URL rewriting is available to manage your session. The methods of implementing URL rewriting will vary among the various JSP containers. Some containers may offer automatic URL rewriting while others force you to implement a manual solution. In URL rewriting, the session id is written as part of your URL's query string parameter. Two methods in the response explicit object exist to help the programmer use URL rewriting. These methods are response.encodeRedirectURL() and response.encodeURL(). It is interesting to note these two functions will do nothing if cookies are enabled (since then the cookie method of session management is used by the container) or your Container doesn't support URL rewriting. In using URL rewriting, you must make sure every time you move from page to page you encode the session into the URL string. You will find a simple example of URL rewriting at the end of this page ."

Y el ejemplo en la dirección:
"http://www.jspinsider.com/reference/jsp/jspsession.html#example"

Espero que te sea de ayuda.

luckas
20 de Diciembre del 2001
Gracias Achilles!

Si yo ya lo hacia como decia en esta página, pero no funcionava.

Estuve mucho tiempo miranto y probando, y al final encontré de que era culpa: No estaba activado el URLRewriting en el servidor!. Tengo el IBM Websphere, y para poder utilizar el URL Rewriting tienes que activarlo des de la consola de administración.

Si alguien tiene algun otro problema con el Websphere que lo diga y intentaré solucionarlo porque me he encontrado un tanto, más que nada culpa mia que no sabía como funconiaban las cosas.

Un saludo!