Main reasons for using servlet as a controller in struts.
why not jsp

Answer Posted / rajesh r

As per the Jsp spec we should limit the scriptlets usage.

and Jsp is designed for presentation(VIew) part based on
these points it is not recommended to use Jsp as a
Controller.

Regards
Rajesh

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of lookupdispatchaction?

743


What is meant by custom tags?

736


What is the purpose of @expressionvalidator annotation?

783


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

683


What are the 5 constants of action interface?

759


How is declarative handling of exceptions done in struts ?

669


What are the pros of struts 2?

731


How the exceptions are handled in struts?

734


What are action classes in struts?

697


How do you convert struts to springs?

755


What are the various struts tag libraries?

716


Explain about the validation steps which have to be carried during validation of client-side address?

730


What is struts2 namespace?

678


Does apache struts run on windows?

734


Where can I get help with struts?

750