► |  | Web Server: PLT HTTP Server

1 | Running the Web Server
2 | Writing Servlets
3 | Extending the Web Server
4 | Troubleshooting and Tips
5 | Acknowledgements
| Index

► | 2 | Writing Servlets

2.1 | Defining a Servlet
2.2 | APIs
2.3 | Common Contracts
2.4 | HTTP
2.5 | Web Interaction
2.6 | Stateless Web Interaction
2.7 | Web Cells
2.8 | File Boxes
2.9 | Stateless Web Parameters
2.10 | Formlets
2.11 | Templates
2.12 | Continuation Managers

▼ | 2.10 | Formlets

2.10.1 | Basic Formlet Usage
2.10.2 | Syntactic Shorthand
2.10.3 | Functional Usage
2.10.4 | Predefined Formlets
2.10.5 | Utilities

On this page:

input-string
input-int
input-symbol

Version: 4.1.4
top← prev up next →

##### 2.10.4`` Predefined Formlets

(require web-server/formlets/input)

There are a few basic formlets provided by this library.

input-string : (formlet/c string?)

A formlet that renders as

(list `(input ([name (format "input_~a" next-id)])))

where next-id is the next available input index and extracts (format "input_~a" next-id) in the processing stage and converts it into a UTF-8 string.

input-int : (formlet/c integer?)

Equivalent to (cross (pure string->number) input-string).

input-symbol : (formlet/c symbol?)

Equivalent to (cross (pure string->symbol) input-string).

top← prev up next →