A simple jsp interface to upload attachments to the server instance

1. Description: upload the attachment in a web project. The jar package used in demo is commons-fileupload-1.3.3.jar commons-httpclient-3.1.jar commons-io-2.0.1.jar. It can be obtained in the source code. Download address: http://download.csdn.net/download/shenju 2011/10215828 2. Code interpretation (1) The jsp interface is processed with a ...

Posted by hairyjim on Tue, 05 May 2020 01:30:35 -0700

Java WEB -- file upload

The recently learned file upload in the web phase, I just want to record it, help myself review and help you learn. Generally, I will save the uploaded file under the web inf in the server, because the user will not directly access it, and the path we save to the database is generally the path. There is no demonstration of database upload path. ...

Posted by notionlogic on Mon, 04 May 2020 03:50:44 -0700

java notification running lamp effect (text scrolling)

It's not hard for me to be ashamed to do this function, but I still encounter various problems. Here's a note: This is my home page. A notice appears on the top of the home page to let users see the latest information Find "marquee" plug-in Online Refer to: https://www.givainc.com/labs/marquee_jquery_plugin ...

Posted by seangamer on Sun, 03 May 2020 18:30:56 -0700

Simple construction of struts 2 Framework (Introduction)

Simple construction of Struts (Introduction) Process summary: (struts 2 download: https://struts.apache.org/) (software requirements: install eclipse/myeclipse and tomcat) Guide Package: (in apps, blank case is the simplest package needed) Action class: (path: SRC > CN. Itcast. Hello (the package of the class) > class name) struts.xml: ...

Posted by petroz on Sun, 03 May 2020 05:07:15 -0700

Connect Servlet to JDBC to realize page Jump

1. First, build a static HTML page for display. The page is simple and only needs a form form <form action="Cc" method="post"> User name < input type = "text" name = "name1" > Password < input type = "password" name = "pass" > <input type="submit"> ...

Posted by Arc on Sun, 03 May 2020 03:00:03 -0700

File upload learning record used in Java Web project (1)

File upload learning record used in Java Web project (1) Introduction: File upload is a commonly used function in development. I will mainly introduce the implementation of basic file upload function with commons-fileupload-1.2.1.jar package, that is, file upload to the specified directory, and introduce the relevant classes and methods use ...

Posted by hypuk on Sun, 03 May 2020 02:26:04 -0700

JQuery calls Ajax to asynchronously transfer the type of response data received by Servlet

When we use ajax encapsulated by jQuery in the web Callbacks can be executed But this callback function accepts fixed data types In the servlet background Well known transmission types are text json Of course, this is transmitted to jQuery If jsp is used That's another thing So far, I haven't specifically test ...

Posted by chrisredding on Thu, 30 Apr 2020 18:17:14 -0700

javaEE note administrator login

index.jsp in the web Directory: <%-- Created by IntelliJ IDEA. User: Administrator Date: 2017/12/25/025 Time: 20:40 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>$Tit ...

Posted by shadow_blade47 on Thu, 30 Apr 2020 16:17:20 -0700

nginx installation, configuration, equalization, dynamic and static separation of tomcat

nginx download and installation nginx download address: nginx download address Install compiler and dependency Libraries yum install gcc gcc-c++ zlib-devel pcre-devel openssl-devel openssl-libs openssl -y nginx installation: Run to nginx root: Make & & make install After the installation is completed, you ...

Posted by rj2kix on Thu, 30 Apr 2020 08:08:45 -0700

Front end routing (history+hash)

Blog address changed before, republish! In traditional website development, we usually use technologies such as asp, php and jsp to develop. After the development is completed, we will deploy them on the server. When we visit, we will send them with '. asp', '. php' in the browser, For url requests with suffix paths such as'. jsp ', the server ...

Posted by maybl8r03 on Tue, 28 Apr 2020 23:08:35 -0700