如何在jsp中获取src中的会话值。 [英] How to get session value in src in jsp.
本文介绍了如何在jsp中获取src中的会话值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="D:/nameoffolder/${uname}/1.mp3" type="audio/mp3">
<source src="C:/Users/Downloads/Linkin Park_in_the_end.mp3" type="audio/mp3">
Your browser does not support the audio element.
</audio>
这里我不能用
< source src = D:/ nameoffolder / $ {uname} /1.mp3type =audio / mp3/>
这是我的jsp页面。 $ {uname}在运行时没有获取会话值。
如果我只写$ {uname}它会输出会话值。
here I cannot use
<source src="D:/nameoffolder/${uname}/1.mp3" type="audio/mp3" />
this is my jsp page. ${uname} does not get the fetch the session value at runtime.
if I just write ${uname} it prints the session value.
推荐答案
{uname} /1.mp3 type = audio / mp3 >
< span class =code-keyword>< source src = C:/ Users / Downloads / Linkin Park_in_the_end.mp3 type = audio / mp3 >
您的浏览器不支持音频元素。
< / audio >
{uname}/1.mp3" type="audio/mp3"> <source src="C:/Users/Downloads/Linkin Park_in_the_end.mp3" type="audio/mp3"> Your browser does not support the audio element. </audio>
这里我不能使用
< source src =D:/ nameoffolder /
here I cannot use
<source src="D:/nameoffolder/
{uname} /1.mp3type = audio / mp3/>
这是我的jsp页面。
{uname}/1.mp3" type="audio/mp3" />
this is my jsp page.
{uname}无法获取运行时的会话值。
如果我只是写
{uname} does not get the fetch the session value at runtime.
if I just write
这篇关于如何在jsp中获取src中的会话值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文