Home
Forums
Programming
Web Development
Tutorials
Snippets
Blogs
Freelance
Jobs
Lounge
Login
Join for Free!
Programming Help
C and C++
Visual Basic
Java
VB.NET
C#
ASP.NET
PHP
ColdFusion
Perl and Python
Ruby
Databases
Other Languages
Game Programming
Software Development
Computer Science
Industry News
Web Development
Web Development
HTML & CSS
JavaScript
Graphic Design
Flash & ActionScript
Blogging
SEO & Advertising
Web Servers & Hosting
Site Check
What's Here?
Members:
150,031
Replies:
507,558
Topics:
80,011
Snippets:
2,668
Tutorials:
705
Total Online:
1,597
Members:
107
Guests:
1,490
[X]
My Assistant
Loading. Please Wait...
Dream.In.Code
>
Programming Help
>
Java
Welcome to Dream.In.Code
Become a Java Expert!
Join 150,031 Java Programmers for FREE!
Get instant access to thousands
of Java experts, tutorials, code snippets, and more! There are 1,597 people online right now.
Registration is fast and FREE...
Join Now!
Chat
LIVE
With a Java Expert
Getting the Requested URL
Getting the Requested URL
Options
gyanadipta_sahu@satyam.com
4 Jun, 2008 - 03:31 AM
Post
#1
New D.I.C Head
Joined:
3 Jun, 2008
Posts:
1
Hi
i am trying to get the requested Url in my servlet class with the below code:
String url=httpRequest.getRequestURI().toString();
But i am unable to retrive the complite URL as my input URL is
https://localhost:9080/ESM/Verif/ESMHome.do...amp;country=JPN
but uRl String parameter giving me only.
/ESM/Verif/ESMHome.do
can any one please help me how to retrive the complite url
https://localhost:9080/ESM/Verif/ESMHome.do...amp;country=JPN
This Post Was Helpful!
Register for Free to Make These Ads Go Away!
1lacca
RE: Getting The Requested URL
4 Jun, 2008 - 03:47 AM
Post
#2
code.rascal
Joined:
11 Aug, 2005
Posts:
3,822
Thanked:
12 times
My Contributions
use getRequestURL and getQueryString
or see HttpUtils.getRequestURL(javax.servlet.http.HttpServletRequest).
This Post Was Helpful!
Display Mode:
Standard
·
Switch to: Linear+
·
Switch to: Outline
Track this topic
·
Email this topic
·
Print this topic
·
Subscribe to this forum
Time is now: 1/8/09 09:37PM
Invision Power Board
v2.1.7 © 2009 IPS, Inc.
Licensed to: MediaGroup1
Advertising
|
Terms of Use
|
Privacy Policy
|
About Us
|
Site Map
Forum Index:
Programming Help
|
C and C++
|
Visual Basic
|
Java
|
VB.NET
|
C#
|
ASP.NET
|
PHP
|
ColdFusion
|
Perl and Python
|
Ruby
|
Databases
|
Other Languages
|
Game Programming
|
Software Development
|
Computer Science
|
Industry News
|
Programming Tutorials
|
C++ Tutorials
|
Visual Basic Tutorials
|
Java Tutorials
|
VB.NET Tutorials
|
C# Tutorials
|
Linux Tutorials
|
PHP Tutorials
|
ColdFusion Tutorials
|
Windows Tutorials
|
HTML/JavaScript Tutorials
|
CSS Tutorials
|
Flash Tutorials
|
Web Promotion Tutorials
|
Photoshop Tutorials
|
Software Development Tutorials
|
Database Tutorials
|
Other Language Tutorials
|
ASP.NET Tutorials
|
Copyright 2001-2008
MediaGroup1 LLC
, All Rights Reserved
A
MediaGroup1 LLC
Production - Version 6.0.2.1.36
Server: secure2
Search
Updated!
w00t
Over 509,000 Pages!
Advanced Forum Search
Be Social
Live Java Help!
Java Tutorials
Date Validation using SimpleDateFormat()
Java Quick Reference (Cheat Sheet)
Reading and writing to a file in java
Steganography
Hello World tutorial
Incredibly Easy Way to play Sounds
Step-by-Step JAVA games (Part 1)
Creating a calendar viewer application
Basic GUI Concepts
Exception Basics - Try Catch Finally
50 More Java Tutorials...
Reference Sheets
Java Snippets
Fibonacci series
Insertion Sort
Bubble Sort
File Output
Caesar Cipher Box (Encrypt/Decrpyt)
DecimalFormat
Drawing a shape
Fibonacci Sequence
3-Dimensional Square Demo
Collision Detection Object
206 More Java Snippets...
DIC Chatroom
Join our IRC Chat
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
girasquid
(75)
AdamSpeight2008
(75)
kryton46
(50)
Barnz
(50)
DillonSalsman
(50)
jacobjordan
(50)
~NJ
(25)
snoj
(25)
KYA
(25)
gothik12
(25)