JSP Actions Use you can dynamically insert a file, reuse the JavaBeans component, proceed to another page, or generate an HTML for the Java plugin. The action you can use is: (1) jsp: include - contains a file when the page is requested. (2) JSP: Usebean - find or instantiate a JavaBean. (3) JSP: setProperty - Set a JavaBeaN property. (4) JSP: getProperty - inserts the property of JavaBean into the output. (5) JSP: Forward - Let the requester can go forward to a new page. (6) JSP: Plugin - Generates a specific browser code with the Object or Embed tag to Java Plugins. 1, JSP: Include Action This action allows you to include some files on the upcoming page: Unlike include Directive, this action is on the page The file is included in the request, and the include Directive is included when the JSP page is converted to a servlet. In order to improve efficiency, include Action has a little sacrifice, ie, it does not allow the page included with a general JSP code (for example, it is not available to HTTP header), but it has significant flexibility, as JSP below Code, which implements four different fragments into the page below. Every time you change, you only need to modify these four files without changing the primary JSP page. Whatsnew.jsp
JSP tutorial title>
what" s New at Chinese COMIC SITES TABLE> center>
Here Is A Summary of Our Four Most Recent News Stories:
ol> body> html> Of course you can define your own HTML file, but if you pay attention: You should put your files within the news directory in your JSP directory.