A type system for dynamic Web documents
Anders B. Sandholm, Michael I. Schwartzbach · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 2000
Many interactive Web services use the CGI interface for communication with clients. They will dynamically create HTML documents that are presented to the client who then resumes the interaction by submitting data through incorporated form fields. This protocol is difficult to statically type-check if the dynamic documents are created by arbitrary script code using printf-like statements. Previous proposals have suggested using static document templates which trades flexibility for safety. We propose a notion of typed, higher-order templates that simultaneously achieve flexibility and safety. Our type system is based on a flow analysis of which we prove soundness. We present an efficient runtime implementation that respects the semantics of only well-typed programs. This work is fully implemented as part of the system for defining interactive Web services.
Cited by 32 works. doi:10.1145/325694.325733 Open-access PDF
Authors
References
- Programming Perl
- Principles of Program Analysis
- The implementation of functional programming languages
- The Implementation of Functional Programming Languages (Prentice-hall International Series in Computer Science)
- Java servlet programming
- CGI Programming on the World Wide Web
- Programming the Web: An Application-Oriented Language for Hypermedia Service Programming
- Experience with a domain specific language for form-based services
- Professional Active Server Pages
- Core PHP Programming