Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 3046 invoked by uid 500); 28 Aug 2001 12:30:34 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 3023 invoked from network); 28 Aug 2001 12:30:33 -0000 Received: from portal.uk.saic.com (HELO saicuunet.uk.saic.com) (194.131.227.2) by daedalus.apache.org with SMTP; 28 Aug 2001 12:30:33 -0000 Received: from [172.24.16.13] by saicuunet.uk.saic.com via smtpd (for daedalus.apache.org [64.125.133.20]) with SMTP; 28 Aug 2001 12:30:33 UT Received: by uk-gat-exs01.ds-s.com with Internet Mail Service (5.5.2650.21) id ; Tue, 28 Aug 2001 13:28:19 +0100 Message-ID: <7F4F675CE892D3119FD200508B61B21401E4FCAB@uk-gat-exs01.ds-s.com> From: "Prior, Simon" To: "'struts-user@jakarta.apache.org'" Subject: JSP:Include and struts Date: Tue, 28 Aug 2001 13:28:18 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Guys, I have a question which seems to me to be a common thing to do with websites but wondered how you guys did it with struts. Basically, I want to inlude a navigation menu in my jsps that will be present on every page in the site. >From this navigation menu I want to be able to go via struts to prepare information for and consequently display the relevant jsp according to the users selection. To do this I will need an action form and have it interrogated by an action in the usual struts manner. My question is this, if the navigation menu is present on every page how do I distinguish which action and action form to go to? If a submittable page is displayed (with the navigation menu above it obviously) and is submitted it will have its own action form and action which won't handle the navigation options. I don't want to have code in each action form throughout the site to deal with the navigation menu but at the minute I am unsure how to proceed. One option is to have a separate action form for the navigation bar and one each for the pages displayed underneath it. Hope this made some sort of sense! Any thoughts? Thanks in advance, Simon. For optimum solutions that save you time, visit www.ds-s.com.