Learn EJB for JBoss 3.2 Notes (2) Test JSP

zhaozj2021-02-16  51

First, write a simple HTML before writing a simple JSP file, the code is as follows: helloworld Save the file as index.jsp, we temporarily store the directory for c : / jsp.

Second, the production of WAR deployment file 1.jdk provides a package tool, which is the jar.exe application of the JDK bin directory. To make it more convenient to use this program, we add JDK / BIN path in the system's path environment variable so we can access Jar.exe directly.

2. For JAR's method, I suggest that you can directly view JAR's help, here I will not explain it. Pass: Do you ask me how to help? Simple, run jar.exe :)

3. In our directory of index.jsp, that is, the JAR CVF Hello.war index.jsp is executed in C: / JSP, you can see a new Hello.war file in the directory, this is what we are going to deploy. The package file in JBoss. It contains an index and directory structure of a network access.

4. Copy the generated Hello.war to the JBoss installation directory / server / default / deploy / under deployment.

Third, test JSP first, ensure that JBoss has successfully started. Then open the browser input URL: http: // localhost: 8080 / hello /. If the HelloWorld word is displayed in the page, it means that the release is successful. After success, you can see that the address bar automatically changes to open the browser, enter the URL: http: // localhost: 8080 / hello / index.jsp

Fourth, summarizing that I have got a window in-depth JBoss, while more exciting research also needs our uninterrupted efforts. Finally, I took my netizens as an incentive for myself and everyone: I will return to the sun.

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

New Post(0)