Java web applications in Linux (1)Install apache under RedHat (the most popular WEB server platform on Unix) jserv 1.1.2Although the jserv development team of apache (the most popular WEB server platform on Unix) is currently engaged in tomcat (a
I have long seen the introduction of jsp (the preferred choice for SUN Enterprise Applications) (Java Server Pages) on foreign websites and how it works well and how powerful it works, but I only know that jsp (the first choice for SUN Enterprise
Using UTF-8 is actually the preferred choice for jsp (SUN Enterprise applications)Therefore, web pages often require the input or output of multilingual languages.It is a convenient code.In fact, it is not difficult to set the transcoding settings
2.
Java. text. SimpleDateFormat formatter = new java. text. SimpleDateFormat ("yyyy-MM-dd HH: mm: ss ");
Java. util. Date currentTime = new java. util. Date (); // obtain the current system time
String str_date1 = formatter. format (currentTime); //
FCKeditor is an open-source project on sourceforge.net. It mainly implements the online web editor function and enables web programs to have powerful editing functions such as MS Word. Official Website for http://www.fckeditor.net, server support
Backup: Send SQL to mssql (a powerful database platform on WINDOWS) server:Backup database to disk = backup file name with initNote: 1. the backup file name must be an absolute path,2. the backup file can only be the path on the machine where mssql
The following example shows how to access a student information table:
First, create the access database file student. mdb, open the Table Designer, enter the field name and data type, and set the primary key:
Second, establish test data:
Response. sendRedirect ("url? Parameter "); at this time, if the parameter we want to pass is Chinese, it is very likely that it will be displayed in garbled characters after it is passed. This is because response. sendRedirec ("url? Parameter. So
Cookie should be a technology that has been used for a long time. As early as the advent of HTML, there was no way to record and identify different users between each independent page. Later, people invented the Cookie technology. When a user
The following describes how to pass parameters between pages in JSP.1. Add directly after URL requestFor example, directly passing parameters When using response. sendRedirect for page redirection, you can also use the following code:Response.
A new programming idea (medium ):Rare confused Programming Method GBDP (applicable to jsp (preferred for SUN Enterprise applications), asp and other programming)
GBDP Technology Implementation ideas: (General Blackbox Dynamic Programming)Fast
To implement a WebServer, after writing a simple WebServer, why not implement a jsp (first choice for SUN Enterprise Applications) WebServer?With this idea, we began to consider the implementation principle of jsp (the preferred choice for SUN
Users who are new to jsp (the preferred choice for SUN enterprise-level applications) often ask how to connect to the database. I write an article here for your reference,Now let's start our jsp (first choice for SUN Enterprise applications) and
InWeblogicPublishWeb ApplicationTo protectJsp (preferred for SUN Enterprise applications)Files can be used to avoid unauthorized access and pegging.Weblogic. jsp (preferred for SUN Enterprise Applications) cSetJsp (preferred for SUN Enterprise
I worked as a Forum in my own community some time ago. I made a page on the basis of jive to display all the Forum posts, which can be called the general edition. I used the Forum class interface to create a SuperForum and implement Cachable,
Compared with ASP and PHP, Servlet/jsp (preferred for SUN enterprise-level applications) has a high execution efficiency due to its multi-threaded operation. Servlet/jsp (preferred for SUN Enterprise Applications) is executed in multi-threaded mode
The Code is as follows:
Java. awt. image. *, java. util. *, javax. imageio. * "%>Color getRandColor (int fc, int bc) {// obtain a random Color from a given rangeRandom random = new Random ();If (fc> 255) fc = 255;If (bc> 255) bc = 255;Int r = fc +
String Agent = request. getHeader ("User-Agent ");StringTokenizer st = new StringTokenizer (Agent ,";");St. nextToken ();// Obtain the user's browser nameString userbrowser = st. nextToken ();// Obtain the user's OS nameString useros = st. nextToken
The previous chapter focuses on the concept of built-in objects in jsp (the preferred choice for SUN enterprise-level applications). This article mainly describes some built-in object methods.
1,RequestObject methods:
☉GetAttribute (String
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service