views:

218

answers:

1

The text area value I am trying to submit is around 400 chars and the value the servlet gets is null. When I limit this down to less that 75 chars the servlet will get the proper value. Has anyone seen this happen before?

JSP

<form action="/admin/homepageupdates">
   <div class="body">
      <textarea name="txtcontent" rows="7" cols="105"><%=hp.getBodyText()%></textarea>
   </div>
   <input type="submit" name="submit" id="submit" value="Update" />
</form>

Servlet

String textbody = (String)request.getParameter("txtcontent");
+4  A: 

You must use the POST method for any large amount of data (<form ... method="POST">) The GET method can only transfer a few bytes, depending on how much the browser and the web server allow in an URL.

Aaron Digulla