Write the project today, encountered this problem, because the framework is 2005, JSP can not store tags, can only have Java code to write, the following is the example I wrote two examples can be successful!
Also wrote the use of the label in the
In Google's process to see this article ("Nicedit in jquery can not get the textarea value") to get an inspiration, that is, you can read out the Nicedit Rich Text editor with JS content, assign its contents to textarea, and then submit the form.
Today, in the use of Chinese transfer parameters, the fate of the code could not turn over, so thought of using escape, after the use ofRequest.getparameter received no parameters and thought about how to receive the parameters.After testing,
Online processing Method A basket, the following say I used two kinds of effective solutions.
1. Write a string handler function for the program, save it in a static file, and include it in the JSP page that needs to handle the Chinese characters.
This paper discusses several implementation methods of Web page automatic jump.Method one: Using the META tag meta tag is one of the indispensable tags of HTML, which is responsible for providing meta information about the document, and its
Sendredirect
Response.sendredirect ();
According to the logic, the server sends a status code, tells the browser to request a new address again, generally speaking, the browser will use all the parameters just requested again, so the
Tag Library taglib
tags are defined and distributed in a structure called a tag library, which is a collection of meta information and classes:
1. Label Processor: Java class that implements custom label functions.
2. Tag additional information
tag to write a tag involves three steps,
(1) Write JSP
(2) Write tag Java program
(3) Write tag library description file TLD (actually an XML file)
There is no sequential constraint between these three steps, and here is a simple example:
1
JSP, a technology launched by Sun Microsystems in June 1999, is a web-based development technology based on Javaservlet and the entire Java system that enables the creation of advanced, secure, and Cross-platform Dynamic Web sites.
JSP is very
There are two methods for JSP page jumps: the Requestdispatcher.forward () method and the Httpservletresponse.sendredirect () method.
The difference between them is:
Requestdispatcher.forward () method is only a control in the container of the
First, download NetBean6.1
NetBean6.1 contains Web server Tomcat6.0.16 and GlassFish V2, so the two servers are installed automatically after the Netbean is installed.
Second, view Tomcat properties
Open Windows-Services-server in the Netbean IDE,
After studying the request and response, we will study the session object together, and we can say that the session object and the request object are the two most important objects in the nine big objects.
Introduction to Session Objects
In the
Often see the JSP novice ask Tomcat How to configure the JSP, servlet and bean issues, so summed up how to configure the JSP, Servlet and Ben, in the hope of helping those beginners.
Step one: Download J2sdk and tomcat: Download J2SDK to the Sun
STRUTS2 itself provides a duplicate-submit check mechanism, but I don't want to pop up an error page, but instead do nothing, just commit once
1. Set a variable, set a variable, only allowed to submit once.
Method 1 is effective on IE6 and
We continue to learn, in the last article on the request attribute, then both the client and the server can be implemented to jump, then use the session.
Third: Session Properties
We then revise the code in the previous article to compare:
FCKeditor is a WYSIWYG text editor that is specifically designed to be in the open source code on a Web page. It is focused on lightweight and does not require too complex installation steps to be used. It can be combined with different programming
Often see the JSP novice ask Tomcat How to configure the JSP, servlet and bean issues, so summed up how to configure the JSP, Servlet and Ben, in the hope of helping those beginners.
I. Development environment Configuration
Step one: Download
When this page appears, the controller must be found, just trying to parse the Viewresolver parsing attempt failed, for two reasons1. The resource hello.jsp file is not actually placed in the Web-inf directory2, the resource file is placed in the
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.