- This topic has 6 replies, 3 voices, and was last updated 20 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
Dan MaherParticipantThis message has not been recovered.
Riyad KallaMemberCan 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 🙂
Dan MaherParticipant– 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-INFand the struts-config never shows up there. Help!
Dan MaherParticipantUhhh..I think I fixed it. I belive the preceding slash to WebRoot was throwing me off. Thanks anyway!
Riyad KallaMemberTry 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.
Ronald van KuijkMemberRiyad,
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.
Riyad KallaMemberI 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.
-
AuthorPosts