• Summary of JSP playing video files


    The example of this paper describes the method of JSP playing video file. To share with you for your reference, as follows: 1.avi format The code snippet is as follows: JSP Code: <object width=”400″ height=”200″ border=”0″ classid=”clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA”> <param name=”ShowDisplay” value=”0″> <param name=”ShowControls” value=”1″> <param name=”AutoStart” value=”1″> <param name=”AutoRewind” value=”0″> <param name=”PlayCount” value=”0″> <param name=”Appearance value=”0 […]

  • Analysis of JSP listener usage


    An example of this article describes the usage of JSP listener. To share with you for your reference, as follows: Listener, also called listener, is the listener of servlet service. It can listen to the client’s request, the server’s operation and so on. For example, count the number of online users. When an httpsession is […]

  • Analysis of the method of getting URL path by JSP


    The example of this paper describes the method of getting URL path by JSP. To share with you for your reference, as follows: If the URL you requested is http://localhost: 8080/demo/index.jsp Request. Getscheme() // output: http Request. Getservername() // output: localhost Request. Getserverport() // output: 8080 Request. Getcontextpath() // output: / demo Request. Getrequestpath() // […]

  • Analysis of common query and display methods of JSP page


    The example of this paper describes the common query and display methods of JSP page. To share with you for your reference, as follows: Background: 1. The database query results need to be displayed in a list in JSP2. In a good J2EE mode, database query is generally implemented by Dao (data access object), and […]

  • Summary of common skills in JSP programming


    This paper summarizes the common skills of JSP programming. To share with you for your reference, as follows: 1、 Detach values in the drop-down list box There is a drop-down list box in the page, as follows: <td><select > <option value=””></option> < option value = “18-30” > 18-30 years old < / option > < […]

  • Several solutions to Chinese code disorder (recommended)


    First of all, my special situation: 1. In the foreground JSP, I use the form post request, set enctype = “multipart / form data”, and the page encoding format is UTF-8 2. In the background, I use the Commons fileUpload component to parse form forms and files, 3. Set request.setcharacterencoding (“UTF-8”); 4. Set servletfileupload. Setheaderencoding […]

  • Realization of news management system with complete source code based on JSP


    Great news release system to share with you, I hope you like it. Let’s talk about the JSP based news release system, which uses JavaBean, filler, database and other technologies to realize the news release function. After the release, it can delete, modify, or continue to add new articles to each news, and finally it […]

  • The solution to the problem that El expression in JSP page is treated as string and does not display value


    When I practiced, I encountered the phenomenon that El expressions were treated as strings without proper parsing. Java ee5 used in the project at that time, web.xml <web-app version=”2.5″ xmlns=”” xmlns:xsi=”” xsi:schemaLocation=”” > El expression is not parsed. It is treated as a string. Later, we changed web.xml to <web-app version=”2.4″ xmlns=”” xmlns:xsi=”” xsi:schemaLocation=” […]

  • JSP build error page and jump automatically


    In various common web sites, we often find a function: when a page makes an error, it will automatically jump to a page to prompt the error information. To complete the operation of the error page, you must meet two conditions: 1. Specify the jump page when an error occurs, which is specified by the […]

  • The method of adding horizontal scroll bar to table in JSP


    First of all, the bootstrap framework is used in this project, so some people will say that it’s OK to set the adaptive attribute for the table What I want to say here is Bootsrtap adaption is designed for horizontal scrollbars only when the browser is half full of the screen When we maximize the […]

  • The solution of using ${} in JSP page does not work


    In the dynamic display of all resources, it is found that ${} does not work, so the page does not display the results. After exclusion, it is found that JSTL has no reference, and it is referenced in the page header <%@taglib uri=””prefix=”c”%> that will do The above is the whole content of the solution […]

  • How to get the current date and time in JSP page


    1、 <SCRIPT LANGUAGE=”JavaScript”> var myDate = new Date(); Mydate. Getyear(); // get the current year (2 digits) Mydate. Getfullyear(); // get the complete year (4 digits, 1970 -????) Mydate. Getmonth(); // get the current month (0-11,0 represents January) Mydate. Getdate(); // get the current date (1-31) Mydate. Getday(); // get the current week x (0-6,0 […]