On my jsp page, use file upload and send the file for the line to the java page to copy to a specific folder. I want all the way to copy my file. but I only get the file name with the extension.
scan file: ABC.pdf
shows only: ABC.pdf
I want to show: c: /abc.pdf
JSP is truly server-side technology. Here are some links to download a file using JSP.
http://www.tutorialspoint.com/jsp/jsp_file_uploading.htm
http://corejavaexample.blogspot.in/2013/04/how-to-upload-file-in-jsp.html
http://javarevisited.blogspot.in/2013/07/ile-upload-example-in-servlet-and-jsp-java-web-tutorial-example.html
, .
JSP - , HTML ( ), - . , . .
jsp :
<form action="UploadServlet" method="post" enctype="multipart/form-data"> <input type="file" name="file" size="50" /> <br /> <input type="submit" value="Upload File" /> </form>
JSP/Servlet?
. . . . . , .
On the server side, you decide where to save the file. Obviously, you would not want the user to solve this. Allowing them to decide where to save the file on your server will enable them to overwrite system files.
Source: https://habr.com/ru/post/1534206/More articles:Why did Calendar.JUNE set the month to July? - javaCan I use \ / type of scalp to accumulate failures? - scalaHow to return a bitmap from a child activity in android - androidКак переписать URL-адрес на сайте ASP.net - .netIIS URL Rewriting - url-rewritingLogging In as an IAM User Using the AWS SDK - sdkПостроение источника android из-за версии openjdk java - androidJava 8 javadoc tool features and bug with gradle: how to get around this? - javaDifferent oauth2 native / web client identifiers for the same application - iosconnection to websocket fails? - javascriptAll Articles