We have a java program that forms a url
String urlString = http://serverInfo/x.jsp?param1=zzz
URL url = new URL(urlString);
It then opens connection to this url, gets its contents as String and uses them as needed.
x.jsp in turn uses request.getParameter("para
m1') to get the parameter value and uses it to render the page.
Now instead of passing a String parameter "param1" to jsp, we want to pass an arbitrary java object. The idea is that jsp should be able to get this object using code like request.getAttribute("myOb
My question is, is it possible to grab the request object and do request.setAttribute() in the java program, before getting the contents of url. If not, is there any way to get the same effect, that, jsp being able to use request.getAttribute('myOb
ject") to grab the object.