Re: Setting the action attribute for nested:form

2004-07-08 Thread Rick Reumann
On Thu, 08 Jul 2004 11:02:30 -0400, Vinuta Nagaraddi  
<[EMAIL PROTECTED]> wrote:

I am trying to set the action attribute for the nested:form tag
dynamically.  I want to achieve this by using a property called 'url'
from the form (or maybe someone can suggest a better way).  I was
unsuccessful using the nested:write tag. Any help would be appreciated.
Why can't you just do this in the Action before you get to the form?  
That's normally where I set up any action parameters. A general rule is to  
do as little logic as you have to in the JSP. Usually you can do this kind  
of stuff before you get to the JSP.

--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Setting the action attribute for nested:form

2004-07-08 Thread Bill Siggelkow
Hi Vinuta -- I noticed this is the second time you have posted this 
question. Usually if you don't get a response from the mailing list it 
indicates that you need to supply more information about your problem. 
Speaking for myself, I usually ignore posts that are unclear to me ... 
its not that I am rude -- I am simply don't have the time to respond to 
every post.

Okay, enough for the netiquette lecture :)
My first question is why are you trying to do this? There are times when 
you may need to dynamically change the action URL but it is typically 
the exception not the rule.

That being said, you can use a runtime expression to set the value for 
the action attribute -- so you should be able to do something like:



This reeks of ugliness, however, so I would avoid it if possible.
Vinuta Nagaraddi wrote:
Hello,
 
I am trying to set the action attribute for the nested:form tag
dynamically.  I want to achieve this by using a property called 'url'
from the form (or maybe someone can suggest a better way).  I was
unsuccessful using the nested:write tag. Any help would be appreciated.
 
Thanks,
Vinuta
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]