Title: RE: passing parameters from jsp to servlet
Hi if you use method="post" (in the form) the character is illimited:
<form action="../servlet/yourservlet" method="post" id=form1 name=form1>
<input type="hidden" name="fieldName" value="value" >
</form>
 
have a look to the following method:
 
getParameter()
getParameterValues()
getParameterNames()
 
andrea
----- Original Message -----
Sent: Friday, April 05, 2002 2:16 PM
Subject: Re: passing parameters from jsp to servlet

 
Hi
 
 
 
 
    &field=Value --> This can be done only for HTTP get request.But the character you can send is limited to 255(I suppose so!)
   
    You can use hidden variables
                      <input type="hidden" name="fieldName" value="value" >
 
    If you feel the number of fields you have is considerably large, construct a comma separated value and pass it as hidden variable.
 
    I think I am reasonably right! Correct me , If I am wrong?
 
    Hope this helps.
 
    
 
Thanks & Regards
Balasubramaniyan Krithivasan
Software Engineer.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Generoso Almaraz
Sent: Friday, April 05, 2002 8:27 AM
To: [EMAIL PROTECTED]
Subject: Re: passing parameters from jsp to servlet

Hi,
what is the best way to catch all the request in a String? (all pairs field, value like &field=value&....)
thanks in advance.
Generoso.

Reply via email to