Originally posted by jonathan Greens:
Are there any difference in performance between the following two scenarios?
1. creating and storing an attribute in the request in the action.execute() then use the attribute as a bean by struts from the jsp
2. creating the attribute store it in the request as scriplet in the jsp page, then use the attribute as a bean by struts from the jsp
Are these two procceses essentially the same?
thanks in advance
You are asking
1. use a
servlet to create and store an attribute to request
2. use a servlet to create and store an attribute to request
Performance-wise they look the same. But which is responsible for handling this, the Controller (Action) or the View (JSP)? More often than not, it belongs to the Controller.