Hi friends,
There are a couple ways known to pass values from js/html to jsp.
1. jsp:setProperty ....
2. httpsession
However, in a jsp page like
I want to pass the user's selection value (e.g. group1) to jsp and
retrieve the members names of
s******e 发帖数: 63
2
assume your jsp page is called group.jsp
【在 F******y 的大作中提到】 : Hi friends, : There are a couple ways known to pass values from js/html to jsp. : 1. jsp:setProperty .... : 2. httpsession : However, in a jsp page like : :
m**c 发帖数: 90
3
The communication between JSP and JS is one-way. You can only access JSP
information in JS, but not the other way:
There are two ways to solve your problem:
1. Use "processSel()" function to submit a form so that page can be
regenerated. If you don't want use to see the form is submitted, you can use
【在 F******y 的大作中提到】 : Hi friends, : There are a couple ways known to pass values from js/html to jsp. : 1. jsp:setProperty .... : 2. httpsession : However, in a jsp page like : :
F******y 发帖数: 1988
4
Thanks very much for your helpful response.
I prefer the first approach you suggested of using a hidden frame to
regenerate the page value. I appreciate very much if you can send me samples
of processSel(), then use a hidden frame to regenerate the form value or page
value.
Thanks again.
use
interact
【在 m**c 的大作中提到】 : : The communication between JSP and JS is one-way. You can only access JSP : information in JS, but not the other way: :