Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic