Hi....could you please help me resolve this problem...?
A servelet "junk" is called with the below parameters site and facility. Inside
this servlet Oper is also called and I want this site and facility to be passed
to Oper servlet. But it is not happening so. Can you help me in doing this...?
Currently I code has,
out.println("<FRAME SRC=\"Oper?site=fSite&facility=fFacility\" NAME=Operations
NORESIZE>");
The above doesn't work. Please help me how to pass the site and faciltiy while
calling Oper servlet....?
http://134.204.95.76:8080/servlet/junk?site=7369&facility=CLERK
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class junk extends HttpServlet{
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException{
String fSite = null;
String fFacility = null;
res.setContentType("text/html");
PrintWriter out = res.getWriter();
fSite = req.getParameter("site");
fFacility = req.getParameter("facility");
out.println("<HTML>");
out.println("<HEAD>");
out.println("<TITLE>SAMPLE</TITLE>");
out.println("</HEAD>");
out.println("<FRAMESET ROWS=\"200,300,*\" BORDER=0>");
out.println("<FRAMESET COLS=\"*,*,*,*\">");
//out.println("<FRAME
SRC=\"Oper\"+'?'+'site='+'fSite'+'&'+'facility='+'fFacility' NAME=Operations
NORESIZE>");
out.println("<FRAME SRC=\"Oper?site=fSite&facility=fFacility\"
NAME=Operations NORESIZE>");
out.println("<FRAME SRC=\"Reso\" NAME=Resource NORESIZE>");
out.println("<FRAME SRC=\"Dept\" NAME=Dept NORESIZE>");
out.println("<FRAME SRC=\"Stat\" NAME=Status NORESIZE>");
out.println("</FRAMESET>");
out.println("<FRAME NAME=Output NORESIZE>");
out.println("<FRAME SRC=\"submit.html\" NAME=Submit
NORESIZE>");
out.println("</FRAMESET>");
out.println("</HTML>");
}
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html