facebook

struts-config.xml : cant edit autogenerated tags

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #223666 Reply

    cascaded
    Member

    i 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

    #223671 Reply

    Riyad Kalla
    Member

    Can 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.

    #223688 Reply

    Brian Fernandes
    Moderator

    Yes, 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.

    #223713 Reply

    cascaded
    Member

    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

    #223714 Reply

    cascaded
    Member

    @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

    #223715 Reply

    Riyad Kalla
    Member

    Can 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.

    #223871 Reply

    mchang
    Member

    I 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.

    #223873 Reply

    Riyad Kalla
    Member

    mchang, You could be having a different problem. What is the exact error and what does the line it is complaining about look like?

    #224087 Reply

    mchang
    Member

    There 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.

    #224088 Reply

    Riyad Kalla
    Member

    If 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.

    #224182 Reply

    mchang
    Member

    Thanks for clear this out. So what’s your suggestion for adding property or editing after the formbean was gererated in the first place.
    Thanks

    #224188 Reply

    Riyad Kalla
    Member

    So 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.

    #224473 Reply

    mchang
    Member

    Thanks. 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?

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: struts-config.xml : cant edit autogenerated tags

You must be logged in to post in the forum log in