Sounds like 3-tier architecture ;)
assume server can talk to DB. why can't you use something like URLConnection to talk to server?
alternatively you can implement web components in server and client can use any browser. or may be some other way...
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com