You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ne...@Oneaccount.com on 2005/09/07 12:30:52 UTC
bean:include starting new session depending on forwardPattern
I am using struts 1.2.7 with multiple modules on Tomcat 4. My JSP files are
shared between the modules hence there is a pagePattern set on the
controller - it is currently set to '$P'.
I have left forwardPattern as default because I only forward to tiles or
other actions, not directly to pages.
I am using <bean:include page="/view/head.jsp"> to include a JSP file
inside another. This finds the JSP ok but when that JSP is rendered it gets
a new session, separate from the session the calling page is in.
Specifying 'transaction="true"' appears to have no effect.
If I set the forwardPattern on the controller to the same as the
pagePattern - '$P' - the included JSP picks up the same session as the
calling page.
OK, but it breaks my forwarding to actions as the forwards are now not
module-relative.
So,
Why does forwardPattern have any impact on whether a JSP included by
bean:include shares the session with the calling page?
What can I do about it, whilst leaving forwardpattern as default?
Cheers
Neil
All telephone calls are recorded and may be monitored.
E-mail communication is not secure and may be intercepted by a third
party.
This message is confidential to the intended addressee. If you are not the
intended addressee, please inform us immediately and then delete this
message. The One account Ltd does not accept responsibility for changes
made to this message after it was sent. Although The One account Ltd
believes this
e-mail is free of any virus or other defect which may affect a computer,
it is the responsibility of the recipient to ensure that it is virus free
and The One account Ltd does not accept any responsibility for any loss or
damage arising from its use.
The One account is a secured personal bank account with The Royal Bank of
Scotland plc and is administered by The One account Ltd.
The One account Ltd is an appointed representative of The Royal Bank of Scotland plc
which is authorised and regulated by the Financial Services Authority.
'The One account', 'One account', 'Make one day today' and the associated
logos are trademarks of The One account Ltd.
Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH,UK.
Registered in England no 3414708.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org