Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Server Programming 3. Server side includes. HTML+ (‘hole’) technologies Uses ‘HTML+”, HTML (or XML) extended with code. Very many different varieties.

Similar presentations


Presentation on theme: "Web Server Programming 3. Server side includes. HTML+ (‘hole’) technologies Uses ‘HTML+”, HTML (or XML) extended with code. Very many different varieties."— Presentation transcript:

1 Web Server Programming 3. Server side includes

2 HTML+ (‘hole’) technologies Uses ‘HTML+”, HTML (or XML) extended with code. Very many different varieties. SSI (Server Side Includes) (Apache) PHP (‘Personal Home Page’) HTML + code (SSI,PHP,ASP, etc.)

3 Server Side Includes Program fragments mixed with text Allow parts of documents to be generated dynamically Executed by server (not by client)

4 Server Side Includes SSI ( http://httpd.apache.org/docs/mod/mod_include.html ) http://httpd.apache.org/docs/mod/mod_include.html PHP (http://www.php.net/)http://www.php.net/ ASP ( http://stardeveloper.com:8080/articles/041600-1.shtml ) http://stardeveloper.com:8080/articles/041600-1.shtml JSP (http://java.sun.com/products/jsp/index.html)http://java.sun.com/products/jsp/index.html XSP (http://xml.apache.org/cocoon/xsp.html)http://xml.apache.org/cocoon/xsp.html ColdFusion ( http://www.macromedia.com/software/coldfusion /) http://www.macromedia.com/software/coldfusion /

5 Principles & Implementations Reinier

6 JSP SUN standard For HTML or XML Processing instruction tags XML extensions: –predefined ‘ ’, etc. –custom Uses JAVA Gives access to Servlet packages

7 Most Important JSP Tags

8 HTML Interleaving <a href= >text

9 Implicit Objects config – ServletConfig object request – ServletRequest object response – ServletResponse object application – ServletContext object session – HttpSession object out – Writer for output data

10 JSP + XML Alternative syntax: –JSP: –XML: a = b; Tag libraries – – … Directives –<jsp:plugin type=“applet” code=“xyz” …

11 ASP Microsoft product Extends HTML pages Tags: Uses VBScript, PerlScript (=Perl) or Jscript Built-in objects: Application, ASPError, Request, Response, Server, Session

12 ASP versus JSP ASP Microsoft license IIS or PWS Interpreted ActiveX components HTML+ Fixed tags JSP SUN open standard Apache, etc. Compiled (JIT) JavaBeans HTML+, XML Extensible tags

13 Assignment 3 Translate servlet WCHelp to a JSP page in such a way that each time it is activated a different text is shown.

14 XML-based Web Programming WSDL: Web Services Description Language (services + ports + messages) UDDI: Universal Description, Discovery and Integration (registry) XML-based Remote Procedure Calls (SOAP) (protocol)

15 Cocoon Uses XML data Uses XSLT transformations Pipelining of operations

16 More Information J2EE tutorial: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/inde x.html Servlet API: http://java.sun.com/j2ee/1.4/docs/api/index.html JSP specification: http://java.sun.com/products/jsp/index.jsp#specs


Download ppt "Web Server Programming 3. Server side includes. HTML+ (‘hole’) technologies Uses ‘HTML+”, HTML (or XML) extended with code. Very many different varieties."

Similar presentations


Ads by Google