Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP, XSL, XML Question

Status
Not open for further replies.

acsooley

Programmer
Nov 13, 2002
32
0
0
CA
I would like to get the server address each time a page is loaded so I can test which path to include the xsl files from.

I have a jsp page that parses the xml and xsl files for output and can get the server address in jsp.
I have about 10 included xsl files in the first xsl file which loads when the first xsl is called. Since I am working on two different servers; and testing.something.com the paths to the xsl includes are different so I would like to test which server it is in the first xsl to do a choose to make sure the paths are right to the other xsl files.

Do anyone know a what to do this?


Adam
 
Pass it as a parameter? Don't know JSP, but I guess something like:
Code:
transformer.setParameter("firstParam","firstParamValue");

Jon

"There are 10 types of people in the world... those who understand binary and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top