into jsp file, i defined a function that is delimited by <%! and %> (everythings's normal till here...) and i'd like to use HTML tags inside this function.My code doesn't work because it seems impossible to "break" the jsp code ( using %> ... html code .... >% ) before the end of the definition of the function.
This is what i did :

public void ....
[jsp code]
[html code]
[jsp code]

executing this code generates an error because a } is missing before the first %>

Using the function write (Writer class) is not really handfull ...

Do you have any idea to solve my problem ????

Thanks for help,