request Attribute

Hi.

Could anyone tell me what happens behind the scenes when the request attribute is set in a JSP.? ie how is it handled when a heavy object is set in the request and what is the consequence basicaly the performance hitch etc etc..

Also request.set should be placed inside the form right? just to clarify.....

[329 byte] By [venksrira] at [2007-10-3 0:53:06]
# 1

a "request" is actually part of the HTTP protocol and is a combination of plain text and binary (depending on what was transferred between the browser and the webserver). Such a request can contain form fields, file uploads (in case of a multipart request), cookies and request headers. The HttpServletRequest parses the complete HTTP request. So the bigger the content of the HTTP request, the longer it will take to parse it and the more memory it will use, but that's only logical.

> Also request.set should be placed inside the form right?

html form fields need to be placed inside a form, this has nothing to do with the request object because there is no relation between the HTML content (client) and the java code (server), except that the java code will generate said content.

gimbal2a at 2007-7-14 17:48:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> Also request.set should be placed inside the form right?

>html form fields need to be placed inside a form, this has nothing to >do with the request object because there is no relation between the >HTML content (client) and the java code (server), except that the java >code will generate said content.

In the submitting page shld the request.setAttribute placed inside the form so as to get the attribute data in the target page? or apart from form parameter the request attribute can be obtained in the target page inspite of setting the request.setAttribute outside the form?

Pls clarify

venksrira at 2007-7-14 17:48:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...