Solved

Java Servlets : getParameterValues(String) into an Array

Posted on 2001-06-21
5
884 Views
Last Modified: 2013-11-24
Do we have any contraint on the max limit the values which can be taken into an Array with this method.
I am having a screen where a user can check the items and download into excel.When the no of records are exceeding more than 200 (its not exact figure , i am giving this number randomly) then I am not able to get any values with getParameterValues.I am getting null values with this.This is working fine when the no of records are less.

0
Comment
Question by:baddamj
5 Comments
 
LVL 2

Accepted Solution

by:
vpadma earned 200 total points
ID: 6215045
Hi
It depends whether you are trying to get the parameter passed in the get method or post method. In GET (subsequently doGet()), some servers limit the total length of the string to 240 characters.
Whereas POST method has unlimited number of parameters that can be passed.
Padma.
0
 

Expert Comment

by:Nachiap
ID: 6215854
yeap what padma says is correct,Actually there is no such limit for this method..
check out this first...if it is doGet change to doPost..
& are you creating any hidden values dynamically in same name..& doing request.getParameter in server side...
if you can place the required code..
0
 

Expert Comment

by:CleanupPing
ID: 9062021
baddamj:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 9253881
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


[points to vpadma]


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0
 

Author Comment

by:baddamj
ID: 9266107
hi Sudhakar,
Can you award points to vpadma?
Although this didn't solve my problem, I would like to
thank them for sparing their time.

Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now