Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help in upload a video file in jsp page.

 
Anand Gajjar
Ranch Hand
Posts: 31
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to insert video file on jsp page using absolute path from computer directory..???
any idea...?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your subject, you mention "upload", but in the body, it sounds like you just want to display the video. Which is it?
 
Anand Gajjar
Ranch Hand
Posts: 31
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:In your subject, you mention "upload", but in the body, it sounds like you just want to display the video. Which is it?


hello sir..
but i want to open video on jsp page using request.getParameter() method in which i pass absolute path of video file
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anand Gajjar wrote:
but i want to open video on jsp page using request.getParameter() method in which i pass absolute path of video file


absolute path of the client's computer or the server?

Client's Browser
Modern day browsers DO NOT send up the full path to the server. They just send up the file name and the file contents. So it would be impossible to link to a file on the user's computer through a file input. Plus with security settings most browsers will not allow html/javascript to reference local files.

Server Path
Only way you can serve up the file to the client is to make sure the file can be accessed from a http url.

Eric
 
Anand Gajjar
Ranch Hand
Posts: 31
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic