aspose file tools*
The moose likes Servlets and the fly likes Reuqest  object with so much data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Reuqest  object with so much data" Watch "Reuqest  object with so much data" New topic
Author

Reuqest object with so much data

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 413

Hi All,

I would like to ask whether a request object with so much data and getting that data from request object in JSP is a heavy process? If yes then which one will take less time. Using request object or using scriplets and call java methods from JSP? I know writing java stuff in JSP is not a good design but this application is quite old and we are not allowed to change anything . We are trying to make Minor changes to improve the performance.


Pawan Chopra
SCJP - DuMmIeS mInD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Any such changes will have no impact on performance.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 413

Thanks Bear, But can you please guide me what are the steps we should take to improve the performance we are also using Hibernate to fetch the data from DB.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Guessing won't do anyone any good. Get a profiling tool (no, I don't have a recommendation -- do some searching) and find out where the problems really are. Doing things like "maybe it'll be better if I use scriptlets" will not get you anywhere. Find out where the real problems are and then fix them.

P.S. 9 times out of 10, the database and queries run against it are the biggest performance hog in a web app.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reuqest object with so much data