A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
passing a url paramter to a servlet
Andy Hahn
Ranch Hand
Joined: Aug 31, 2004
Posts: 225
posted
May 29, 2007 14:21:00
0
Is there a way to pass a url as a parameter to a
servlet
?
For example, if I post:
http://www.mydomain.com/abc?param1=hello¶m2=http://www.google.com/search?hl=en&q=java&btnG=Google+Search
And then in my abc servlet:
String
param1 = request.getParameter("param1");
String param2 = request.getParameter("param2");
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56201
13
I like...
posted
May 29, 2007 15:09:00
0
Sure. But like any other data serving as a query parameter, it must be properly URL-encoded.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: passing a url paramter to a servlet
Similar Threads
Good Link to start Servlet
how to start doing Ibatis samples
Beginner to Servlets
Can u provide me this information
how can i develop reports in java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter