mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-06-09 11:17:12 +00:00
show line numbers in conde snippets
This commit is contained in:
parent
7450cdae8e
commit
6320bf822e
82 changed files with 1249 additions and 1251 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue