POSTing to jsp

I can't read data, that were sent via POST method to jsp page, with jsp's request variable.

Is there a difference between jsp's request variable and servlet's one?

...

InputStream in = request.getInputStream();

BufferedReader reader = new BufferedReader(new InputStreamReader(in));

String line = reader.readLine();

...

This code works fine in servlets but gives nothing in jsp

[438 byte] By [klaka] at [2007-9-26 3:28:48]
# 1
Why don't you use the method meant for that purpose namely javax.servlet.ServletRequest.getParameter(String parameterName) ?
neville_sequeira at 2007-6-29 11:52:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

The thing is, I'm sending xml file to jsp page, as a part of jsp(or servlet) to jsp communication.

But I think I have found the answer on an earlier topic.

As someone said there, the problem is probably in Tomcat which I'm using, too.

So I'll use a servlet to accept data and then forward the request to jsp page. I'll send xml file as a String (or JDOM Document) to jsp as request attribute.

klaka at 2007-6-29 11:52:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...