Mark,
Please, correct me if I'm wrong, but I think the action attribute in
the html:form tag is a run time expression, so there's no need to
extend the FormTag class in order to use a dynamic form action.
Regards
Jose
Mark wrote:
I just wanted to pass on a tidbit that might help
No, its not a runtime expression.
If you look at the code in FormTag you'll see that its not
results.append(\ action=\);
results.append(response.encodeURL(RequestUtils.getActionMappingURL(action,
pageContext)));
results.append(\);
It simply pulls the action mapping
The code you've quoted has no impact on whether or not the html:form tag's
action attribute is an rtexpr. Look at struts-html.tld:
tag
nameform/name
tagclassorg.apache.struts.taglib.html.FormTag/tagclass
bodycontentJSP/bodycontent
attribute
nameaction/name
requiredtrue/required
All that means is you can have
mysimpleTag value=%=scripletVariable%/
false means you cannot have a scriplet variable as a value
That's not quite what i wanted to do, but in a way accomplishes a similar task without
modifying struts. Its not sexy enough for me ;)
The whole point of MVC is
Right, so you'd put the code to determine the appropriate value for the action
attribute in your action, not in a JSP expression. That value could be stored in
a request attribute and accessed simply as:
html:form action='%= request.getAttribute(formaction) %'
html-el:form might even let you do
thanks, good ideas
*** REPLY SEPARATOR ***
On 03/14/2003 at 10:24 AM Kris Schneider wrote:
Right, so you'd put the code to determine the appropriate value for the action
attribute in your action, not in a JSP expression. That value could be stored in
a request attribute and
I just wanted to pass on a tidbit that might help one or two people out there.
I have a search page that displays the results with checkboxes. There are two or
three different places that i use this same search page, so rather than writing or
copying the search results jsp page to several
We'll i kind of interested in trying your solution.
Can you post some jsp codes in here.
I think many people will appreciate it.
Thanks.
- Original Message -
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:52 AM
Subject: Dynamic form actions
I just
8 matches
Mail list logo