one way is to call WServlet from a jsp directly.
If your jsp needs to call a CGI program (or even a servlet) , u need to simulate the get ot post method functionality.
It can be done as follows.
String qry = "report="+rep+".RDF&userid=system%2Fmanager%40ibba&server=Rep60_INFRA5%2DOraHome82&desformat=pdf&destype=cache";
URL my_url = new URL("
URLConnection connection = my_url.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setAllowUserInteraction(false);
DataOutputStream send_data = new DataOutputStream(connection.getOutputStream());
send_data.writeBytes(qry);
DataInputStream read_data = new DataInputStream(connection.getInputStream());
String temp_data = "";
while ( (temp_data = read_data.readLine() ) != null) {
out.println(temp_data);
}
Hope this helps.
Jatin