Solved

How to incorporate jsp code into html

Posted on 2003-12-03
4
296 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
noX challenge 17 130
windows explorer path to command prompt 5 54
Java: The Public Class Main 4 32
intellij error 2 17
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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

820 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