Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2008, 08:17 AM
Member
 
Join Date: Sep 2008
Posts: 18
Rep Power: 0
nn12 is on a distinguished road
Default 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
<cut value="${Value[1]}"/>
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retaining DB values as well as Dynamically generated Values.. Help Needed ! rajivjha Advanced Java 0 05-22-2008 10:53 AM
[SOLVED] Creating List of Values Using ClipBoard Object Judoon_Platoon Java Applets 2 05-21-2008 08:07 AM
Accessing boolean Values of another values in one class. a_iyer20 Advanced Java 4 04-15-2008 01:04 PM
Servlet Request Object JavaForums Java Blogs 0 08-04-2007 10:56 PM
Operator < cannot be applied to java.lang.Object, Object Albert Advanced Java 1 07-13-2007 03:19 PM


All times are GMT +2. The time now is 11:13 PM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org