First JSP: Scriptlets and Expressions
Steps
- Create new jsp file Path
- Add HTML tags for H1 and P.
- Add scriptlet for today's Date.
- Run. Note
- Add expression for todays date.
- Do same thing with scriptlet. Run.
- Add import. Run.
- Add client-side and server-side comments. Run.
- Get parameter 'x' and display it. Run.
- Cube x, handle NumberFormatException with local error page. Run.
- Edit web.xml to define global error page. Run.
Final Code
Source: First.jsp
Source: FirstErrorPage.jsp
Source: /GlobalErrorPage.jsp
Run It
first.jsp