response.encodeRedirectURL to a servlet

I'm still a little new to this response.encodeRedirectURL thing. I know about changing the link so that a session id is attached...but how do I send that id to a serlvet in a form?

if the form looks something like this:

<form action="servlet/ServletName" method="post">

how do I endcode the url?

Thanks in advance.

[402 byte] By [uberallesa] at [2007-11-27 7:36:24]
# 1

> I'm still a little new to this

> response.encodeRedirectURL thing. I know about

> changing the link so that a session id is

> attached...

There are other ways to get the Session ID, have you tried setting a session cookie ?

> but how do I send that id to a serlvet in

> a form?

> if the form looks something like this:

>

> > <form action="servlet/ServletName" method="post">

>

> how do I endcode the url?

> Thanks in advance.

First encode the URL , store the encoded URL in a variable and then specify the variable in the action field.

appy77a at 2007-7-12 19:16:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> > I'm still a little new to this

> > response.encodeRedirectURL thing. I know about

> > changing the link so that a session id is

> > attached...

>

> There are other ways to get the Session ID, have you

> tried setting a session cookie ?

>

> > but how do I send that id to a serlvet in

> > a form?

> > if the form looks something like this:

> >

> > > > <form action="servlet/ServletName" method="post">

> >

> > how do I endcode the url?

> > Thanks in advance.

>

> First encode the URL , store the encoded URL in a

> variable and then specify the variable in the action

> field.

'store the encoded URL in a

variable and then specify the variable in the action

field'

I assume you mean a hidden field....good idea....thx appy77!

uberallesa at 2007-7-12 19:16:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...