If you can set you form action in the embed tags you could set the value to
<html:rewrite page="/MyAction.do" />. If that doesn't just use /myapp/MyAction.do"
then in you action..
DynaActionForm theForm = (DynaActionForm) form; Map paramMap = request.getParameterMap();
Object[] keys = paramMap.keySet().toArray();
for(int i = o;i < keys.length;i++) {
String key = keys[i].toString();
String value = paramMap.get(key);
theForm.set(key,value);
}or with BeanUtils
BeanUtils.populate( theForm , paramMap);
Should work..
Cheers Mark
On Tuesday, August 26, 2003, at 11:19 AM, Adam Hardy wrote:
Hallo Yan,
I don't know the answer but I am very curious about combining Flash and Struts. Do you know if it is possible to program Flash to submit a form? I presume you write scripts that control the Flash plugin on the browser.
Regards Adam
On 08/26/2003 11:06 AM yan wrote:I have created a nav bar in Flash MX. One of the buttons on the Nav Bar
('Register') has the following Action Mapping in Struts:
<action path="/editRegistration"
type="struts.EditRegistrationAction"
name="RegisterForm"
scope="request"
validate="true"
<forward name="success" path="registration.jsp"/>
</action>
If I was to create the JSP without the Flash bit I would use this tag:
<html:link page="editRegistration.do?action=create"></html:link>
Also, for a submit button, the relevant JSP tag would go something like:
<html:form action="editRegistration.do" value="create">
</html:form>
What is the ActionScript equivalent of these 2 struts tags?
yan
Kickstart e Solutions. - Intelligent Web Services
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

