search

Home  >  Q&A  >  body text

java - jsp characters can be automatically filled in to user, but not to author. Why?

Some fields in user and author are the same.
When submitted from jsp, why can't it be automatically filled in to author?

曾经蜡笔没有小新曾经蜡笔没有小新2780 days ago508

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-05-17 10:10:34

    Some fields are the same. Assign the value yourself in Controller 里面 new 一个 author

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-17 10:10:34

    The name attribute of the form submitted by jsp is available to both user and author, and both user and author can receive it. . .

    reply
    0
  • 高洛峰

    高洛峰2017-05-17 10:10:34

    Data binding only supports binding to one object. You can package user and author into one object for transmission.

    reply
    0
  • Cancelreply