File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes HttpServletRequest parameter vs attributes ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpServletRequest parameter vs attributes ?" Watch "HttpServletRequest parameter vs attributes ?" New topic

HttpServletRequest parameter vs attributes ?

Aby Shaikh

Joined: Jul 29, 2010
Posts: 1
Hi All,

We have a ERP system in place, I am writing a framework to integrate this ERP with Ajax, my question is the flow in the existing system happens by passing the data in parameter from html form, but I had to take all this parameters from HttpServletRequest and set it in as request attributes, so will take affect in performance ? I think after done with the processing I should remove all the attributes ?

Also I had to forward all the incoming request to my custom servlet which in turn will send response to ajax client, will this degrade performance ?

David Newton

Joined: Sep 29, 2008
Posts: 12617

Welcome to JavaRanch!

But... after the request is made, the request is gone. There would be nothing to remove the attributes from.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63862

Performance will not be affected by these minute actions. Worry about performance when and if it becomes an issue.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: HttpServletRequest parameter vs attributes ?
It's not a secret anymore!