Link to home
Start Free TrialLog in
Avatar of ahnui
ahnui

asked on

taglib and html problem

Hello everyone, below is a test.jsp coding, in the locator portion, i tried to incorporate a jsp string below to make my file name  dynamic but keeping the "file///:C:/" potion static. how can i do that? i tried the coding below and the error given is file not found. How can i slove that? Thanks a lot.

<%@ taglib uri = "http://coyote/taglibs" prefix="m" %>
<html>
<head>
<title>Test Streaming</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<H2>Streaming</H2>
<% String filename = "friend.avi";%>
<m:slides IPAddress  = "172.20.106.85" port = "3336" type = "mixed" locator= "file:///C:/<%=filename%>"/>
<FORM METHOD = GET ACTION = main.jsp><INPUT TYPE = SUBMIT NAME= ACTION VALUE = "Next"></FORM>
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of kennethxu
kennethxu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ahnui
ahnui

ASKER

thanks kennethxu,

i managed to think of the solution along that line too....what i have was

<% String fullPath = "file:///C:/" + filename; %>
<m:slides IPAddress  = "172.20.106.85" port = "3336" type = "mixed" locator= "<%=fullPath%>"/>

but they works the same!!!! thanks again