- This topic has 12 replies, 4 voices, and was last updated 19 years, 11 months ago by mchang.
-
AuthorPosts
-
cascadedMemberi tried the struts-example, created a action-mapping,
but if i want to edit the generated action,
i got the errormessage
>>Inavlid XML detected! Please validate XML source and correct all XML validation errors<<
also design-view don’t work perhaps for the same reason
Riyad KallaMemberCan you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
Brian FernandesModeratorYes, you won’t be able to use the design view if the source has validation errors.
A brief recount of the steps that lead you to the problem would be helpful. The struts source editor will annotation the lines on which errors have been detected, please examine and correct them before proceeding with other wizards. It is possible that you have incorrectly modified the source after it has been generated with an earlier wizard.
cascadedMemberinstalled (copied) eclipse 3.0.1 in a new directory
installed myeclipseide again with tthis new eclipse.directory
followed step by step the Struts Development Demo
created a new web J2EE/web Project
add Struts Capabilities
add New Form, Action Abd JSP
<action-mappings> and <form-beans> were created
but on Outline a can’t edit, delete
in Design-View i dont see anything (perhaps for the same reason)if i generate something in Outline-View with the Dialogs tags (they look quite good) where created in struts-config.xml but i cant delete or edit them again
thx for answer
franz
cascadedMember@cascaded wrote:
installed (copied) eclipse 3.0.1 in a new directory
installed myeclipseide again with tthis new eclipse.directory
followed step by step the Struts Development Demo
created a new web J2EE/web Project
add Struts Capabilities
add New Form, Action Abd JSP
<action-mappings> and <form-beans> were created
but on Outline a can’t edit, delete
in Design-View i dont see anything (perhaps for the same reason)if i generate something in Outline-View with the Dialogs, tags (they look quite good) where created in struts-config.xml but i cant delete or edit them again
thx for answer
franz
Riyad KallaMemberCan you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
mchangMemberI have the same probrem as franz described here. I tried to add property by opening the existing formbean but add bottom of property won’t enabled, so I try manaually add as the demo shown <form-property name=…./> then the validation complain about the tag itself.
Riyad KallaMembermchang, You could be having a different problem. What is the exact error and what does the line it is complaining about look like?
mchangMemberThere is no error showing after I do following:
I right clik on the loginForm and choose edit.
toggle the Form bean Impe button to existing formbean, then the edit button is enable but there is no prperty displaying since initiallly I don’t have any property set. But the add button is disable so I couldn’t add to it.
If use the default setting which is new formbean and will be able to add a property but after click finis there is nothing adding in the struts-config file.
Thanks for your help.
Riyad KallaMemberIf you are just asking about the disabled Edit button, this is a known limitation because adding properties after the form exists would require code refactoring to be part of the wizard, which it currently is not. This is however an open enhancement we hope to address in the future.
mchangMemberThanks for clear this out. So what’s your suggestion for adding property or editing after the formbean was gererated in the first place.
Thanks
Riyad KallaMemberSo what’s your suggestion for adding property or editing after the formbean was gererated in the first place.
The properties do not need to be enumerated in the struts-config.xml file IF your Form extends ActionForm, then just add the new property to the class and leave your form bean definition like this:
<form-bean name=”” class=”” />The only reason form-bean supports the property sub tags is if you are using a DynaActionForm in which case you need to define the property names so Struts knows which values to populate.
mchangMemberThanks. I got another question which is about JAXP. I didn’t see much discussion in the forum. Since I’m new in JAXP. I used to use MSXML parser. So is there any compliant issue when I develop Struts,JSP in ME environement. Do I have to manually download a certain version of JAXP in order to use in ME project?
-
AuthorPosts