show line numbers in conde snippets

This commit is contained in:
Marcello 2023-10-20 18:22:46 +02:00
parent 7450cdae8e
commit 6320bf822e
82 changed files with 1249 additions and 1251 deletions

View file

@ -5,7 +5,7 @@ Although servlets can respond to many types of requests, they most commonly impl
## Basic Structure
```java
```java linenums="1"
package <package>;
import java.io.IOException;
@ -39,7 +39,7 @@ public class <className> extends HttpServlet {
## Servlet Instructions
```java
```java linenums="1"
request.getParameter() // read request parameter
response.setContentType("text/html"); // to return HTML in the response