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.