It heavily depends on the way you set things up. Do you happen to refer to the SunONE webserver here? If so its easier if you specified a version as well.
Anyway, you can do several things. From using the webserver as some kind of "proxy" so that it forwards the requests to the application server from simply redirecting the client to the application server URL. Naturally the latter will only work if both reside on the same network and are directly accessible.
Otherwise you might want to look into http://docs.sun.com/source/819-0130/agcontnt.html#wp1017783