Results 1 to 1 of 1
- 11-21-2008, 09:17 AM #1
Member
- Join Date
- Sep 2008
- Posts
- 85
- Rep Power
- 0
Need help in getting values from request object
Hi friends, I have a search form, which has many search fields like First Name, Last Name, Job title, Company, Exp etc etc. Users can enter any of the search field & click search.
Now from the request object I am able to retrieve all the values using the code below.
<% Enumeration E= request.getParameterNames();
while (E.hasMoreElements()){
String Name = (String) E.nextElement();
String [] Value = request.getParameterValues(Name);
System.out.println(Name);
for (int i=0; i< Value.length ;i++) {
System.out.println(Value[i]);
}
}
%>
But what I want is ..for example users enter any 3 fields on the form & clicks search..I want to the values of only these 3 fields..as I need to pass them to a report. I want to show the 3 values something like below
<c:out value="${Value[1]}"/>
Similar Threads
-
Operator < cannot be applied to java.lang.Object, Object
By Albert in forum Advanced JavaReplies: 2Last Post: 11-26-2010, 03:12 AM -
Retaining DB values as well as Dynamically generated Values.. Help Needed !
By rajivjha in forum Advanced JavaReplies: 0Last Post: 05-22-2008, 11:53 AM -
[SOLVED] Creating List of Values Using ClipBoard Object
By Judoon_Platoon in forum Java AppletsReplies: 2Last Post: 05-21-2008, 09:07 AM -
Accessing boolean Values of another values in one class.
By a_iyer20 in forum Advanced JavaReplies: 4Last Post: 04-15-2008, 02:04 PM
Bookmarks