/    Sign up×
Community /Pin to ProfileBookmark

pass parameters from jsp to another jsp

i have few video filepath in db and have load them to jsp call viewvideo.jsp each video as links. i wanna play the video which i click jest using java and html

here the cord in viewvideo.jsp

<%

try {

ResultSet resulset = jdbc.getdata(“select * from video”);

%>
<form >
<table >

<%
while (resulset.next()) {
%>
<tr>
<td><input type=”hidden” value=”play” name=”<%=resulset.getString(3)%>” ><a href=”twovedio.jsp”><%=resulset.getString(3)%></a></td>
</tr>
<%}%>
</table>
</form>
<%} catch (Exception e) {
}%>

here the cord in twovedio.jsp
<% String video_path = request.getParameter(“name”);

if (video_path != null) {

%>

<object

width=”545″

height=”350″

data=”http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf

type=”application/x-shockwave-flash”

>

<param

name=”movie”

value=”http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf

/>

<param

name=”allowfullscreen”

value=”true” />

<param

name=”allowscriptaccess”

value=”always”

/>

<param

name=”flashvars”

value=’config={“plugins”:{“pseudo”:{“url”:”flowplayer.pseudostreaming-3.1.3.swf”},”controls”:{“backgroundColor”:”#000000″,”backgroundGradient”:”low”}},”clip”:{“provider”:”pseudo”,”url”:”Upload_video/<%= video_path%>”},”playlist”:[{“provider”:”pseudo”,”url”:”Upload_video/<%= video_path%>”}]}’ />

</object>

<%} else {

%>

<h1>[[[redacted]]]</h1>

<%}%>

error says String video_path = request.getParameter(“name”); parameter value is null video doesn’t play

please help i am really new to thesethings

to post a comment
Java

1 Comments(s)

Copy linkTweet thisAlerts:
@anshulzunkeMar 30.2012 — You are using request.getParameter("name")

in the 2nd JSP. But where did u set the parameter 'name'??
×

Success!

Help @chathura_chamid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...