The schoolbag pPage and schoolbag ppage that receive parameters submitted on the previous page

Source: Internet
Author: User

The schoolbag pPage and schoolbag ppage that receive parameters submitted on the previous page

All the parameters submitted by the user from the previous page are stored in the schoolbag pPage. We use a simple example to introduce the usage of the pPage schoolbag.

· Create a show.html file in the WebEasy system directory (for example, D:/webeasy.pdf. The content is:

Parameters submitted on the previous page:

<Table border = 1> <tr> <th> parameter name </th> <th> value </th> </tr> <td> p1 </td> <td >@{ pPage: p1 }</td> </tr> <td> p2 </td> <td >@{ pPage: p2} </td> </tr> </table>

Access through a browser: hTtp: // 127.0.0.1: 8080/webeasy/show.html? P1 = 1 & p2 = 2

You will see


Parameters submitted on the previous page:
Parameter Name Value
P1 1
P2 2

(Example file: _ samples/show.html)


Next, the example above

· Create a file submitform.html under the WebEasy system directory (for example, D:/webeasy.pdf. The content is

Example of using form to submit Parameters
<Form method = post action = "show.html"> p1: <input name = p1> <br> p2: <input name = p2> <br> <input type = submit value = submit> </form>

(Example file: _ samples/submitForm.html)

Access through a browser: hTTP: // 127.0.0.1: 8080/webeasy/submitForm.html

You will see


Example of using form to submit Parameters

O input 1 and 2 in the input box, and then click Submit.

O you see


Parameters submitted on the previous page:
Parameter Name Value
P1 1
P2 2

Using the pPage bag, you can easily retrieve the parameters submitted by the customer from the previous page, whether submitted through links or forms.


Download and description of light platform Resources

Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8381859

Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585

The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please pay attention to the latestDevelopment Manual


Note: The light-Open Platform and our development instances are permanently free of charge and are not intended for use. That is to say, You Can slightly modify our instances and operate them on your own or sell them to your customers, we will not charge you a penny.



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.