Re: Question on parameterizing action attribute to html:form

2004-07-19 Thread Rick Reumann
Andrey Rogov wrote: there is another way to work with parameter form:action. If you use Tiles in your applications create one reusable tiles lay with elements of design, control buttons and page control. In this case you can use the page with many forms. Then solution can be replaced with . Wh

Re[2]: Question on parameterizing action attribute to html:form

2004-07-18 Thread Andrey Rogov
Hi Rick, there is another way to work with parameter form:action. If you use Tiles in your applications create one reusable tiles lay with elements of design, control buttons and page control. In this case you can use the page with many forms. Then solution can be replaced with . What do you

Re: Question on parameterizing action attribute to html:form

2004-07-18 Thread Rick Reumann
Erik Weber wrote: if you have a single JSP that houses a form that is used for different commands (add, update), you are still going to need two separate form elements in validation.xml, causing redundancy (until "field inheritance" is implemented at least), correct? That is correct, although i

Re: Question on parameterizing action attribute to html:form

2004-07-18 Thread Erik Weber
Rick, thank you for your thoughtfulness and generosity. You made me realize that I can set the form action URI as a form bean attribute in my setup Action class, and then, instead of implementing a c:choose switch on a "command" request attribute in my JSP to set the form action URI, I can just

Re: Question on parameterizing action attribute to html:form

2004-07-17 Thread Rick Reumann
Erik Weber wrote: I found the answer. It is to use the struts-el html tag library instead of the standard html tag library, and then to refer to the variable using the expression language syntx: . . . Erik are you uisng one of the DispatchActions (regular DispatchAction, LookUpDipsatcchAction

Re: Question on parameterizing action attribute to html:form

2004-07-16 Thread Erik Weber
I found the answer. It is to use the struts-el html tag library instead of the standard html tag library, and then to refer to the variable using the expression language syntx: . . . Erik Weber wrote: I want to use c:choose to decide how to set the value of the action parameter in an html:for

Question on parameterizing action attribute to html:form

2004-07-16 Thread Erik Weber
I want to use c:choose to decide how to set the value of the action parameter in an html:form tag (add or update). How exactly do I refer to the variable that is set in the c:when and c:otherwise conditionals from within my html:action tag? The only thing I can think of that works is something