<%=buffer%> can i do this? It can't seems to work. The console kept give me an undeclared variable error.
posted 15 years ago
In <% String buffer=new String; buffer="test"; %> the variable buffer is available locally and thus is not available in other scriplets. You need to declare the variable buffer using the <%! declaration(s) %> if you want to use buffer in other scriplets.