3 ms·
The OP asked why Java isn't used for the web. One of the more popular Java web frameworks heavily relies on XML. It has nothing to do with Java, but it has ever
by latch 14y ago
The OP asked why Java isn't used for the web. One of the more popular Java web frameworks heavily relies on XML. It has nothing to do with Java, but it has everything to do with what the OP asked about.
- mibbitier 14y agoWrite your own framework. It's actually not rocket science. You can have a pretty good Java web server going in about 200 lines of code. Just write a simple HTTP server in Java, and have it work as you want it to. Without XML...
- Silhouette 14y agoYou can have a pretty good Java web server going in about 200 lines of code. No, you can't. Your "simple HTTP server" proposal is roughly on a par with suggesting that a web developer should design his own security protocols. The idea is simple enough, but there is a lot of subtlety involved in covering all the edges cases properly, and a lot of very smart people have spent a lot of time building, testing and maintaining good tools for these jobs. Why would you reinvent the wheel, with a flat edge across part of it, a single spoke connecting to the axel, and in only one size that won't be the one that fits under the arch next week anyway?