Various methods of transmitting value

Source: Internet
Author: User

Four ways of transmitting values: Form form hidden field URL JavaBean

JSP pages like Java background Pass-through method:

Pass a value: Method name? parameter name = value

Pass Multiple values: Method name? parameter name = value & Parameter name = value &  

Wind.location.href =/Path/method name? parameter = value &

The following is also the path name .....  

For example: Wind.location.href =/Path/method name? parameter = value & Url= ". /.. /method name? parameter name = value; "

A page like C page pass value

Struts: Fixed value and & (page capture)

Java background: Getrequest (). GetParameter ("type");

Getrequest (). Serattribute ("type", type);

<result name= "test" type= "redirect" >doIndex.do?status=1&amp;type=${type}</result>

  

Various methods of transmitting value

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.