Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 18966 invoked from network); 2 Jan 2003 20:25:19 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Jan 2003 20:25:19 -0000 Received: (qmail 472 invoked by uid 97); 2 Jan 2003 20:26:08 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 354 invoked by uid 97); 2 Jan 2003 20:26:07 -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 259 invoked by uid 98); 2 Jan 2003 20:26:07 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Thu, 02 Jan 2003 14:21:33 -0600 From: John Munsch Subject: Actions invoked by links have more flexibility than those driven by forms? To: struts-user@jakarta.apache.org Message-id: <1041538892.12348.65.camel@jmunsch.pdxinc.com> Organization: PDX, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Content-type: text/plain Content-transfer-encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N With an html:link I can embed a reference to a parameter or multiple parameters: Click Me Note that this will call whatever /test maps to with "?id=" after it. And if I create /test as a global forward and map that to some action mapping (e.g. /test points to /test.do) then an action gets called with either one or more parameters passed through to it. On the other hand, with html:form I don't seem to have the same functionality. I don't see a way to refer to a parameter or set of parameters in the html:form tag so that I can pass through parameters that way. So I pretty much have to pass through anything I want to send to an action invoked through a form using the ActionForm that it gets when it is called. My question is: Why? Since the action for the form is written into the HTML in much the same fashion as a link is written, why can't you make reference to one or even multiple parameters that you want to be written into that URL via the same mechanisms that are available through html:link? Why not: Or am I missing something completely? -- John Munsch PDX, Inc. -- To unsubscribe, e-mail: For additional commands, e-mail: