Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 18th, 2003, 12:37 AM
Registered User
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kfarooq
Default how to pass multiple values throw url class object

how r u everybody.plz help me about, how to pass multiple values through url class. like if i want to pass user and password to a servlet from an applet.i will use url class object to call the servlet and how can i attach these two things with url and how can i deattach them from the url in my servlet.
waiting for ur kid help.
Old June 20th, 2003, 04:06 AM
Authorized User
Join Date: May 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts

To pass multiple values through URL class you can do this

URL ur = new URL("http://foo.com/myServlet?user_name=XYZ&pass=ABC");

and you can the parameters sent with the URL by writing this code

String str_name = request.getParameter("user_name");
String str_pass = request.getParameter("pass");

Hope this helps


Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass multiple values in one parameter yasinirshad Crystal Reports 0 June 3rd, 2008 02:58 AM
How to pass multiple values from Crystal Report to vanitha Crystal Reports 2 June 5th, 2007 07:48 AM
Pass multiple values to XSL? myhtpc XSLT 5 March 17th, 2006 11:16 AM
how to pass values between class modules ? yvon Beginning VB 6 1 December 7th, 2005 05:13 PM
Passing multiple values to a pass- through query donnie200 Access VBA 2 July 7th, 2005 04:00 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.