This will work:
 
Request.setParameter("id", "123");
Response.callPage("/servlet/DoIt", Request);
 
---
 and in DoIt:
 
String id = (String) Request.getParameter("id");
 
 
-- Mark
 
 
-----Original Message-----
From: David Wall <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, June 12, 1999 12:37 PM
Subject: CallPage and passing parameters in

Is there a trick to passing parameters with CallPage?
 
I thought I could easily create a simple JSP that does a CallPage to display another page (in this case, created by running a servlet that in turn redirects to a JSP.  But, the CallPage url cannot contain a simple parameter (ie. CallPage("/servlet/DoIt?id=123") ).
 
I then tried adding
     request.getSession(true).putValue("id","123")
 
This still seemed to fail to get 'id' parameter in.  What might I be doing wrong?  I'm using JRun 2.3.1 build 145.
 
David

Reply via email to