Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within XML
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:
XML and Related Technologies
how do you get request.getServerName value into xml variable
Tiffany Collins
Greenhorn
Posts: 6
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In
jsp
I use request.getServerName to get the URL where the files are running.
How do I get the same result into an XML variable?
Thanks!
Lasse Koskela
author
Posts: 11962
5
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How are you processing your XML? If you have an XSL transformation where you'd need to get a dynamic (variable) parameter into the resulting XML, you can use javax.xml.transform.Transformer#setParameter(
String
name, Object value)
Author of
Test Driven
(2007) and
Effective Unit Testing
(2013) [
Blog
] [
HowToAskQuestionsOnJavaRanch
]
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to get servername from a request but not the cluster name?
Losing Info after an &...
Tags Not Scriplet
server name
about response headers
More...