So how can code inside <% %>
Check with this code fragment. You don't need to submit this to server. This is only jsp file. so "hello" must be print in browser.