Hi,


in the struts-config file I have the following

            

<exception

                type="java.lang.Exception"

                
key="walid_trial_1_use_case.front.end.trial_1.submit_trigger.exception"

                
path="/org/andromda/samples/animalquiz/walid_trial_1/front-end-trial_1.jsp"

                scope="request" />



When an exception is thrown, the defult struts exception handler forwards 
control to the page front-end-trial_1.jsp which tries to render the form 
contents.



The problem is the form with name "form" is not found in Andromda generated 
code:



<html:text name="form" property="name" 
onmouseover="hints.show('walid_trial_1_use_case.front.end.trial_1.submit_trigger.param.name.title')"
 onmouseout="hints.hide()"  styleId="submit_triggerName"/>



When I removed the name="form", it runs correctly.

In another trial I changed the name to 
walid_trial_1_use_caseFrontEndTrial_1Submit_triggerForm like the following :



<html:text name="walid_trial_1_use_caseFrontEndTrial_1Submit_triggerForm" 
property="name" 
onmouseover="hints.show('walid_trial_1_use_case.front.end.trial_1.submit_trigger.param.name.title')"
 onmouseout="hints.hide()"  styleId="submit_triggerName"/>



and it runs successfully too.



The property "formName" of struts cartridge has the default value "form" and it 
is used for all apllication forms.



How can man generate the correct JSP code?

I think we need either the correct form name or to ommit the form name at all.



Note: I am using andromda-bin-3.1-M1



Thanks in advance.

Walid
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3619#3619
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to