Solved

Java Servlets : getParameterValues(String) into an Array

Posted on 2001-06-21
5
896 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

705 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