Solved

How to incorporate jsp code into html

Posted on 2003-12-03
4
292 Views
Last Modified: 2013-11-24
Dear all, below is test.jsp coding, under the
<m:slides IPAddress  = "172.20.106.85" port = "3336" type = "mixed" locator= "file:///C:/m1.mov"/>
section, the IPAddress and locator is a static value, how can i make it into a dynamic values?

I have tried the following but it does not work

<% String myip="255.255.255.255" %>
<% String mediafile="file:///C:/m1.mov" %>
<m:slides IPAddress  = myip port = "3336" type = "mixed" locator= mediafile/>


//Actual test.jsp coding

<%@ 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>
<m:slides IPAddress  = "172.20.106.85" port = "3336" type = "mixed" locator= "file:///C:/m1.mov"/>
<FORM METHOD = GET ACTION = main.jsp><INPUT TYPE = SUBMIT NAME= ACTION VALUE = "Next"></FORM>
</body>
</html>
0
Comment
Question by:ahnui79
4 Comments
 
LVL 14

Expert Comment

by:kennethxu
ID: 9872374
You have all your OLD questions open, please close them:
http://www.experts-exchange.com/QH_939992.html
0
 
LVL 2

Accepted Solution

by:
anthony_castillon earned 125 total points
ID: 9884426
Use JSP expressions, like this:

<m:slides IPAddress  = "<%= ipaddress  %>" port = "3336" type = "mixed" locator= "<%= locator%>"/>

Here, ipaddress & locator inside the JSP expressions may be Strings that are passed on to the JSP as parameters.  Also, I assume that <m:slides> is a custom tag.  Make sure that in the .tld file where slides is defined, the rtexprval value of IPAddress & locator are set to true.

Hope this helps.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordsWithout 49 90
mergeTwo  challenge 13 84
github account with ecipse 1 42
servlet doXXX methods 3 34
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.

911 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

22 Experts available now in Live!

Get 1:1 Help Now