//File: index.html
Submitting Text Areas
Submitting Text Areas
//File: formAction.jsp
Reading Text Areas
Reading Text Areas
You typed:
<%
StringBuffer text = new StringBuffer(request.getParameter("textarea1"));
int loc = (new String(text)).indexOf('\n');
while(loc > 0){
text.replace(loc, loc+1, "
");
loc = (new String(text)).indexOf('\n');
}
out.println(text);
%>
SubmittingTextAreas.zip( 89 k)