• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

performance question

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
jonathan Greens
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you, that confirmed my view
reply
    Bookmark Topic Watch Topic
  • New Topic