Hi All,
Is there any limitation in using request.getParameter()?
I am passing a value in the request object from JSP and when ever its a bit long, it truncates half of that.
Please help !!
There are indeed limitations when you use GET. The limitation is unspecified and depends on the webbrowser and the application server used. Generally the limitation lies around 255 characters for the query string (the part after the "?"). You need to use POST when you want to send more than only a few input values.
I am aware of the GET method having some limitations. We are using post method and the application is based on struts framework
But sometimes it truncates a part of the string
I think you should check the struts-config.xml file to check what is the 'scope' defnied in action mapping is it request or something else.
To debug you must first find if you are loosing the data cnsistently while doing request.getParameter or its happenning randomly. If its happening randomly then check the browser setting also.