Apparently you can run a Java HTTP servlet engine on a smart card.

More...