Yes you can populate one form with data from another form. Assuming both forms already exist in some scope add the attribute name="someBeanName" and it will take the property from that bean. That allows you to have form1 use fields pulled from beanA, beanB, it's own form, and more. I've used it before with the main form's properties plus one additional bean I had in session scope that I need to use in the form.
Regards, David -----Original Message----- From: Marcello Savino [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 3:25 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: R: Several action in a jsp You mean I cannot, for instance, populate fields in the form2 after acquiring data from form1 ? -----Messaggio originale----- Da: Manfred Wolff [mailto:[EMAIL PROTECTED] Inviato: giovedì 7 settembre 2006 9.18 A: Struts Users Mailing List Oggetto: Re: Several action in a jsp -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marcello! Of course you can. But only the values of the special form will be submitted and transport via the request. Otherwise you have to collect the values via javascript. Manfred Struts goes mobile. See http://www.strutsme.org Marcello Savino wrote: > In a struts jsp files can I have more form with different action defined > ? > I mean something like that > > <?xml version="1.0" encoding="UTF-8" ?> > <%@ page language="java" contentType="text/html; charset=UTF-8" > pageEncoding="UTF-8"%> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html:html locale="true"> > <head> > <body> > <html:form action="/action1"> > </html:form> > <html:form action="/action2"> > </html:form> > </body> > </html:html> > Thanks in advancee for reply > Marcello > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: GnuPT 2.7.2 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRP/HldokyUkhmcy6AQLN+wf/VXqfHM+cgR81StKIGjI2dxilofqUS5Jp OWlZf9EtvdxmIDZjYfWeu71TNcwZVDkw+68Kb6pht8Rwo4agPYdfwkUVIScg2ukC I0zk1MIE8qSb0V/gvb9i5/I7RZ7j6hTWqAqmGJ7uTBpFUCXq/dgXQLQSHab9HV3o AJaO2yB0L/LCrh4quJWk3JvecxFXaKMmWpzkS9ClfcxfYistYppjPXjj8+1EVHuX JNfmu1LTZ6moEEP9YSCqhOkPBXr1qN78A0bobfIoUrzHgi36SRvUouFx444tkJUN fqdvgx975200zE5FneW5x5w6X61O5P+7zS3LERRsqZPGBg1PldwQsQ== =4IeK -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]