You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcello Savino <Ma...@aldebra.com> on 2006/09/07 09:11:34 UTC

Several action in a jsp

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Several action in a jsp

Posted by Michael Jouravlev <jm...@gmail.com>.
Of course you can.

On 9/7/06, Marcello Savino <Ma...@aldebra.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Several action in a jsp

Posted by Antonio Petrelli <br...@tariffenet.it>.
Marcello Savino ha scritto:
> In a struts jsp files can I have more form with different action defined
> ?
>   

Absolutely yes, but why do you ask?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Several action in a jsp

Posted by Manfred Wolff <wo...@manfred-wolff.de>.
-----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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

-----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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org