By Theresa Reynolds,2014-10-09 10:23
19 views 0

得到有页面传入的参数 (parameter), (不管是由表单提交的还是


    <bean:parameter id="par1" name="username"/>

    <bean:parameter id="par2" name="sex" value="male"/>

    <bean:parameter id="par3" name="yourname"


    <%= par1 %>

    <%= par2 %>


     for (int i=0; i<par3.length; i++){




    Retrieve the value of the specified request parameter (as a single value or multiple values, depending on the

    multiple attribute), and define the result as a page scope attribute of type String (if multiple is not

    specified) or String[] (if multiple is specified).

    If no request parameter with the specified name can be located, and no default value is specified, a request

    time exception will be thrown.

    Attribute Description Name

    Specifies the name of the scripting variable (and

    associated page scope attribute) that will be made

    available with the value of the specified request id parameter.


    If any arbitrary value for this attribute is

    specified, causes a call to

    ServletRequest.getParameterValues() and a multiple definition of the result as a bean of type

    String[]. Otherwise, ServletRequest.getParameter()

    will be called, and a definition of the result as a

bean of type String will be performed.

    (RT EXPR)

    Specifies the name of the request parameter whose value, or values, is to be retrieved. name


    The default parameter value to return if no

    parameter with the specified name was included in

    value this request.

    (RT EXPR)

Report this document

For any questions or suggestions please email