what is the difference between servlets and struts?
Answer Posted / sandy
servlet is used to web based application.where as struts is
a framework it is easy to configure the validation part
comparing to servlet.
to built an web based application servlet take more amount
of time comparing struts.in struts we use action servlet
struts work under mvc architecture where servlet acts as a
controller part
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
What exception should be thrown when servlet is not properly initialized?
Explain get and post.
Can a jsp be called using a servlet?
What is the directory structure of a war file?
What is the difference between encodeRedirectUrl and encodeURL?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
What do you mean by web applications? Explain web application directory arrangement?
Explain the jar and war files in servlet?
What is servlet api used for conneting database?
What are the types of protocols supported by httpservlet ?
What is string tokenizer?
What is webservlet?
Explain Action Servlet?
explain the advantages of servlet life cycle?
What is a java servlet?