Re: Why would jsessionid not appear?
To follow up my last message: jsessionid is now being passed from index.jsp to my next form: CreateStakeholder.jsp. CreateStakeholder.jsp does not seem to recognize jsessionid when it is sent, and does not re-write the link tags. _ One important note: I am using a template to build createStakeholder.do (CreateStakeholder.jsp): The links in the template sub-forms are: html:link href=createStakeholder.do bean:message key =global.create/ /html:link _ Menu.jsp and Stakeholder_Links.jsp both do not add jsession id correctly into the html:link Is it possible that the sub-pages on the template are not acquiring the jsessionid request parameter correctly? Is there something I need to do with the template to make sure the html:link tag builds correctly? Thanks, Brian p.s. CreateStakeholder.jsp looks like this: %@ page language=java % %@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' % template:insert template='/includes/dneTemplate.jsp' template:put name='title' content='Create Stakeholder' direct ='true'/ template:put name='header' content='/includes/Header.htm'/ template:put name='menu' content='/includes/Menu.jsp'/ template:put name='topLinks' content ='/includes/Stakeholder_Links.jsp'/ template:put name='content' content ='/CreateStakeholder_Body_Formatted.jsp'/ template:put name='footer' content='/includes/Footer.htm'/ /template:insert Brian.Duchouquette@tran splace.com To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] 08/08/2001 10:54 AMcc: Please respond to Subject: Why would jsessionid not appear? struts-user My link is: html:link page=/createStakeholder.do?action=createbean:message key =index.createStakeholder//html:link it works, but the URL shows: http://localhost:8080/dne-struts/createStakeholder.do?action=create no jsessionid :( Any hints appreciated! Thanks, Brian Here's my action-mapping for that page: action path=/createStakeholder type=com.transplace.struts.action.CreateStakeholderAction name=StakeholderForm scope=session validate=true input=/CreateStakeholder.jsp forward name=success path=/index/ /action
Re: Why would jsessionid not appear?
The jsessionid path parameter will only be added if the servlet container does not know whether your client supports cookies. How Tomcat handles this (probably typical of others): * On the first response in a session, send the session id both ways (cookie and encoding). * If the subsequent request comes back with a cookie, turn of URL rewriting for the remainder of this session. * If the subsequent request comes back without a cookie, keep on rewriting. Craig On Wed, 8 Aug 2001 [EMAIL PROTECTED] wrote: My link is: html:link page=/createStakeholder.do?action=createbean:message key =index.createStakeholder//html:link it works, but the URL shows: http://localhost:8080/dne-struts/createStakeholder.do?action=create no jsessionid :( Any hints appreciated! Thanks, Brian Here's my action-mapping for that page: action path=/createStakeholder type=com.transplace.struts.action.CreateStakeholderAction name=StakeholderForm scope=session validate=true input=/CreateStakeholder.jsp forward name=success path=/index/ /action