Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

taglib and html problem

Posted on 2003-12-08
2
Medium Priority
?
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
kennethxu earned 500 total points
ID: 9898498
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
ID: 9898887
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 Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
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.

688 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