Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
|
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 7th, 2008, 04:16 AM
Registered User
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java and dynamic .asp

On my minerals and crystals website at http://www.absolutequartzcrystals.com, I am trying to add a short video clip of each item along with the pictures.

I am using a program which converts .wmv to .flv as well as generating the java code to call and play the flash video like this:

<script type="text/javascript" src="swfobject.js"></script>
<div id="index">
Upgrade your Flash Player to version 8 to view this video! (<a href=http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe target=_blank>Click here for the download</a>)<br><br><a href="http://www.videowebwizard.com">Add streaming video to your website</a>
</div>
<script type="text/javascript">
var so = new SWFObject("Midnight.swf?path=test2.FLV&buffersize= 0&startauto=false&redirect=", "index", "340", "300", "8", "#ffffff");
so.write("index");</script>


It works great when I cut and paste the code directly into the page but I need to call the vids dynamically as there is a different on for each item, so I hard code the first bit of the java into my page, and then pull the second bit (everything after the </div>) from my database like so
<%=FP_FieldVal(fp_rs,"Code1")%>

The trouble is that when I do this, instead of executing the code, it displays it on the site as text (see http://www.absolutequartzcrystals.com/crystals-members/crystalsale.asp?Name='Pair+Of+Mahogany+Goblets%2E% 2E'&ProdID=1162 for an example.

How do I make the java work instead of displaying as text?


http://www.absolutequartzcrystals.com

http://www.wicca-and-pagan-supplies.com
 
Old August 13th, 2008, 01:05 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

how about placing only the file name taken from db using jsp code?

- Rakesh
 
Old August 13th, 2008, 04:47 AM
Registered User
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, but I already got it sorted out :-)

http://www.absolutequartzcrystals.com

http://www.wicca-and-pagan-supplies.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic control (c# ASP.net) Hemang ASP.NET 1.0 and 1.1 Basics 0 June 28th, 2007 08:34 AM
Dynamic ASP button generation Lloyd_Christmas Classic ASP Basics 1 May 17th, 2005 06:50 PM
Dynamic Connection Sting from ASP jayaraj ASP.NET 1.0 and 1.1 Professional 1 July 12th, 2004 07:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.