Using JSP to build a Web site

Source: Internet
Author: User
Tags modify root directory

JSP, a technology launched by Sun Microsystems in June 1999, is a web-based development technology based on Javaservlet and the entire Java system that enables the creation of advanced, secure, and Cross-platform Dynamic Web sites.

JSP is very similar to ASP. Both provide the ability to mix some kind of program code in HTML code, and the language engine to interpret the execution code. In an ASP or JSP environment, HTML code is primarily responsible for describing the display style of information, while program code is used to describe the processing logic. The programming language under ASP is a scripting language such as VBScript, and the JSP uses Java.

TRS and its JavaBeans

TRS system is the first Chinese Full-text retrieval system with "parallel Computing" algorithm, its Full-text search engine can provide the performance of relational database, and can be used in conjunction with relational database, because TRS can establish full-text indexing for text content and provide efficient full-text retrieval capabilities. So using TRS can greatly improve the query speed of the website.

TRS JavaBeans is developed based on Java component Technology--javabeans with good cross-platform features. This article describes the process of building a Web using JSP, TRS, and JavaBeans.

TRS JavaBeans Configuration steps

Take NT Lower WebLogic5.1.0 as an example to explain.

1. Install WebLogic5.1.0

2. Modify Startweblogic.cmd

Change "Set pre_classpath=" to "full path% of full path%;%trsdemo.jar of Set Pre_classpath=%trsbean.jar".

For example, if Trsbean.jar is located in the C:\TRSJavaBeans\lib\ directory, change the statement to:

Set Pre_classpath=c:\trsjavabeans\lib\trsbean.jar

3. Modify Weblogic.properties

Take the statement: #weblogic. Httpd.register.servlets=weblogic.servlet.servletservlet before the # number removed.

Remove the "#" number before the following statement:

# weblogic.httpd.register.*.jsp=\
# weblogic.servlet.JSPServlet
#weblogic.httpd.initArgs.*.jsp=\
# pageCheckSeconds=1,\
# compileCommand=C:/java/bin/javac.exe,\
# workingDir=D:/weblogic/myserver/classfiles,\
# verbose=true

Then change "compilecommand=c:/java/bin/javac.exe,\" to "Compilecommand=java_ path/bin/javac.exe,\", where JAVA_ Path is the installation root directory of the actual JDK used.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.