Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
pass dynamic path to src in embed tag in jsp
MSinghSolanki
I donot want to hard code path in src in embed tag in my jsp rather want to have value of src to be passed through DCT but could not find a solution.this video is currently in same folder as in jsp. But this video needs to be added in UI.
My jsp code is :
[%@ page language="java" contentType="text/html; charset=UTF-8" %]
[html]
[title]
[/title]
[script type="text/javascript"]
[/script]
[/head]
[body]
[OBJECT ID="MediaPlayer" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" wi
dth="500" height="500" STANDBY="Loading Windows Media Player components..." TYPE
="application/x-oleobject"]
[PARAM name="ShowControls" VALUE="true"]
[param name="ShowStatusBar" value="false"]
[PARAM name="ShowDisplay" VALUE="false"]
[PARAM name="autostart" VALUE="false"]
[EMBED TYPE="application/x-mplayer2" src="ME_CMS_Training_Videos.mp4" NAME="MediaPlayer" width="500
" heigh
t="500" ShowControls="1" ShowStatusBar="1" ShowDisplay="1" autostart="0" ] [/EM
BED]
[/OBJECT]
[/body]
[/html]
Find more posts tagged with
Comments
Rick Poulin
You've done a terrible job at providing context here, so I'm going to guess that you're trying to modify a presentation template that's producing a JSP from a DCR? If so, this is kinda the very basics of templating so you should get some training.. but you might have it look something like this:
XSLT PT
[PHP]
[/PHP]
Perl IWPT
[PHP]
type="application/x-mplayer2"
attribute2="whatever"
src="{iw_value name="dcr.path.to.video.src.inyour.dcr" /}" />
[/PHP]
My iwpt is rusty so don't take my word for it on the syntax.