We use IFRAME provided by Google to embed JSP pages into flex.
First, go to http://code.google.com/p/flex-iframe/download the iframe swc package
Step 2: Put the SWC package in flex_libs, and put it under lib if it is not a WEB Project
Step
JSP practiceProgramSerialization, because a friend recently engaged in JSP and needed some information, he collected some of the frequently used real-world JSP fragments for your reference. There are many things that can be used directly, even if
For graduation, I began to study struts, hibernate, spring and other technologies. Not how difficult they are, but the xml configuration files are enough for you. Every database field, like hibernate, must be mapped to XML,CodeThe amount of data is
The four scopes of JSP are page, request, session, and application. You can use setattribute ("", ""); getattribute ("", ""); When page is used, name pagecontext. setattribute ("", ""); it can only be valid on the same page
Request. The request
Test. javapackage test; import Java. util. date; import Java. text. simpledateformat; public class test {date d = new date (); Public test () {// super (); system. out. println ("in constructor"); // todo auto-generated constructor stub} Public
To reduce the pressure on the server, change the original article management system to generate static html files from JSP files and then access the HTML files directly. The following is a simple example.
1. buildhtml. jsp
Try {String title = "JSP
JSP and JavaBeanAlthough you can put a large piece of program code in a small instruction file, most Java program code is a reusable component called JavaBean. Like ActiveX controls, JavaBean provides known functions and is designed for reuse at any
Forms are a common way to interact with websites. JSP makes form processing easier. The standard way to process forms in JSP is to define a "Bean ". This "Bean" is not a full Java Bean. You only need to define a class so that it has a region, which
This section involves two pages. One donewuser. jsp file is used to add records, and the other listuser. jsp file is used to add records.
Displays information about all registered users. The two pages involve the specific call of JavaBean. Let's
A common error is to treat JSP as a simplified Java. It is not. (In fact, JSP is a simplified servlets .) Programmers usually try to learn JSP directly without learning the required support skills. JSP is a connection technology that you need to
Part 1 installation in the Java environment
1. The latest j2sdk version is 1.4.2 _ 01,: http://java.sun.com/j2se/1.4.2/download.htmlDownload netbeans ide v 3.5.1 with j2se v 1.4.2 cobundleUse netbeans ide v 3.5.1 that includes j2se v 1.4.2
2.
Core tips:Have different class objects for the Type javax/El/expressionfactory used in the signature
Detailed error:
Exception javax. servlet. servletexception: Java. Lang. linkageerror:Loader Constraint Violation: when resolving Interface
Three script elements in JSP:
Expression format JAVA expression. Calculate the expression and output the result.
The result obtained by calculating the Java expression is converted to a string and inserted to the page. Computing is performed
List = (list ) session. getattribute ("list"); If (list = NULL | list. size () = 0) {list = new arraylist (); random r = new random (); For (INT I = 0; I my JSP 'pager. JSP 'starting page NO. content homepage |
With the lodop printing control, you can easily make powerful functions.
Control download: http://mtsoftware.v053.gokao.net/download.html
Print test NO. name gender age 1 Zhang San male 20
Media
JSP's support for file uploading is not as good as PHP's support. It is directly implemented as a function, not as it can be implemented through components in ASP. JSPs can be implemented through JavaBean. However, there is no need to write an
Use the JSP built-in scope object session. Using its two methods setattribute (), getattribute ()
2. The following example implements the function of passing parameters of the first JSP page to the third page.
3. The Code is as follows: 1.jsp
What
I. garbled characters on the JSP page
2. garbled characters appear when the form is submitted to Chinese
Iii. Database Connection
During the JSP development process, Chinese garbled characters often occur, which may affect you. Now I have
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.