C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers


10,705 users

Why controller is a Servlet in struts?

+1 vote
asked by john Guru (27,140 points)

1 Answer

0 votes
We can take jsp as a controller but a controller need large amount of java code. Writing large amount of java code in the jsp is against to the software industry standard.
If we take a bean as controller then it should be trap the Http  request, but bean is unknown about the Http protocol, so a bean is not suitable for the controller.
Finally the servlet is taken as a controller.
answered by sara Guru (24,570 points)

Related questions

+1 vote
1 answer 22 views
0 votes
1 answer 55 views
0 votes
1 answer 26 views
0 votes
1 answer 15 views
15 views asked by keem Expert (13,240 points)