Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 1072 invoked from network); 23 Jul 2003 19:27:07 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 23 Jul 2003 19:27:07 -0000 Received: (qmail 15208 invoked by uid 97); 23 Jul 2003 19:29:44 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 15201 invoked from network); 23 Jul 2003 19:29:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 23 Jul 2003 19:29:44 -0000 Received: (qmail 95115 invoked by uid 500); 23 Jul 2003 19:25:29 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 95014 invoked from network); 23 Jul 2003 19:25:27 -0000 Received: from unknown (HELO acexch01.allconnect.com) (149.2.53.67) by daedalus.apache.org with SMTP; 23 Jul 2003 19:25:27 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Dynamic ActionMapping params Date: Wed, 23 Jul 2003 15:25:19 -0400 Message-ID: <87987CF34183B545B2AA0B6AA144906A700633@acexch01.allconnect.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Dynamic ActionMapping params Thread-Index: AcNRTZrJSd+aOB6ySju76gHoPtnK3gAAe2xw From: "Steve Caswell" To: "Struts Users Mailing List" , "Jim Kennedy" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The way I've solved this is to: - get the configured ActionForward from mapping.findFoward("BLA") - build a new path string using the path from the configured = ActionForward and the dynamic querystring - create a new instance of ActionForward - populate it with the new path and the other properties from the = configured ActionForward - return this new ActionForward May not be elegant, but it works for me. -----Original Message----- From: Jim Kennedy [mailto:jimk@gigaheads.com] Sent: Wednesday, July 23, 2003 3:03 PM To: struts-user@jakarta.apache.org Subject: Dynamic ActionMapping params I have created several sites that use the "mapping.findForward("BLA") = method to forward (or redirect) to a relative URL. This has always been = statically specified in my struts-config.xml like this: then in code I do: mapping.findForward("BLA"); //(simple stuff) Now I have a need to forward to a URL that will have dynamic parameters = like this: /main_layout.jsp?param1=3Dvalue¶m2=3Dvalue$param3=3Dvalue Not sure how to pull this off. Obviously I can't use a statically = defined forward definition. I guess I could put the params in the = request, which works fine if I forward, but what if I redirect. I would = have to put them in the session. Not clean coding in my opinion. I = would rather specify as querystring params. Anyone done this? I am using Struts v1.02 Jim Kennedy IT Consultant ----------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org