Eliza Mehta 0 Newbie Poster

Hi All,

I have some Services which are deployed in IBM Application Server.I have a Jsp Page which displays the list of all the Services deployed on that Server.All the Services deployed come as links.My requirement is that when i Click on any of the Link of the Service, it should redirect me to the StyleSheet of that Service.


StyleSheet is kept at location - http://nc1xpmid01.dummy.com:12345/"+serviceName+"/Stylesheet/"+styleSheetName;

this is working fine.But the issue is that for some Services StyleSheet is kept at StyleSheet Folder but for others it is kept in StyleSheets Folder.

Can i have a code something like that if it is not in StyleSheet Folder then go and check in StyleSheets Folder.

Here is the Current Code -

<%@ page language="java"%>
<%    
String serviceName = request.getParameter("name");
String styleSheetName = request.getParameter("action");

String url = "http://nc1xpmid01.bankofamerica.com:21460/"+serviceName+"/Stylesheet/"+styleSheetName;
%>
<html>
<head>
<script type="text/javascript">
function loadPage()
{
	location.href = "<%=url%>" ; 
}
</script>
</head>
<body onLoad="javascript:loadPage()">
</body>
</html>

Can anyone please help me on this.This is required urgently..

Thanks in Advance!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.