facebook

Confused about struts-config.xml and xdoclet [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #206923 Reply

    Dan Maher
    Participant

    This message has not been recovered.

    #206958 Reply

    Riyad Kalla
    Member

    Can you answer the questions we ask for in the posting guidelines so we get a better idea of what software/versions you are using (TIP: Hit “Post Reply” then hit “Insert” and answer those questions).

    Also I wasn’t quite clear when you said:

    changes to the action class’s struts xdoclet tags don’t affect the struts-config.xml at all unless I add the xdoclet support to the project

    Which would suggest to me that you got it working, but then below said:

    but the xdoclet step does not seem to update my struts-config.xml. Help please!

    Can you clarify what your setup is, what you are trying to do, and what isn’t working?

    As far as needing to add XDoclet support to the project, this is required because XDoclet processing is part of the build process, which means it will occur when you build your project. If you don’t add XDoclet support, then the builder doesn’t know to process the XDoclet tags and you never get anything XDoclet related happening. That’s the 10-second gist of it 🙂

    #206959 Reply

    Dan Maher
    Participant

    – System Setup ——————————-
    Operating System and version: xp profession 2002 sp1
    Eclipse version: Version: 3.0.0
    Build id: 200403261517
    Fresh Eclipse install (y/n): Y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins: JFaceJDBC
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 0
    MyEclipse version: Version: 3.7.2
    Build id: 200404091200-3.7.2GA
    Eclipse JDK version: 1.4.02
    Application Server JDK version: 1.4.02
    Are there any exceptions in the Eclipse log file? no

    – Message Body ——————————-

    Don’t mean to sound grumpy. I like the product a lot. 🙂

    The problem I am finding is that when I add MyEclipse/XDoclet/Standard Web/strutsconfigxml to my web project, the config gets generated just fine in my src directory only.

    However, I would instead like it to be placed in the WebRoot/WEB-INF directory which happens to be where the original struts-config was placed. I’ve tried 2 variants in the dest-dir property:

    WebRoot/WEB-INF
    ../WebRoot/WEB-INF

    and the struts-config never shows up there. Help!

    #206960 Reply

    Dan Maher
    Participant

    Uhhh..I think I fixed it. I belive the preceding slash to WebRoot was throwing me off. Thanks anyway!

    #206961 Reply

    Riyad Kalla
    Member

    Try and open your xdoclet file, and use an absolute path for the dest-dir, not just a relative one, so for example:

    c:\projects\myweb\WebRoot\WEB-INF

    or whatever applies to your system.

    #207447 Reply

    Riyad,

    I hope you meant this as an experiment or a workaround, right? Not as a solution? In our situation with different os’es, drives etc this would not work.

    #207453 Reply

    Riyad Kalla
    Member

    I hope you meant this as an experiment or a workaround, right? Not as a solution? In our situation with different os’es, drives etc this would not work.

    Yes definately a workaround, you are correct this will fail miserably on other platforms.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Confused about struts-config.xml and xdoclet [Closed]

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