- 论坛徽章:
- 0
|
请教高手:javascript和jsp之间的数组数据传递问题(已解决)
Your javascript is on client side and the jsp are generated by the server. To pass values from client to server, the only way is to put them in a form as rollingpig suggested. You CAN NOT pass object from client to server, I guess, that is what you want to do about the "Array". However, there is a way to pass object from jsp to jsp on the same app server, that is using request's session object. So if your javascript's array data was originally created from server, you can do it by using session object. If your javascript's array data depend on client's input, then simply you don't have other choices. |
|