You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Timothy Stewart <Ti...@ingenix.com> on 2003/10/23 22:06:48 UTC

Struts and Xdoclet

Anyone using struts with xdoclet.

I have the following form bean

import org.apache.struts.validator.ValidatorForm;

/**
 * @struts.form name="LoginForm"
 */
public class LoginForm extends ValidatorForm
{
	private String _userName;
  public LoginForm()
  {
    super();
  }

	public String getUserName()
	{
		return _userName;
	}

	/**
	 * 
 	 * @struts.validator type="required" msgkey="password.required" 
	 */
	public void setUserName(String string)
	{
		_userName = string;
	}
}

and I am using xdoclet task as such

<target name="strutsdoclet" description="Generates all the struts doclet
stuff">
  		<taskdef name="webdoclet"
      		classname="xdoclet.modules.web.WebDocletTask">
    		<classpath>
      			<path refid="build.path"/>
    		</classpath>
  		</taskdef>

  		<webdoclet destdir="WEB-INF"
    		   force="${xdoclet.force}"
      		   mergedir="merge">
    		<fileset dir="source"/>

    		<deploymentdescriptor validatexml="true"
                          distributable="false"
                          displayname="${app.name}"
                          mergedir="merge">
				<welcomefile file="login.jsp"/>

			</deploymentdescriptor>                          

    		<strutsconfigxml validatexml="true"
                      version="1.1"
                      mergedir="merge"/>

    		<strutsvalidationxml/>
  		</webdoclet>
	</target>

Running this task generates some information to the validation.xml and the
struts-config.xml.

but it doesn't put the formbean element for this form into the form-beans
section.
  <!-- ========== Form Bean Definitions ===================================
-->
  <form-beans>

  </form-beans>

What am I doing wrong????

Thanks,
Timmy




This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org