Advertisement
AnindyaBiswas

Instructions

Oct 18th, 2022
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <---New Project--->
  2.  
  3. file- new- dynamic web project- next x3(CHECK XML)- finish.
  4.  
  5.  
  6. <---HTML--->
  7.  
  8. <project_name>- src- main- java- webapp- rightclick- new- html file.
  9.  
  10.  
  11. <---JAVA ServLet--->
  12.  
  13. <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.
  14.  
  15.  
  16. <---Link ServletAPI from Tomcat--->
  17.  
  18. <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.
  19.  
  20. <----XML--->
  21.  
  22. webapp- WEB-INF- web.xml
  23.  
  24.  
  25. <---Tomcat settings--->
  26.  
  27. Open Tomcat Server- Set TomcatAdmin port to 1, save all
  28.  
  29. Window- Web Browser- select browser
  30.  
  31.  
  32. <---Post vs. Get--->
  33.  
  34. Get is not secure, it shows inputs in the URL.
  35. Post is secure.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement