chrstian ferma wrote: my plan is when i enter a number in textbox it will automatically formated
Not with
JSP. JSP executes on the server long before the page is sent to the browser. You'll need to use JavaScript.
Please read
this article to understand how JSP works.