Hi,
On Sun, 20 Jun 1999, George P. Pipkin wrote:
GPP| I have a servlet that spits out a page that contains some .jthml links
GPP| in it.
If your _servlet_ spits out links, you should use
HttpServletResponse.encodeUrl() - it applies your current
HttpSession identifier as GET-parameter to the URL given.
JSSI aplies the GET-parameters to <A HREF=""> links in the _static_ part
of the page, if the Parameter was set coming on the page. If you want to
propagate your Apache JServ's session, give
org.apache.servlet.ssi.ParameterPropragatingSSI the init Argument
PropagateParameters=JServSessionId.
If the JServSessionId variable is given to the page
(http://foo.bar.org/mypage.jhtml?JServSessionId=xyz), all links in the
page are translated.
But you can propagate your own variables if you don't want to use the
servlet engines session handling. Say you want to propagate the variable
'gender', because you use it at various places, add this name to the init
arg of ParameterPropagatingSSI.
Make a simple form
--- example --
<form action='firstpage.jhtml'>
sex:<input name=gender type=radio value='M'>Male
<input name=gender type=radio value='F'>Female
</form>
---
.. and 'gender' is included in any Link provided through a *.jhtml file.
Hope this helps,
-hen
---
Henner Zeller [EMAIL PROTECTED]
PGP pub key [77F75B39]: finger [EMAIL PROTECTED]
If Microsoft is the answer, it must have been a VERY silly question.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]