Any One!!! Help me. I tried the following code but it is not using the values in the session, it is creating a new object ( I check for this another included jsp , if not found in session create new one )every time i call this function from JSP
URL u = new URL("http://localhost:8080/loop.jsp");
URLConnection urlc;
for(int i=0; i< 4;i++)
{
myObject.setItem("MyItem", "MyItem"+i);
urlc = u.openConnection();
urlc.setDoInput(true);
urlc.setDoOutput(true);
urlc.setAllowUserInteraction(true);
DataInputStream in = new DataInputStream(urlc.getInputStream());
pt = new PrintWriter(new FileOutputStream("abcd"+i+".html"));
String s;
while((s = in.readLine()) != null)
{
pt.println(s);
}
[ June 17, 2002: Message edited by: Ven Mahi ]