HttpUnit

i am beginner to httpUnit can anyone please help me how can i start with simple examples like clicking on a link given in a web page, filling the form and subitting
[171 byte] By [hansera] at [2007-10-2 0:24:56]
# 1
So what's wrong with the tutorial or cookbook? http://httpunit.sourceforge.net/doc/tutorial/index.html http://httpunit.sourceforge.net/doc/cookbook.html
cknelsena at 2007-7-15 16:39:06 > top of Java-index,Administration Tools,Sun Connection...
# 2

WebConversation wc = new WebConversation();

WebRequest req =

new GetMethodWebRequest("http://localhost:8080/easyuploader/login.jsp");

System.out.println("afterweb request");

WebResponse resp = wc.getResponse(req);

System.out.println("after web response");

WebForm form = resp.getFormWithName("LoginForm");

resp = wc.getCurrentPage();

assertEquals("User Name", resp.getTitle());

For this code I am getting exception as

afterweb request

java.lang.reflect.InvocationTargetException

Is this the right code to get the details abt Login page?

I am running this program as run->Junit Test in Eclipse

Can u explaing why I am getting like this?

Aksharaa at 2007-7-15 16:39:06 > top of Java-index,Administration Tools,Sun Connection...