Solved

taglib and html problem

Posted on 2003-12-08
2
255 Views
Last Modified: 2013-11-24
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>
0
Comment
Question by:ahnui
2 Comments
 
LVL 14

Accepted Solution

by:
kennethxu earned 125 total points
Comment Utility
it should be as:
<m:slides IPAddress  = "172.20.106.85" port = "3336" type = "mixed" locator='<%="file:///C:/" + filename%>'/>

or this version is more easier to read:

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

0
 

Author Comment

by:ahnui
Comment Utility
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
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java Script nested call 3 52
post4 challenge 28 81
nested class vs inner class 5 45
Problem to start Neon 20 49
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now