This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes passing parameter to a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

passing parameter to a servlet

Delmiro Costa

Joined: Jul 24, 2005
Posts: 8
There is some other way to pass a large string to servlet, but not included in the url, today I have the following code:

http://localhost:8084/Home/Home?name=File&result=" + parameter.trim();

But the problem is the string parameter is too long, so I am getting an error.

I know this is a basic question, I am apologise, I am just a begginer on this matter.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60740

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please continue any discussion of this topic in your Servlets forum post.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: passing parameter to a servlet
Similar Threads
Servelt input paramter problem is value contains '+'
passing parameter to a servlet
not able to communicate to servlet
Netbeans Tomcat error
Web Service Test Fails Client Issues [Fatal Error] :-1:-1: Premature end of file