There are several ways to accept front page parameters

1,, it is acceptable to use the relative direct get** (but it must be introduced to him first, and set and get)

    String us= it.getUsername();

2,, use the relative (instantiate new for him first), and then contrast. 

Qkhzong a = new Qkhzong();

a.setId(qkh.getId())

the first method:

This is the jsp page

 this is the action class 

Instantiate it to accept the

 second method:

The Jsp page

 Action class


  accepts the value of the front page, which is directly accepted by the relative .get method

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326165736&siteId=291194637