Hi, I don't think that you can forward a request to cgi-bin as will be altogather different web-application and will not be relative to current relative path.
You can do following things to incorporate your requirements. You can redirect your reuest to a servlet which will act as a decision maker or a controller which does all the processing before posting it to a report. Within the servlet you can make the queryString which can be added in the report url and can be sent to report server using sendRedirect. As far as the security concern is to be accounted, you can set a Functional Access Profile for every user in the database and that profile can be stored within the session as user enters into a valid application session using login. Whenever a request is fired by a valid user, you can always compare the user profile with the functional access profile and can determine whether he is allowed to have the access to that report or not. On the database end also, you can decide whether to show a particular data to a user or not. -ShriKant Vibha Jindal wrote: > Hi, > > I am making a web application using Iplanet Application Server. > I am using Oracle 6i to genrate reports. The reports are generated by > invoking a cgi script of Oracle Reports 6i. If I use response.sendRedirect, > it works. > > res.sendRedirect > ("http://157.227.15.228/cgi-bin/script?server=REP60_WisperSu > n&report=Audits_CoverSheet.RDF&destype=cache¶mform=no&userid=eaton/eaton > > @wisper&pagestreaming=no&p_auditid=1372&p_format=HTML&desformat=HTML"); > > But, the problem is, that I don't want to show all these variables in the > URL. Basically, I don't not want to use a query string. I want to use the > POST method. > But, I also do not want to use hidden fields in a form as teh user can view > its source. > I want to submit a form using 'Post' to a servlet and then forward the > request to a JSP, which will add more parameters to the request and in turn > forward it to the cgi script. > > The Report server, which has the cgi script and my application are on > different machines. > > I tried forwarding the request from the servlet to the cgi script. > RequestDispatcher dispatcher = > this.getServletContext().getRequestDispatcher > ("http://157.227.15.228/cgi-bin > /script"); > dispatcher.forward(req,res); > > But this doesn't work. > > 1. Is it possible to forward a request to a cgi script? > 2. How do I give teh absolute path, as they are on different machines? > > Regards, > Vibha > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com