Tomcat Installation Configuration and Precautions, JSP, Servlet, JavaBean established methods and precautions!

xiaoxiao2021-03-06  49

I have recently learned Java, I have some experience in the process of learning, and it is attached to facilitate beginners. Reference connection: Configuration of JSP, Servlet, and JavaBean environment under Tomcat Tomcat Raiders Note: 1. Set the environment variable java_home = Your JDK installation path. 2. If after Win98 is installed in Tomcat, prompt "Out of Environment Space" after running Startup.bat: indicating that the initial environment is insufficient, right-click Startup.bat, click "Memory" - "Initial Environment", Turn "Auto" to 2048. Simuse set ShutDown.bat. 3.Tomcat does not directly support Chinese, showing HTM, Chinese in HTML is garbled, the solution is as follows: Open Tomcat 4 / conf / web.xml View type HTM / HTML settings, set it to GBK or GB2312 : htm text / html; charset = GB2312 HTML text / html; charset = GB2312 4.jsp shows Chinese for garbled: General JSP garbled problem can be added <% @ Page ContentType = by joining in JSP "Text / html; charset = GB2312"%> To solve the 5.servlet display Chinese for garbled: Reference connection: A solution to the parameter Chinese garbled in jsp / servlet

转载请注明原文地址:https://www.9cbs.com/read-81904.html

New Post(0)