sorry, it's all my fault for not noticing the folder
structure which contains source files. it has odd
folder , named web, before the root source package;
yet no extra message print on console.
now i can see contents generated in the
struts-config.xml. and process to the next stage.
thanks your help, sincerely.
--- Erik Hatcher <[EMAIL PROTECTED]>
的訊息:> you have Struts JAR file in the <taskdef>
classpath
> for webdoclet? How
> about servlet.jar or j2ee.jar?
>
>
> On Tuesday, December 9, 2003, at 08:09 PM,
> <[EMAIL PROTECTED]> wrote:
>
> > hi mavens,
> > i'm currently learning how to use xdoclet to help
> me
> > to accomplish my project development easily, yet i
> > enounter some problem when generating
> > struts-config.xml and web.xml via webdoclet (i.e.,
> no
> > content generated in those config files).
> > there's no error occurred when performing ant
> command
> > (not yet package or even deploy). beside, my env
> > contains j2sdk1.4.1_01, ant 1.5.1.
> > i appreciate any suggestions, sincerely.
> > thank you very much
> >
> > ===============build============
> > <target name="webdoclet" depends="prepare">
> >
> > <webdoclet
> > destdir="${gen-src.dir}"
> > mergedir="parent-fake-to-debug"
> > excludedtags="@version,@author,@todo"
> > addedtags="@xdoclet-generated at
> ${TODAY},@copyright
> > The XDoclet Team,@author XDoclet,@version
> ${version}"
> > force="false"
> > verbose="true"
> >>
> >
> > <fileset dir="${src.java.dir}">
> > <include name="**/*Form.java"/>
> > <include name="**/*Action.java"/>
> > </fileset>
> >
> > <deploymentdescriptor
> > servletspec="2.3"
> > destdir="${web-inf.dir}"
> >>
> > <taglib uri="struts-bean"
> > location="/WEB-INF/struts-bean.tld"
> > />
> > <taglib uri="struts-html"
> > location="/WEB-INF/struts-html.tld"
> > />
> > <taglib uri="struts-logic"
> > location="/WEB-INF/struts-logic.tld"
> > />
> > <taglib uri="struts-nested"
> > location="/WEB-INF/struts-nested.tld"
> > />
> > <taglib uri="struts-tiles"
> > location="/WEB-INF/struts-tiles.tld"
> > />
> >
> > </deploymentdescriptor>
> >
> > <strutsconfigxml
> > destdir="${web-inf.dir}"
> > />
> > <jbosswebxml destdir="${web-inf.dir}"/>
> >
> > </webdoclet>
> > </target>
> > ==================Action========
> > package example.struts;
> >
> > import org.apache.struts.action.Action;
> > import org.apache.struts.action.ActionForm;
> > import org.apache.struts.action.ActionForward;
> > import org.apache.struts.action.ActionMapping;
> >
> > import javax.servlet.http.HttpServletRequest;
> > import javax.servlet.http.HttpServletResponse;
> >
> > /**
> > * @struts:action path="/whoami"
> > * name="NameForm"
> > * scope="request"
> > * input="/index.jsp"
> > * validate="false"
> > * @struts:action-forward name="success"
> > path="/WEB-INF/whoami.jsp"
> > */
> > public class WhoAmIAction extends Action {
> > public ActionForward execute(ActionMapping
> mapping,
> > ActionForm form,
> > HttpServletRequest request,
> > HttpServletResponse response)
> > throws Exception {
> >
> > NameForm nf = (NameForm) form;
> >
> > request.getSession().setAttribute("name",
> > nf.getFirstName() + " " + nf.getLastName());
> >
> > return mapping.findForward("success");
> > }
> > }
> > ============Form==========
> > package example.struts;
> >
> > import org.apache.struts.validator.ValidatorForm;
> >
> > /**
> > * @struts:form name="NameForm"
> > *
> > */
> > public class NameForm extends ValidatorForm {
> > private String firstName;
> > private String lastName;
> >
> > public String getFirstName() {
> > return firstName;
> > }
> >
> > /**
> > * @struts:validator type="required"
> > */
> > public void setFirstName(String firstName) {
> > this.firstName = firstName;
> > }
> >
> > public String getLastName() {
> > return lastName;
> > }
> >
> > public void setLastName(String lastName) {
> > this.lastName = lastName;
> > }
> > }
> >
> >
> >
>
-----------------------------------------------------------------
> > 每天都 Yahoo!奇摩
> > 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
> >
>
http://tw.promo.yahoo.com/mail_premium/stationery.html
> >
> >
> >
>
-------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback
> Program.
> > Does SourceForge.net help you be more productive?
> Does it
> > help you create better code? SHARE THE LOVE, and
> help us help
> > YOU! Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>
>
-------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback
> Program.
> Does SourceForge.net help you be more productive?
> Does it
> help you create better code? SHARE THE LOVE, and
> help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-----------------------------------------------------------------
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user