You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kate Fox <ka...@fraudwall.net> on 2007/11/27 23:12:14 UTC

dynamic form action

I have a lot of pages that have the same form fields included on them.
I would like this to be very simple and for it to be simple to add more 
pages like this.

I was thinking that I could have the form be embedded in the super class 
that all the pages implement, but I get an exception when I try to put 
in a dynamic value for the form action:

"According to TLD or attribute directive in tag file, attribute action 
does not accept any expressions"

Is there a better way to do what I want to accomplish?

Thanks,

Kate

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


Re: dynamic form action

Posted by Paul Benedict <pb...@apache.org>.
Kate,

You can embed forms but they must not be dynamic. I do this myself with 
good success.

Paul

Kate Fox wrote:
> I have a lot of pages that have the same form fields included on them.
> I would like this to be very simple and for it to be simple to add more 
> pages like this.
> 
> I was thinking that I could have the form be embedded in the super class 
> that all the pages implement, but I get an exception when I try to put 
> in a dynamic value for the form action:
> 
> "According to TLD or attribute directive in tag file, attribute action 
> does not accept any expressions"
> 
> Is there a better way to do what I want to accomplish?
> 
> Thanks,
> 
> Kate
> 
> ---------------------------------------------------------------------
> 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