Hi,
i m trying to develop a very small application.. creating xml from a servlet...
i m trying this is wsad..

i have created an index.html which on action would call a servlet.

this is the peice of servlet code i have written:

public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String strUsername = null;
String strPswd = null;

System.out.println("here...");

if (((String) req.getParameter("txtUserName")).equals("Tanuja"))
{
try{

Element elName = DocumentHelper.createElement("user-name");
elName.setText("Tanuja");
System.out.println(elName.asXML());
}
catch(Exception e)
{
e.printStackTrace();
}
}
}

when i run this application,i get an error:

"[Servlet Error]-[org.dom4j.DocumentHelper]: java.lang.NoClassDefFoundError: org.dom4j.DocumentHelper"

i have actually included the dom4j-full.jar in the buildpath of the project.
but still i get this error.

I have tried to run the code in the try block as a simple java application and it worked.. but why doesn't it work with a servlet?
where did i go wrong?
plz help me out...

thanx in advance,
Tanuja