Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <---New Project--->
- file- new- dynamic web project- next x3(CHECK XML)- finish.
- <---HTML--->
- <project_name>- src- main- java- webapp- rightclick- new- html file.
- <---JAVA ServLet--->
- <project_name>- src- main- java- Demo- rightclick- new- other...-Web- Servlet- next- pkg name, class name- nextx2- tick doPost, doGet, const. from superclass(untick)- Finish.
- <---Link ServletAPI from Tomcat--->
- <file-name>.java- Build Path- Configure Build Path- Module Path- Add External Path(Right Side)- C:\Program Files\Apache Software Foundation\Tomcat 9.0\lib- servlet-api.jar- Open- Apply and Close.
- <----XML--->
- webapp- WEB-INF- web.xml
- <---Tomcat settings--->
- Open Tomcat Server- Set TomcatAdmin port to 1, save all
- Window- Web Browser- select browser
- <---Post vs. Get--->
- Get is not secure, it shows inputs in the URL.
- Post is secure.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement