Solved

How to incorporate jsp code into html

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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.
Suggested Courses

739 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