Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

TextArea Reading Problem

stricksstricks Member Posts: 33
I have a JSP that gets a user answer from differnt types of input fields. I have no problem getting the answers except from a textarea.

I get the answers like so:
[code]
// Get the last answer and store it into a temp string
userAnswer = request.getParameter("answers");

// Send that string to the session object
session.setAttribute("answers", userAnswer);

// Add the answer to the userAnswers List
userAnswers.add((String) session.getAttribute("answers"));
[/code]

That works for everything, except for a textarea. I forget if I either get a null or just blank value.

And yes, everything is named correctly, because i'll just change the field type and it will work, until i change it back to a textarea, but here's the code anyways.

[code]
else if(answerTypes[pageCount].equals("textarea")){
out.print("
");
}
[/code]
Thanks.

Sign In or Register to comment.