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" %>
<title>Test Streaming</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<% String filename = "friend.avi";%>
<m:slides IPAddress  = "" port = "3336" type = "mixed" locator= "file:///C:/<%=filename%>"/>
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

it should be as:
<m:slides IPAddress  = "" port = "3336" type = "mixed" locator='<%="file:///C:/" + filename%>'/>

or this version is more easier to read:

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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahnuiAuthor Commented:
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  = "" port = "3336" type = "mixed" locator= "<%=fullPath%>"/>

but they works the same!!!! thanks again
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.