Bean properties and form elements in JSP

  • Thread starter Michael Preminger
  • Start date
M

Michael Preminger

Hello!

I have a simple JSP page with a form, which input-elements I read into a
Java-Bean.

However, the value of a submit-button element, also a part of the same
form, with a name and a value, is not "set" in the JavaBean. All other
elements do. Is this standard behavior or does it sound strange?

Thanks

Michael
 
J

javaho

Michael said:
Hello!

I have a simple JSP page with a form, which input-elements I read into a
Java-Bean.

However, the value of a submit-button element, also a part of the same
form, with a name and a value, is not "set" in the JavaBean. All other
elements do. Is this standard behavior or does it sound strange?

Thanks

Michael
Whether the name and value of the 'submit' button are set in the bean is
up to you. If there is a reason for them to be set, you can do so.
 
J

javaho

Michael said:
Hello!

I have a simple JSP page with a form, which input-elements I read into a
Java-Bean.

However, the value of a submit-button element, also a part of the same
form, with a name and a value, is not "set" in the JavaBean. All other
elements do. Is this standard behavior or does it sound strange?

Thanks

Michael
Whether the name and value of the 'submit' button are set in the bean is
up to you. If there is a reason for them to be set, you can do so.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top