Ing of java class to Web site in Google App Engine Web development -- Implement jsp page submission using java class

Source: Internet
Author: User

Today's trendy GAE comes out. It uses App Engine to build network applications using standard Java technology and run these applications on Google's scalable infrastructure. To put it simply, you can write java web programs and put them on Google. Of course, this is different from general web programs. The technology used in it is unique, use the class libraries and interfaces provided by Google.

The following describes a gaing in GAEWeb development.

Is the code of an index. jsp page:

 

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/132H56308-0.jpg "border =" 0 "alt =" "/>

Simply put, click the "submit" button and go to the "/Sign" page. But here the "/Sign" is not what page, please see the contents of the web. xml file under the war/WEB-INF directory:

 

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/132H52044-1.jpg "border =" 0 "alt =" "/>

These are manually added. The <servlet-name> node in the <servlet> node specifies the name as sign, and the <servlet-class> specifies the complete path of the corresponding class --Guestbook. SignGuestbookServlet. The <servlet-name> and <servlet-name> nodes in <servlet-mapping> nodes refer to the same name, <url-pattern> indicates the corresponding url. This is the ing mechanism of the class servlet-name URLs. Of course, this class is not a general class, but a class inherited from HttpServlet. Please refer to the Code in this class:

 

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/132H52362-2.jpg "border =" 0 "alt =" "/>

This class processes the index. after processing the parameters in jsp, you can jump to other pages. It seems like an intermediate organization that processes data and plays an important role in connecting two pages.

This article is from the "HDDevTeam" blog, please be sure to keep this source http://hddev.blog.51cto.com/3365350/645876

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.