Can doGet method send more than 255/1024 charcter
843840Jul 30 2008 — edited Aug 2 2008Hello
i able to send *" 2083'* charcter using doGet method..
but it was in my mind that only 255 char/1024 can be send only and rest of char will be terminated.
could someone explain why i able to send *2083 char*
it new number of charecter we can send through doGet method
this is my jsp page
{code}<form name="testFRM" action="Test1.jsp" >
<textarea cols="100" rows="16" name="ta">
In doGet Method the parameters are appended to the URL and sent along with header information In doPost, parameters are sent in separate line in the body
Maximum size of data that can be sent using doget is 240 bytes There is no maximum size for data
Parameters are not encrypted Parameters are encrypted
DoGet method generally is used to query or to get some information from the server Dopost is generally used to update or post some information to the server
DoGet is faster if we set the response content length since the same connection is used. Thus increasing the performance DoPost is slower compared to doGet since doPost does not write the content length
DoGet should be idempotent. i.e. doget should be able to be repeated safely many times This method does not need to be idempotent. Operations requested through POST can have side effects for which the user can be held accountable, for example, updating stored data or buying items online.
DoGet should be safe without any side effects for which user is held responsible This method does not need to be either safe What is the difference between the doGet and doPost methods?
When you invoke a Servlet, the servlet engine passes the information on to the Servlets service() method. This method determines the type of request made (GET, POST, HEAD, ...) and calls the function doTYPE, like doGet, doPost. GET and POST just differ in the way form data is sent from the browser to the server. The method doGet handles data that has been attached to the url in the form url questionmark (name=value ampersand)+. Typically in a CGI you would have to read the environment variable QUERY_STRING to get this string of concatenated parameternames and values. With the doPost method, form data comes in through standard input stream, a cgi would just need to open the input stream and read until EOF to get the form data.
In doGet Method the parameters are appended to the URL and sent along with header information In doPost, parameters are sent in separate line in the body Maximum siz e of data that can be sent using doget is 240 bytes There is no maximum size for data Parameters are not encrypted Parameters are encrypted DoGet method generally is used to query or to get some information from the server Dopost is generally used to update or post some information to the server DoGet is faster if we set the response content length since the same connection is used. Thus increasing the performance DoPost is slower compared to doGet since doPost does not write the content length DoGet should be idempotent. i.e. doget should be able to be repeated safely many times This method does not need to be idempotent. Operations requested through POST can have side effects for which the user can be held accountable, for example, updating stored data or buying items online. DoGet should be safe without any side effects for which user is held responsible This method does not need to be either safe What is the difference between the doGet and doPost methods? When you invoke a Servlet, the servlet engine passes the information on to the Servlets service() method. This method determines the type of request made (GET, POST, HEAD, ...) and calls the function doTYPE, like doGet, doPost. GET and POST just differ in the way form data is sent from the browser to the server. The method doGet handles data that has been attached to the url in the form url questionmark (name=value ampersand)+. Typically in a CGI you would have to read the environment variable QUERY_STRING to get this string of concatenated parameternames and values. With the doPost method, form data comes in through standard input stream, a cgi would just need to open the input stream and read until EOF to get the form data. DoGet DoPost In doGet Method the parameters are appended to the URL
anand shekhar </textarea>
<input type="submit">
</form>{code}
*********************************************************************************
********************************************************************************
*This is what i worte in jsp file Test1.jsp*
{code} out.println("........"+request.getParameter("ta"));{code}