As discussed earlier,incorporating dynamic content must ultimately involve some form of programming to describe how that content is generated.Program code,however,tends to be expensive to create and to maintain,so minimizing the need for programming is often a desirable goal.Combining this goal with Sun's objective for robust,full-featured support for Java on the server,a Java-based template system,JSP,was the natural result. JSP is something of a hybrid among template systems,because it supports two different styles for adding dynamic content to web pages.Like ASP,SSJS,and PHP,scripts can be embedded in JSP pages containing actual programming code.In the case of JSP,this programming code is typically Java.(Actually,the JSP specification allows for the possibility of alternative scripting languages.) Like ColdFusion,JSP supports a set of HTML-like tags that interact with Java objects on the server,without the need for raw Java code to appear in the page.In fact,the JSP 1.1 specification takes this capability a step further,by providing a tag extension mechanism that allows developers to create libraries of custom tags that can be loaded into a JSP page.These custom tags can then be used on the page just like the standard JSP tags.
As discussed earlier,incorporating dynamic content must ultimately involve some form of programming to describe how that content is generated.Program code,however,tends to be expensive to create and to maintain,so minimizing the need for programming is often a desirable goal.Combining this goal with Sun's objective for robust,full-featured support for Java on the server,a Java-based template system,JSP,was the natural result.<br> JSP is something of a hybrid among template systems,because it supports two different styles for adding dynamic content to web pages.Like ASP,SSJS,and PHP,scripts can be embedded in JSP pages containing actual programming code.In the case of JSP,this programming code is typically Java.(Actually,the JSP specification allows for the possibility of alternative scripting languages.) Like ColdFusion,JSP supports a set of HTML-like tags that interact with Java objects on the server,without the need for raw Java code to appear in the page.In fact,the JSP 1.1 specification takes this capability a step further,by providing a tag extension mechanism that allows developers to create libraries of custom tags that can be loaded into a JSP page.These custom tags can then be used on the page just like the standard JSP tags.
正在翻译中..