facebook

Struts and XDoclet [Closed]

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

    I have the xdoclet for web and the xdoclet for hibernate working, however I cannot seem to get the struts xdoclet working. I have configured the code completion in the “Windows/Preferences/MyEclipse/XDoclet…” area, but when I try to go to the project properties and add an XDoclet configuration, the Struts XDoclet Standard configuration is not available…

    Is there a place to download this and add it or is it part of the MyEclipse integration or what?

    Thanks for your help in advance.

    Stephen McConnelll

    You are either part of the problem or part of the solution…
    Or maybe a precipatant or collodial suspension.
    – Lamar Stephens

    #219997 Reply

    Ok…

    I figured it out……

    In the Project/Properties dialog, under MyEclipse-XDoclet, one finds the place to define your XDoclet configurations available. If one has added and selected the “Add Standard” => “Standard Web” then the pane below shows a “WebDoclet” configuration. Right Clicking that will produce a menu that has “Add”…. Click that and select “strutsconfigxml” and “strutsvalidationxml” and then one has added the struts XDoclet to the project. Runs like a champ.

    I’m trying to be part of the solution…

    But second question…. All the config files for hibernate.cfg.xml, the web.xml and my struts-config.xml files all come out in the <project>/src directory. I want to put them under <project>/WEB-INF directory. How do I get them to deploy automagically there?

    Stephen McConnell

    Boredom is a personal defect.

    #220004 Reply

    Riyad Kalla
    Member

    I’m trying to be part of the solution…

    You are, that information is very helpful, thank you.

    All the config files for hibernate.cfg.xml, the web.xml and my struts-config.xml files all come out in the <project>/src directory. I want to put them under <project>/WEB-INF directory. How do I get them to deploy automagically there?

    You need to adjust the ‘destDir’ of the subdoclets that you added. Look in the properties pane in the right panel next to your subdoclets.

    #220006 Reply

    Running into another problem. I need to define the “merge directory”…

    I’m defining it in the Properties of the subdoclet that I added. However, I’m probably using the wrong path….

    Lets say my project is “portal” and I want to define the struts-messages-resources.xml file under the WEB-INF/config folder

    Should it be

    “/portal/WebRoot/WEB-INF/config”

    or something different defining it from the “root” directory of the system?
    Thanks for the quick reply….

    Stephen McConnell

    (There are SOO many neat things to find in MyEclipse)

    #220007 Reply

    Well, I answered that one, too. Play around with something enough and you will answer it.

    The mergeDir should be something like

    “WebRoot/WEB-INF/config”

    One doesn’t need the leading “/” if one is running XDoclet from within the MyEclipse Project.

    Man, does this lead to some interesting possibilites….

    Stephen McConnell

    Toto, I don’t think we’re in Kansas anymore

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Struts and XDoclet [Closed]

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