What I need to accomplish is to submit a request to another web server from a JSP page.
Initially, at the time when the JSP page is rendered, it gets an ArrayList object. This object has to be passed while requesting to another web server. This object can be retained in the page by setting it to session. But it is not enough when this object needs to be passed to different web application running in different web server.
Can we back up a minute here. Although the original poster thought in terms of passing an ArrayList object, lets think of just passing an ordered set of values. That could be as simple as hidden form values with names that transmit the order.
Naturally the target web app will have to extract the form values and put them in order in a new ArrayList object.
Originally posted by Chengwei Lee: If he uses web services, think he should be able to?
Using something like SOAP you can, but that's quite different from submitting a form through a JSP. And just like RMI calls you're not in fact passing an object, but rather you're serialising an object and thus passing a copy of that object.