andy kumar wrote: I wanted to know which are the best ways to test other components of a JEE application like servlets, jsp, ejb.
andy kumar wrote:Also are there any other frameworks which are used to test a web app?
Yes - they extend JUnit. You need to decide whether you want to test from a real web browser. If so, Selenium Remote Control lets you write programmatic tests that will run in your real browser. If not, a library like jWebUnit can provide a "pretend" browser. You could also use a library like Canoo or Cactus.
I think the most important thing to do is make sure you decouple your logic from the web parts so you can test it independently (and faster.)