Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The way url calls action and passes parameters

Shulou Source: shulou.com Published: 2022-06-03 05:24:35 11月24日 Update

Configure the action path in the xml file, ApproveAction is the path configured in xml

DelInfoById is the method you want to call in the action file, and id is the parameter to be passed.

Http://localhost:8080/project/ApproveAction.do?method=delInfoById&id=dbaac40e932b11e9aeb26c92bf669f78

This type of writing is used to test calling the action method. In the action method, use the

String id=request.getParameter ("id"); this method gets the parameter values passed by url.

Tags: Methods parameters files configuration writing paths tests Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft vpn MariaDB Shulou Technology Redmi