Form  to Servlet

Hi there
When I send information to the servlet using method="POST" from a form
The information is then stored into database
But the servlet returns a blank htm page
Is there a way to prevent this ?
Thanks
IB

The servlet should do one of two things:
Generate an HTML output stream itself with the resulting page.
or (more in tune with J2EE thinking)
Forward the transaction to a JSP or HTML page in the same webapp. This is done as follows:
getServletContext().getRequestDispatcher("/resultpage.jsp").forward(request, response);Such a servlet normally validates the input fields. If it finds an error it returns to the form page, adding an error message and prepopulating the fields. If it succeeds it will switch, instead, to some kind of results page, or maybe the next form in a sequence.

Similar Messages

  • UNIX: problem running an DEV & QA environment using form/report servlets

    UNIX: problem running an DEV & QA environment using form/report servlets
    I am trying to setup on one server an DEV and QA environment using the Forms Servlet, Forms Listener Servlet and Report Servlet.
    I think I have the Forms Servlet and Forms Listener Servlet running properly. The problem is setting up the DEV and QA environment for running reports.
    For example, when in DEV environment I would like to run a report from a directory specified in the REPORTS60_PATH. This doesn't seem possible.
    It might be easier if I describe my configuration first:
    DEV: run all forms and reports from the directory /data/release/dev
    QA: run all forms and reports from the directory /data/release/qa
    ---DEV & QA Settings Forms Listener Servlet:
    zone.properties:
    # DEV
    servlet.fl60dev.code=oracle.forms.servlet.ListenerServlet
    servlet.fl60dev.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/dev.env
    # QA
    servlet.fl60qa.code=oracle.forms.servlet.ListenerServlet
    servlet.fl60qa.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/qa.env
    ---DEV & QA Settings Forms Servlet:
    servlet.f60servlet.code=oracle.forms.servlet.FormsServlet
    --- Settings for Reports Servlet:
    servlet.RWServlet.code=oracle.reports.rwcgi.RWServlet
    Custom Env files since we are using Developer 6i Patch 7
    dev.env and qa.env
    Here I specify FORMS60_PATH and REPORTS60_PATH,
    eg: DEV -> FORMS60_PATH=/data/release/dev
    REPORTS60_PATH=/data/release/dev
    likewise for QA ../qa
    In the formsweb.cfg file i have something like:
    [dev]
    serverURL=/servlet/fl60dev
    form=test.fmx
    [qa]
    serverURL=/servlet/fl60dev
    form=test2.fmx
    I have tested the following and they work without problems:
    1. forms listener test page, eg: http://webserver:7777/servlet/fl60dev
    2. running forms from the 2 environments
    eg: http://webserver:7777/servlet/f60servlet?config=dev
    this runs the form in the FORMS60_PATH (/data/release/dev)
    Now my problems start with Reports.
    When I run a report from forms (using run_report_object) it will not run any reports
    as specified in the REPORTS60_PATH
    Even using this url:
    http://webserver:7777/servlet/RWServlet?server=rep60&report=test.rdf&destype=cache&desformat=html&
    userid=scott/tiger@test9i
    It NEVER seems to pickup and use the REPORTS60_PATH. I have tried nearly everything.
    I have gone throught the instructions in "Integrating Oracle9iAS Reports in Oracle9iAS Forms -
    White Paper"
    (http://otn.oracle.com/products/forms/pdf/277282.pdf)
    and Forms6i Patch 7: Oracle Forms Listner Servlet for Deployment of FOrms on the Internet
    (http://otn.oracle.com/products/forms/pdf/p7listenerservlet.pdf)
    plus any other documents in metalink relating to forms, or report servlets. I am
    totally confused, please help.
    I have tried setting the REPORTS60_PATH in the following files without success:
    custom.env (as specified by initArgs=EnvFile in zone.properties)
    jserv.properties
    in the zone.properties I have tried to set a custom env file for the report servlet:
    servlet.RWServlet.code=oracle.reports.rwcgi.RWServlet
    servlet.RWServlet.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/dev_rep.env
    NO LUCK.
    The only place that I can set the REPORTS60_PATH
    is in "[6iserver home]/reports60_server" file when I start the reports server (did I even
    get this right - I do have to have a reports server running don't I?)
    Does this meaan I have to run multiple report servers for each of my environments?
    Based on all the documentation I thought that REPORTS60_PATH as specified in the files relating
    to the forms servlet would be the place to specify the path.
    As you will understand I am getting really fustrated with this and it seems to
    me that the reports servlet configuration in 6i is really half baked and since 9i
    is coming out it will never be fixed.

    I am even not able to run forms servlets from two different forms60_path, Is there any configuration do you make other than what you have mentioned in this post.
    I already open a TAR in this regard, I am still waiting reply from ORACLE.
    Thanks,
    Shaik Ather Ahmed

  • OC4J and Forms Listener Servlet

    We are currently using Apache/JServ to deploy our Forms applications with the Forms Listener Servlet. Can we use the OC4J servlet container to deploy them and stop using JServ or must we keep the 2 containers (JServ and OC4J) in parallel ?

    Oracle9iDS includes a copy of OC4J so you can develop and test your Web applications on your own machine without the need to install the full Oracle9iAS.
    However when you finished developing and you want to deploy your application, you'll do this on an Oracle9iAS installation on a separate server since this is the scalable supported way. (and also the correct way in terms of licensing).

  • Can not run the test form using servlet (patch 8)

    Installed 9I AS 1.0.2.2.1 and forms patch 8 on Windows 2000.
    Configured the Forms Listener Servlet by following the white paper "Forms 6i Patch 8: Oracle Forms Listener Servlet for Deployment of Forms on the Internet".
    I can get the page titled Forms 6i Listener Servlet using URL: http://myserver/servlet/oracle.forms.servlet.ListenerServlet.
    However, I can not run the test form using the servlet by the url:
    http://myserver/servlet/f60servlet?config=servlet. In the formsweb.cfg file I also added a section
    [servlet]
    serverURL=/servlet/oracle.forms/servlet.ListenerServlet
    No meaningful error message. At first it seems very slow, and then shows the "The page can not be displayed" page.
    Please advise.
    Thanks.

    u must add "Script Alias ifcgi60 "$ORACLE_HOME/forms60/cgi" in confirguration.

  • SSl certificate with form listerner servlet

    We have ssl implemented at Apache and Forms. the forms are running in https mode and we were using j2se 1.4. Now I have upgraded the j2se to 1.5
    now the certificates are going to expire and in have to renew them. For Apache it is clear that i have to renew it.However for forms i am not sure--
    In meetalink Doc ID:      123718.1 11i: A Guide to Understanding and Implementing SSL for Oracle Applications, it is mentioned that
    "In Forms Listener Servlet --All communication between the client PC and the forms server is routed via the apache port and forms servlet eliminating the need for the additional certificate required by the Forms Listener Server architecture. HTTPS Users wishing to use J2SE 1.4.2.x must use the Forms Listener Servlet. The following steps are necessary only if you are using the Forms Listener Server"
    So i want to know that do i still need to renew the certificate for forms? Or will i be able to access forms without any forms certificate after it expires?
    Thanks

    I did not implement SSL with Forms Listener Servlet on 11i, but in R12 (which use Forms Listener Servlet) a separate certificate is no longer needed for Forms since Forms will share the same wallet as the Oracle HTTP Server. So, you should be able to access your forms without renewing the certificate for forms.
    Note: 376700.1 - Enabling SSL in Release 12
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=376700.1

  • Form Authentication Servlet  and MD5

    Dear forum,
    I have the following servlet to authenticate a user via form. If you go to the root url you get the login html and the authentication works fine but if the user knows the url of a specific html just by typing the url gives access to the page without going through the authentication. The website is composed of htmls and servlets. How can I force the authentication for the htmls and the servlets. I included at the bottom how I added the Login servlet to the web.xml. I suspect that the servlet definition in the web.xml is the problem.
    Also I would like to use MD5 encryption, would someone suggest how this can be accomplished.
    Thanks.
    This is the code:
    import java.io.*;
    import java.util.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.sql.*;
    import javax.sql.*;
    public class LoginServlet extends HttpServlet {
      public void doPost (
         HttpServletRequest     request,
         HttpServletResponse     response
        ) throws ServletException, IOException
      String item = request.getParameter("account");  
      doGet(request,response);
      public void doGet (
         HttpServletRequest     request,
         HttpServletResponse     response
        ) throws ServletException, IOException
       HttpSession session = request.getSession(true);
       PrintWriter out = response.getWriter();
         try {
              String driverName="sun.jdbc.odbc.JdbcOdbcDriver";
              String dbUrl="jdbc:odbc:Virtual_Library_DB";
              Class.forName(driverName);
              Connection db =DriverManager.getConnection(dbUrl,"","");
              if ((session.getAttribute("user") == null) || (!session.getAttribute("ip").equals(request.getRemoteAddr()))){
                   PreparedStatement pStmt = db.prepareStatement("SELECT * FROM Login WHERE Login.account =? AND Login.password=? ");
                   pStmt.setString(1, request.getParameter("account"));
                   pStmt.setString(2, request.getParameter("password"));
                            pStmt.setString(3, request.getParameter("level"));
                   ResultSet rs = pStmt.executeQuery();
                    System.out.println("hello");
                   if(!rs.next()){
                        System.out.println("Account is not valid.");
                        request.setAttribute("msg", "Account is not valid.");
                        RequestDispatcher rd = request.getRequestDispatcher("LoginInvalid.html");
                        rd.forward(request, response);
                   else do {
                        int id = rs.getInt(1);
                        String account = rs.getString(2);
                        session.setAttribute("user", new Integer(id));
                        session.setAttribute("account", account);
                        session.setAttribute("ip", request.getRemoteAddr());
                        System.out.println("User " + session.getAttribute("user") +" has logged on.");
                        request.setAttribute("msg", "User has logged on.");
                        RequestDispatcher rd = request.getRequestDispatcher("index.html");
                        rd.forward(request, response);
                   } while(rs.next());
                   rs.close();
              else {
                   System.out.println("User has already logged on.");
                        request.setAttribute("msg", "User has already logged on.");
                        RequestDispatcher rd = request.getRequestDispatcher("index.html");
                        rd.forward(request, response);
              db.close();
         catch(Exception exp){
              System.out.println("Exception: "+ exp);
       out.close();
    web.xml
    <servlet>
        <servlet-name>LoginServlet</servlet-name>
        <servlet-class>LoginServlet</servlet-class>
      </servlet>
    <servlet-mapping>
        <servlet-name>LoginServlet</servlet-name>
        <url-pattern>/LoginServlet</url-pattern>
      </servlet-mapping>

    Check the session in the servlets that are allowed only for logged-in users.
    public class ServletUtils
        public static boolean checkLogin(HttpServletRequest request, HttpServletResponse response)
            HttpSession session = request.getSession(false); // false = don't create a new session if not logged in
            if (session != null)
                return true;
            Logging.log("tried to access page without login, redirecting to login");
            ...redirect to login.html...
            return false;
        // At the start of your doGet()'s:
        if (!checkLogin(request, response))
            return;Do you really need static documents to be authenticated? dot.gif's and all? Someone can make a zip file of them anyway and post it to their own web site or Kazaa.
    If you have a couple of html pages you want authenticated, easiest is to write them as servlets (+ maybe JSP's) and do the login check there.
    Ok, let's say you have ...what, an "image database" (heh) that you want available to logged-in users only. Write a servlet that serves those pages. That servlet checks the session, and then copies the appropriate file to the user (remember to set content type; consider caching the files if hit rate is very high.) The servlet would be called like /images/show?id=gerbilsex/closeup.gif to fetch the named file. Put the files outside the web server's document directory so they are not accessible except through the servlet. Perform strict checks on the file name to disallow nastiness like id=../../../etc/passwd. A similar database solution is also possible. Another variant is to map a servlet to a "virtual directory name" and get the actual file name from the URL path -- similar to the ?id= solution, except the URLs don't have parameters.
    About md5: md5 isn't an encryption algorithm, it is a hash algorithm (aka "message digest" or "fingerprint"). It can't be decrypted. What do you really want to accomplish - encryption or hashing?

  • Problem with form or servlet???

    hello..
    i am trying to send some form data to a servlet for processing..
    here is the code for the form
    <table border="0">
    <form action="details.upd" method="post" name="upd">
    <tr><td>Username</td><td><input name="uname" type="text" size="25" maxlength="30"
    value=<%=session.getAttribute("user") %> /></td>
    </tr>
         <tr>
    <td>password</td><td><input name="pass" type="password" size="25" maxlength="30" />
    </td></tr>
    <tr><td>confirm password</td><td><input name="pass2" size="25" maxlength="30" type="password"/></td></tr>
    <tr><td>Email</td><td><input name="mail" type="text" size="25" maxlength="30"
    value=<%=session.getAttribute("EMAIL") %> /></td></tr>
    <tr><td align="center"><input name="submit" type="button" value="Update" /></td></tr>
    <tr><td align="center"><input name="ch" type="hidden" value="det"/></td></tr>
    </form>
    </table>
    here is the web.xml entry for my compiled servlet
    <servlet>
    <servlet-name>update</servlet-name>
    <description>
    Servlet used for updates sent from landlord sessions
    </description>
    <servlet-class>UpdateServlet</servlet-class>
    <load-on-startup>5</load-on-startup>
    </servlet>
         <servlet-mapping>
    <servlet-name>update</servlet-name>
    <url-pattern>*.upd</url-pattern>
    </servlet-mapping>
    the problem is that when i click the submit button to send the data, nothing happens....absolutely nothing. the page just stays as it is...please can u spot any fatal error in the code?
    I have looked and looked without success..please help

    yeah..i solved that.. but now i am getting another
    problem...
    why does this code...
    Stringuser=(String)session.getAttribute("user");
    gives me a class cast exception????
    please helpBecause the object named "user" in your session isn't
    a String.ok...thks

  • Uploading File To MySQL from HTML form via Servlet

    Hello all !
    I hope this is better place to ask.
    I'm working on simple Servlet/Jsp application trying to hold to MVC pattern and got stuck on uploading file to MySQL db.
    Here's what I'm trying to accomplish:
    1) client submits a JPEG image via a simple html form on a webpage.
    2) JPEG is put into a database table, column field of type BLOB.
    3) Servlet processes the request, gets a connection to the db and inserts the image into the table.
    4) after that user is able to retrieve an image from db and display it in JSP page.
    This is pretty much the same task Angela was trying to do here:
    http://forum.java.sun.com/thread.jspa?threadID=667597&messageID=3905449
    I could use her snippets if i knew what is what and decided to figure out this myself. Aftet some investigation i found out that i need to import org.apache.commons.fileupload.*;which i found here: http://jakarta.apache.org/commons/fileupload/
    what am i driving at ?
    -----------------------1-----------------------
    After first line of code
    boolean isPart = FileUpload.isMultipartContent(request);netBeans 5.5 beta2 with bundled Tomcat 5.5.17 underlines this with warning saying that
    org.apache.commons.fileupload.FileUploadBase
    has been depreceted
    is it a reason for concern ?
    -----------------------2-----------------------
    Is it actually good idea to store images in db as blob ?
    what about large ammounts of text ?
    thank you
    -Dominik

    is it a reason for concern ?Yes.
    You should take a look at the method in the documentation and find out exact reason for depricating it.
    If it is depricated becouse they going to remove it in the future you should use the new alternative method becouse if you use the old method your app will not work in the future releases of the API.
    If it is depricated becouse it is not safe to use the method you should clearly understand the risks involved in using the method and see if that can give you any trouble in your project.
    -----------------------2-----------------------
    Is it actually good idea to store images in db as
    blob ?I think that it is ths best option available when you want to store binary data
    what about large ammounts of text ?You can use clob columns.
    By the way when you store files in the database its better you put some extra columns to store the file name and file type(mime) becouse you cant directly detect those things later by just looking at the data of the file.

  • Displaying images in HTML Forms inside Servlets

              Dear friends
              How are you?
              I am developing Servlets in WebGain Studio Pro V4.1 VisualCafe
              V4.1 to display dynamic HTML forms with embedded
              images (*.jpg and *.gif).
              Please see the following sample code -
              "<DIV ID=\"Logo\" STYLE=\"position:absolute; left: 4%; top: 4%;
              width: 25%; height: 12%; z-index:1; visibility:visible\">" +
              "<IMG SRC=\"FigLogo.gif\" WIDTH=\"100%\" HEIGHT=\"100%\">" +
              "</DIV>"
              Then I deploymed servlets to BEA WLS 6.0 by including Servlets
              in the Web.xml file. However, I do not see the images when
              viewed in IE5.0 browser.
              I appreciate all comments and suggestions.
              Thanking you
              Very truly yours
              Sriram (Ram) Peddibhotla, PhD
              

              Dear Friends
              How are you?
              I moved all images (*.jpg, *.gif) to the subdirectory
              /myDomain/applications/DefaultWebApp_myServer/images
              and they are displaying now in the servlets with HTML forms.
              Thanking you
              Very truly yours
              Sriram (Ram) Peddibhotla, PhD
              "Sriram (Ram) Peddibhotla" <[email protected]> wrote:
              >
              >Dear Friends
              >
              >How are you?
              >
              >When the Servlet displays in the browser (IE5.0), when I click on where
              >the image
              >should be, I see the path
              >http://localhost:7001/servlet/FigureName.jpg (????). Why did it add
              >the /servlet
              >part to the path, I thought that was exclusively for deploying servlets
              >in web.xml
              >file.
              >
              >Thanking you
              >Very truly yours
              >Sriram (Ram) Peddibhotla, PhD
              >
              >
              >"Xiang Rao" <[email protected]> wrote:
              >>
              >>Check access.log to see the status of your image request (status code
              >>and response
              >>size). You can also check weblogic.log. On the other hand, IE cache
              >setup
              >>(e.g.,
              >>"Never") could cause this problem.
              >>
              >>"Sriram (Ra) Peddibhotla" <[email protected]> wrote:
              >>>
              >>>Dear friends
              >>>
              >>>How are you?
              >>>
              >>>I am developing Servlets in WebGain Studio Pro V4.1 VisualCafe
              >>>V4.1 to display dynamic HTML forms with embedded
              >>>images (*.jpg and *.gif).
              >>>
              >>>Please see the following sample code -
              >>>"<DIV ID=\"Logo\" STYLE=\"position:absolute; left: 4%; top: 4%;
              >>>width: 25%; height: 12%; z-index:1; visibility:visible\">" +
              >>>"<IMG SRC=\"FigLogo.gif\" WIDTH=\"100%\" HEIGHT=\"100%\">" +
              >>>"</DIV>"
              >>>
              >>>Then I deploymed servlets to BEA WLS 6.0 by including Servlets
              >>>in the Web.xml file. However, I do not see the images when
              >>>viewed in IE5.0 browser.
              >>>
              >>>I appreciate all comments and suggestions.
              >>>
              >>>Thanking you
              >>>Very truly yours
              >>>Sriram (Ram) Peddibhotla, PhD
              >>>          
              >>
              >
              

  • Submit PDF form to Servlet

    Hello
    I have a PDF form with a Submit button which when clicked should post this to a servlet. The servlet should receive the PDF and email it a designated mail box. Since we would like the email to be sent from a dedicated mail address, we are using this approach instead of the Livecycle designer's email button.
    The problem now: I have set the Submit As property on the button to PDF and provided my servlet URL in the form using LiveCycle designer.
    In my servlet, I have the code "System.out.println(request.getQueryString());" to see what data I am receving. However, everytime I submit the form "null" is being printed on the console. I am not able to understand how to get this filled out PDF form attached and emailed.
    Right now, I have the following code in my servlet which is attaching a PDF located on my hard disk to email and this works fine.
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource("C:/file.PDF");
    But how do I make sure the form that will be received by the Servlet be emailed. Appreciate any help.

    Hello
    I have a PDF form with a Submit button which when clicked should post this to a servlet. The servlet should receive the PDF and email it a designated mail box. Since we would like the email to be sent from a dedicated mail address, we are using this approach instead of the Livecycle designer's email button.
    The problem now: I have set the Submit As property on the button to PDF and provided my servlet URL in the form using LiveCycle designer.
    In my servlet, I have the code "System.out.println(request.getQueryString());" to see what data I am receving. However, everytime I submit the form "null" is being printed on the console. I am not able to understand how to get this filled out PDF form attached and emailed.
    Right now, I have the following code in my servlet which is attaching a PDF located on my hard disk to email and this works fine.
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource("C:/file.PDF");
    But how do I make sure the form that will be received by the Servlet be emailed. Appreciate any help.

  • Form VS Servlets/JSP

    Hi Portal Gurus,
    I am very new to Oracle Portal. I am reading Portal documents and have a question.
    For an insert/update/delete kind of operation, what should one choose, Oralce Forms or Jsp/Servlet?
    What criteria decide the choice?
    Thanks in advance.

    Jsp / servlet and portal forms cannot be compared as there can be many things in them which you can design as per your requirements.Oracle form provides you 3 different ways of inerating with the database,it can be Form based on tables , MD forms and Form based on procedure.
    As far as you requirements shows that you simply want to Insert/Update or delete data that is very much possible with oracle portal forms and then you will have the option of publishing these forms as portlets on your page.
    For more inforamtion you please refer to the portal documentations.

  • HTML forms and Servlets

    Hi all.
    This is the story:
    I got a SELECT field that contains OPTIONS with values and labels (both different). How I do to get this two data.
    With request.getParameter("menu1") i can get the VALUE, how i can get the Label?
    Second quiestion:
    I got a input checkbox type , this has a VALUE property, but In my servlet i just want to know if it's cheked or no.
    If i do something like request.getParameter("check1")I get the VALUE data. how to tell if it is cheked??
    Thanks in advance any help.

    First Question:
    The option value is what gets sent is when the form is submitted. If you want the information sent then you'll have to add it to the value and parse it out in the servlet.
    Second Question:
    Only checkboxes that are checked get sent when the form is submitted. If the parameter does not return null then the box was checked. If the box was not checked then the getParameter call will return null.

  • Submit of form to SERVLET

    i am calling servlet on submit button of form created in JSP.
    *<form name="form" method="GET" action="/test" >*
    test.java servelt is in default package.
    404 error is reflecting up when i pressing submit....
    can anybody what r possible reason for this.............

    *<servlet>*
    *<servlet-name>test</servlet-name>*
    *<servlet-class>test</servlet-class>*
    *</servlet>*
    *<servlet-mapping>*
    *<servlet-name>test</servlet-name>*
    *<url-pattern>/test</url-pattern>*
    *</servlet-mapping>*
    this was the mapping in web.xml
    any mistake there...
    and you mentioned its not gud practise to keep in default folder...
    then do want me to keep in mine created package....
    n more thing i wanna why i am not able to create servlet java file in web folder..
    whenever i create it automatically falls into default package...
    i am new to J2EE concepts plz help......

  • Weblogic/forms 11g servlet and webforms app menu error

    Help!
    I have OWLS 11gR1 (10.3.3) and FWM, FormsReports (11.1.1.3) installed on Windows 2008-64bit.
    I also have OWLS 11gR1 (10.3.3) and FWM, FormsReports (11.1.1.3) installed on Windows XP (32-bit).
    I've compiled my app in each environment, respectively, and I'm getting different results: FRM-41068 on 64bit; No errors on 32bit.
    Here's the scenario:
    I have a custom menu with parent and menu items built from the database (cursor fetches in menu start up code and placed using set_menu_item_property built-in). Based on the user's privs, the menu is built dynamically.
    After I log into my 64bit version, I immediately get error "FRM-41068: Error in Set_Menu_Item_Property."
    Once I "OK" my way through the messages, my form is displayed with the attached menu, however, my menu placeholders display "<New Item>", as though the cursors failed on the fetch to the database and did not return my menu item names. If I click on one of the "<New Item>" menu items, I again "OK" my way through the messages... just as mentioned above.
    I don't have this problem in my 32bit XP environment (This also was not an issue with 10g AS (10.1.2.3, 32bit)).
    Also, to add, when I turn on session tracing for the session getting the FRM-41068, the errors go away, the forms and menus load correctly.
    Is there a Weblogic setting I'm missing somewhere (forms/ohs1/webcache)?
    [Forms 11g - Windows 2008 64bit - FRM-41068 - Menu Issues]
    Thanks for your help!

    Why wouldn't you post in the proper forum, i.e the Forms forum

  • Help - using Form Servlet (6i)

    Hi All,
    been trying to configure the forms listener servlet based on the white paper.
    When I opened the http://myserver/servlet/f60servlet, it showed the following messages:
    "Oracle Forms 6i Servlets
    The Forms Listener servlet is up and running.
    The servlet administration page has been moved to"f60servlet/admin", where "f60servlet" is the alias you defined for the Forms Servlet (class oracle.forms.servlet.FormsServlet) ... etc.."
    Then, if I tried to open my simple application with only one form as follows:
    http://myserver/servlet/f60servlet?config=test
    the webpage still showed the above messages.
    Previously I could run this app using forms CGI: http://myserver/cgi-bin/ifcgi60.exe?config=test
    How to solve the problem?
    Thanks
    Rgds

    The code fragment below shows how to send a POST method to a servlet URL.
    Write down this code in ur first servlet. to post data to some servlet in other application
    // connect to the servlet
    String location = "http://www.foo.com/servlet/servlet2";
    URL testServlet = new URL( servletLocation );
    URLConnection servletConnection = testServlet.openConnection();
    // inform the connection that we will send output and accept input
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    // Don't use a cached version of URL connection.
    servletConnection.setUseCaches (false);
    servletConnection.setDefaultUseCaches (false);
    // Specify the content type that we will send binary data
    servletConnection.setRequestProperty
    ("Content-Type", "<insert favorite mime type>");
    // get input and output streams on servlet
    // send your data to the servlet
    Sudhir Nimavat

Maybe you are looking for

  • Changing colors in JTree

    How to change the color of the lines between specified nodes in JTree ? I would like to change colour of the line only between 2 specified nodes. Is this possibly ?

  • Lenovo N 500 - Keeping The Computer On/Turning It Off

    I have a Lenovo N 500 laptop.  I keep it on during the night while I'm sleeping.  Is this a good idea or should I turn it off when I'm not using it??

  • OIM11g - GTC Trusted - Events are in Data Received state

    Hi all, I ran GTC Trusted Recon. I have received close to 15k events. But all the events are in data received state. I can see the keyfield given in recon rules in event manager. I have set the recon batch size as 300. I tried to evaluate manually, w

  • Why does my messages not send?

    Can anybody tell me why my messages will not send? They star to send and then as it gets to the end just stops and doesn't send.

  • Hardware NLB Webcache and SSL

    Hi, I've configured Webcache 10.1 with iAS R1 mid tiers with SSL and all is fine. A new requirement is to front this setup with two Cisco NLB's on a common domain name and ip address. If I need to configure the NLB's with an SSL sticky connection to