variable « String « JSP-Servlet Q&A

1. assigning a value to a String variable in jsp

Is the any way to assign a value from the text field to a jsp/java String variable with out submitting the form ? i.,e i need to assign <%String s="";%>//that means it ...

2. how to use string as reference variable in java?

i have a servlet class as shown below

public class test extends HttpServlet {  

private adv1 adv1;
private adv2 adv2;
private adv3 adv3;


private adv50 adv50; 


init() {   ...

4. using string value as a variable name

6. Passing string variables between servlets