Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can I modify a bean's property only by html button?

 
Sylven Yip
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the past,i use xmlhttprequest to do this.
can i use html element(with JSTL) or javascript to do this without send any request to another page?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i use html element(with JSTL) or javascript to do this without send any request to another page

JSTL is interpreted on the server side, so you can discard this option already. Javascript (without something like XmlHttpRequest ) won't help either, as javabeans live on the server, not on the client. You have to send a request.
 
Sylven Yip
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks~
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic