| Author |
passing parameter to a servlet
|
Delmiro Costa
Greenhorn
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
Marshal
Joined: Jan 10, 2002
Posts: 56173
|
|
|
Create a form with a hidden parameter for the string and submit it to the servlet.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Originally posted by Bear Bibeault: Create a form with a hidden parameter for the string and submit it to the servlet.
METHOD="POST"
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56173
|
|
|
Oh, yeah. Don't forget that. (Thanks Ben).
|
 |
 |
|
|
subject: passing parameter to a servlet
|
|
|