I am using struts framework..all of a sudden it seems i miss the part of the servlet. because org.apache.struts.action.Action class seems to take the position of Servlet. If it is not correct, How to use Servlets in struts application. In which scenario i should go for the Servlets usage in Struts.
chetan agg wrote:In scenarios where you want to send an Ajax call, you can use servlet.
NOT necessary, you can handle AJAX calls with Struts action too.
Also, think from the "Controller" prospective, you'll just miss all the functionality provided by the Struts Controller. like action mapping, dispatch action, etc, One more, when you use the Servlets, you have to edit the "web.xml" for the servelet mapping entry, which is, not considered a good practice if you're uisng struts for not-so-special actions, like AJAX. Place all the action mapping in struts-config.xml
So you rarely need servelets in Struts, and that's why Strusts1 is designed to enhance servelets use..
i have to tell you that i am not good at J2EE, so you are taking about AJAX calls to servlet. I even confuse how to use servlets then how can i use AJAX in struts. If you can help your point through an example code, i might understand.