I am developing a website , under which online test facility is to be provided.
I had developed the test interface in Applet and swing.

I am planning to do this:

1) Fetch questions from the database.
2) Create xml of those question
3) bind that sml into the jar along with applet
4) then that applet is to run test.
5) when test will finish the users answer is to set in to the same xml and then return to server
for processing result.

is this process is fine .If not can anyone please suggest me some other way.