This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes how can I modify a bean's property only by html button? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "how can I modify a bean Watch "how can I modify a bean New topic
Author

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

Sylven Yip
Ranch Hand

Joined: Aug 30, 2007
Posts: 42
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

Joined: Nov 24, 2005
Posts: 14685
    
  16

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.


[My Blog]
All roads lead to JavaRanch
Sylven Yip
Ranch Hand

Joined: Aug 30, 2007
Posts: 42
thanks~
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how can I modify a bean's property only by html button?
 
Similar Threads
Using DOM to create HTML document?
JSP Editor
right click on the browser
Java and XML
javascript library which can convert html form to an xml ?