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.