Is there a way to get values of local variables in one class and show that in jsp page?
For example,
public class a {
public method b() {
String c;
I want to use the String c and show it in jsp page.
${c}
1) Is there a way to use a local variable of a class from outside of that class?
2) if not, just make the variable global, and use it? ( What I mean by global is using static. I looked it up and Java doesn't have global variable)
3) if so, in JSP page, can you tell me some ways to show that value?
${class.variable name} <--- Would this work as well?