wood burning stoves 2.0*
The moose likes Servlets and the fly likes passing a url paramter to a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "passing a url paramter to a servlet" Watch "passing a url paramter to a servlet" New topic

passing a url paramter to a servlet

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
Is there a way to pass a url as a parameter to a servlet?

For example, if I post:

And then in my abc servlet:
String param1 = request.getParameter("param1");
String param2 = request.getParameter("param2");
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

Sure. But like any other data serving as a query parameter, it must be properly URL-encoded.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: passing a url paramter to a servlet
Similar Threads
how to start doing Ibatis samples
how can i develop reports in java
Good Link to start Servlet
Can u provide me this information
Beginner to Servlets