Thanks for your answer.  I think I understnd now, and it works very
nicely.  I have two additional questions - is that same session ID
available to 'included' servlets ?  Do you think it would be appropriate
(or are there plans) to include into the code a mechanism that would
verify the presence of a valid session ID (perhaps add a temnporary
session password for good measure)? This might be a good access-control
mechanism.

                        - George Pipkin

Henner Zeller wrote:
> 
> 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]

-- 
***************************************************************************************
George P. Pipkin                                     h - (804)-973-4086
1001 Emmet St.                                       w - (804)-924-1329
Carruthers Hall                                      fax -
(804)-982-2777
Charlottesville, Va. 22903                          
http://jm.acs.virginia.edu/~gpp8p/
***************************************************************************************


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to