Now i know i might come out to be very silly at asking this. But I am a complete newbie to node.js and i have done some reading about node.js, and so much unstructured info on the internet has only confused me further.
I have a small web application with a database and back-end Java using Struts 2.0. Now i am thinking of using node.js.
I want to introduce a chat feature in my application. I believe using socket.io will be good for that purpose. However, i don't want to change my complete back-end, as that is working really well right now. I can also use websockets using jetty and all.
Will i have to let go of the Struts framework? and can node.js also have a struts similar implementation? My only aim is having layers of abstraction that Struts provide so well.
Struts2 is a java framwork running in a java serlvet contianer (e.g. Tomcat).
Node.js is a server side JavaScript environment which is used to implement web resources.
There are fundamental differences in how this two aproaches work. But you can implement any kind of web application with both of them. However there's no direct/easy way to mix the two.
If you already have Struts2 it's most likely a good idea to stick with it.