Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Component Certification (OCEJWCD)
Mock exam question on encodeURL
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Which of the following is an example of URL rewriting by using encodeURL(
String
url)
1)
http://localhost:8080/servlet/play;jsessionid=56
2)
http://localhost:8080/servlet/play
3 )
http://localhost:8080/servlet/play?jsessionid=56
4 ) None of the above
The answer given is 1 and 2
Why is the third one wrong ?? Is it that encodeURL(..) is always going to use ; instead of ?
Thanks
Michael Ku
Ranch Hand
Posts: 510
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
the "?" denotes the start of the query string which has nothing to do with URL rewriting. Thaa is why it is not a correct answer
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
problem with struts-config.xml
Installing servlet
Problem in opening my Servlet in the browser...
encodeURL and encodeRedirectURL
How to set conf file file
More...