E
Evrim
Hi
I have a JSP that builds a table and shows the values in fields according to
what has been passed to it through a request.setAttribute of a servlet.
For example the two dimensional array "test" has this data:
Col1 Col2 Col3
Row1 a b c
Row2 d e f
and JSP will read this from request variable and display it.
These values (a,d) are displayed as hyper links to a page testpage.jsp.
What I need to do is, when user clicks a , I need to set b and c in a
variable array and pass it to the next page , or when user clicks d I need
to pass e and f to next page.
1. Could you please tell me how to do that ?
2. Do I need Javascript ? or it can be done in Java? I prefer to have all
the code in Java.
3. How is it possible to access and change a request variable from
JavaScript ?
Appreciate your help in advance
Evrim
I have a JSP that builds a table and shows the values in fields according to
what has been passed to it through a request.setAttribute of a servlet.
For example the two dimensional array "test" has this data:
Col1 Col2 Col3
Row1 a b c
Row2 d e f
and JSP will read this from request variable and display it.
These values (a,d) are displayed as hyper links to a page testpage.jsp.
What I need to do is, when user clicks a , I need to set b and c in a
variable array and pass it to the next page , or when user clicks d I need
to pass e and f to next page.
1. Could you please tell me how to do that ?
2. Do I need Javascript ? or it can be done in Java? I prefer to have all
the code in Java.
3. How is it possible to access and change a request variable from
JavaScript ?
Appreciate your help in advance
Evrim