OC4J Form method="post" don't working

Hello!
I have a J2EE Application with Servlets and jsp's, with OC4J v.10.1.3 installed in my computer, with one page called index.jsp with this code:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Enumeration"%>
<%
String auth = request.getHeader("Authorization");
String usuario = "";
if (auth == null) {
response.setStatus(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "NTLM");
return;
if (auth.startsWith("NTLM ")) {
byte[] msg =
new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
int off = 0, length, offset;
if (msg[8] == 1) {
off = 18;
byte z = 0;
byte[] msg1 =
{(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
(byte)'S', (byte)'P', z,
(byte)2, z, z, z, z, z, z, z,
(byte)40, z, z, z, (byte)1, (byte)130, z, z,
z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
z, z, z, z, z, z, z, z};
response.setStatus(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "NTLM "
+ new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
return;
else if (msg[8] == 3) {
off = 30;
length = msg[off+17]*256 + msg[off+16];
offset = msg[off+19]*256 + msg[off+18];
usuario = new String(msg, offset, length);
//out.println(s + " ");
else
return;
length = msg[off+1]*256 + msg[off];
offset = msg[off+3]*256 + msg[off+2];
usuario = new String(msg, offset, length);
//out.println(s + " ");
length = msg[off+9]*256 + msg[off+8];
offset = msg[off+11]*256 + msg[off+10];
usuario = new String(msg, offset, length);
usuario = usuario.replaceAll(" ", "");
usuario = usuario.trim();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
     function enviarForm() {
          document.frmLogin.submit();
          return true;
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Mapfre Asistencia</title>
</head>
<body onload="javascript:enviarForm();return true">
<form name="frmLogin" method="post" action="/mapfre_content/ConectorOCDB" enctype="application/x-www-form-urlencoded; charset=UTF-8">
<%
     Enumeration num = request.getParameterNames();
     while (num.hasMoreElements()) {
          String param = (String) num.nextElement();
          String valor = request.getParameter(param);
          request.getSession().setAttribute(param, valor);
%>
<input type="hidden" name="<%=param%>" value="<%=valor%>"/>
<% } %>
<input type="hidden" name="user" value="<%=usuario%>"/>
</form>
</body>
</html>
The first part is to obtain the Windows username and last, the part to generate the form dinamically, because the number of parameters may vary, well, all works perfectly but when I send the form to the Servlet, the parameters value appears as NULL.
Curiosly, the parameters arrives well if I change the form method to GET, ¿what's wrong with this code or with the server configuration?
Thank You!!

set the form to multipart/form-data (required for file uploads, as a little research could have told you) and use Apache FileUpload to parse the request.

Similar Messages

  • Form method=post - Nevermind, I fixed it.

    I have a weird problem.
    If I make the form method=get, then everything works fine when I submit the form. However, when I make form method=post, I get this error message when I try to submit the form:
    Your request cannot be completed. The server got the following error:
    javax.servlet.jsp.JspTagException
    Does anyone have any idea why this would happen?
    Thanks for your time. Any help is greatly appreciated.
    Message was edited by:
    user449101

    Nevermind, I found my problem.

  • ERROR RENDERING PDF IN SERVLET WITH FORM method="post"

    Hello,
    we are trying to render a dinamic PDF document in a servlet building with XSL:FO apache or itext.
    The problem ocurs when we sending a Form data with method post, the output of the servlet is a blank page instead of the pdf document. Also if we send the form data with method "get" we can view the pdf document corretly.
    But we need to send amount information, and can?t use method get.
    Thank

    You can always use GET to send information by generating a dynamic URL in the query string (after the '?'). Granted, you don't want to send file data that way, but it will work for small numbers of arguments where privacy is not a concern.
    As to why you see the PDF in one instance and not another, I'm not sure. There is no difference from an HTTP standpoint. You sent a request, you are getting a response. The browser should treat the response the same, regardless of GET vs POST.
    Are you setting the content-type to application/pdf? Are you doing something fishy with Javascript? Do you have conditional logic in your code that fires on a POST but not on a GET that actually has a bug in it (since GET works but it was designed for POST)?
    - Saish
    "My karma ran over your dogma." - Anon

  • Form Editor tabs don't work

    After upgrading to Java 1.4.1_02, the compile would no longer work so I reinstalled Sun ONE Studio. Now I can compile, but the Form Editor tabs for Layouts, Swing, etc don't work. No response except a 2mm line moves around in the directly under the tabs. No selections appear anymore. Help anyone?

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Method Find() don't work with Dot (.)

    Hi,
    I wrote code like this:
    Code:
    vGroupWise := CreateOleObject('NovellGroupWareSession');
    vGroupWise.Login;
    vRootAccount := vGroupWise.RootAccount;
    vAddressBooks := vRootAccount.AddressBooks;
    vSystemAddressBook := vRootAccount.SystemAddressBook;
    vMailBoxFolder := vRootAccount.MailBox;
    condition := '(<E-Mail Address> MATCHES "' + mail +'")';
    vAddress := vSystemAddressBook.AddressBookEntries.Find(condition);
    Mail have format <[email protected]>, I use GW client 8.0.1
    It works fine, but if I switch GW client to "Caching mode" it don't work for SystemAddressBook (for PersonalAddressBooks continues to work correct).

    Hey Vladimir86,
    This may be a question that MOTU could answer. It says on their website their devices are compatible with GarageBand. Here is link to their support page:
    http://www.motu.com/techsupport
    Here is also a link to the mac setup guide:
    http://cdn-data.motu.com/manuals/firewire-usb-audio/Audio_Express_User_Guide_Mac .pdf
    Hope this helps

  • Forms Program units don't work in Oracle Apps Server 10.1.2.2

    Dear all,
    I created a simple form with some triggers and a button. Everything works fine when I run the form using my PC's local OC4J. If I deploy the form in Oracle Application server 10.1.2.2 and run from there, none of the triggers or program units is working. What could be the reason?
    For example, in when-button-pressed trigger, I have the following code.
    go_block('block1');
    execute_query(no_validate);
    When I press the button, nothing happens.
    Can you please help?
    Regards,
    Sanjeev

    that's indeed your problem , you need to recompile on solaris
    frmcmp.sh you can find this in you ias home/bin directory
    eg
    frmcmp.sh module=your form.fmb user=
    for this you need to have an active Xwindow
    you can use frmcmp_batch.sh too then normally you don't have to set the Xwindow
    I putted already some scripts to do this on the forum
    search for frmcmp.sh
    Erwin

  • MSXML6.dll method"SEND" don't work in Windows Server 2012 and SQL 2008R2

    Hi all,
    I have a SP to send a WebService data
    It works fine on Windows 2008R2 server and also on Windows Server 2003.
    moving it on Windows Server 2012 with SQL 2008R2 express (32bit) or SQL 2012 express (32bit), it doesn't work anymore.
    Below the SP.
    -- =============================================
    -- Author: Giancarlo MADA Service 2008
    -- Create date: 09/09/2008
    -- Description: Web Service Interface
    -- =============================================
    CREATE PROCEDURE [dbo].[spmd_HTTPRequest]
    @URI varchar(2000) = '',
    @methodName varchar(50) = '', -- POST, GET
    @requestBody varchar(8000) = '', -- XML Document envelope
    @SoapAction varchar(255),
    @UserName nvarchar(100), -- Domain\UserName or UserName
    @Password nvarchar(100),
    @responseText varchar(8000) output
    as
    SET NOCOUNT ON
    IF @methodName = ''
    BEGIN
    select FailPoint = 'Method Name must be set'
    return
    END
    set @responseText = 'FAILED'
    DECLARE @objectID int
    DECLARE @hResult int
    DECLARE @source varchar(255), @desc varchar(255)
    EXEC @hResult = sp_OACreate 'MSXML2.ServerXMLHTTP.6.0', @objectID OUT
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'Create failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- open the destination URI with Specified method
    EXEC @hResult = sp_OAMethod @objectID, 'open', null, @methodName, @URI, 'false', @UserName, @Password
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'Open failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- set request headers
    EXEC @hResult = sp_OAMethod @objectID, 'setRequestHeader', null, 'Content-Type', 'text/xml;charset=UTF-8'
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'SetRequestHeader failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- set soap action
    EXEC @hResult = sp_OAMethod @objectID, 'setRequestHeader', null, 'SOAPAction', @SoapAction
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'SetRequestHeader failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    declare @len int
    set @len = len(@requestBody)
    EXEC @hResult = sp_OAMethod @objectID, 'setRequestHeader', null, 'Content-Length', @len
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'SetRequestHeader failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- send the request
    EXEC @hresult = sp_OAMethod @objectID, 'send', NULL, @requestBody
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'Send failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    declare @statusText varchar(1000), @status varchar(1000)
    -- Get status text
    exec sp_OAGetProperty @objectID, 'StatusText', @statusText out
    exec sp_OAGetProperty @objectID, 'Status', @status out
    select @status, @statusText, @methodName
    -- Get response text
    exec sp_OAGetProperty @objectID, 'responseText', @responseText out
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'ResponseText failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    destroy:
    exec sp_OADestroy @objectID
    SET NOCOUNT OFF
    The underlined portion is the one that gives error, reported below.
    "Msxml6.dll 0x80070057 The parameter is incorrect. Send failed POST"
    Previously the SP used MSXML3.dll and also with that it gives the same problem.
    I can't understand what the wrong parameter is.
    Even because, as mentioned at the beginning, everything works fine on windows server 2008R2 and Windows Server 2003
    Some ideas?

    Hello, 
    We have built a dll via CLR on the database. 
    Below is the code.
    If you want to send the file SOAP.dll. Give me an e-mail ..
    USE MydatabaseGO
    /****** Object: SqlAssembly [SOAP] Script Date: 03/05/2014 12:59:14 ******/
    CREATE ASSEMBLY [SOAP]
    AUTHORIZATION [dbo]
    FROM MyPath\SOAP.dll
    WITH PERMISSION_SET = EXTERNAL_ACCESS
    GO
    USE Mydatabase
    GO
    /****** Object: StoredProcedure [dbo].[spmd_HTTPRequest3] Script Date: 03/05/2014 12:53:32 ******/
    CREATE PROCEDURE [dbo].[spmd_HTTPRequest3]
    @URI [nvarchar](4000),
    @methodName [nvarchar](4000),
    @requestBody [nvarchar](4000),
    @SoapAction [nvarchar](4000),
    @UserName [nvarchar](4000),
    @Password [nvarchar](4000),
    @responseText [nvarchar](4000) OUTPUT
    WITH EXECUTE AS CALLER
    AS
    EXTERNAL NAME [SOAP].[StoredProcedures].[spmd_HTTPRequest3]
    GO
    Now call the new SP called spmd_HTTPRequest3
    By..

  • Setting form method to POST to hide URL using WWW_GET_REPORT with webrfc

    I want to hide the URL details when running webrfc reports. The link contains information that we want to hide form the user.
    Is there a way of setting the form method to POST rather than GET when running a report using webrfc function WWW_GET_REPORT.
    Thank you
    Karen

    yes its possible.
    for example, if you have a report with a selection screen parameter called abc .
    (parameters: abc(10) .)
    then the code would be
    form method="POST" action="http://abaphost.domain.com:1080/sap/bc/webrfc?sap-client=001" >
    input name="PARC_ABC" size= 10 maxlength= 10 >
    input type=hidden name= _FUNCTION  size= 30  value= WWW_GET_REPORT >                                                                      
    input type=hidden name= _REPORT  size= 30  value= Y_TEST_WEBRFC > 
      input type="submit" value="Execute report">    
      /form>
    Regards
    Raja

  • FORM AUTH:  JDBCRealms  WILL NOT WORK     HELP ! ! !

    hello,
    i have followed the tomcat JDBCRealms setup.....but it never allows me through to secure page it always redirects to loginerror....when using valid user/pass pair !!!!!!!!!!!!!!!!
    i am a student and this is part of a reasearch project to compare .NET with J2EE.........
    HELP
    my project details are below
    . loginForm.html <<<<<<<<<<<<<<<<<<<<<<<<?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Login Test: Login Form</title>
    </head>
    <h1>Login Form</h1>
         Welcome to the login page. You will have to authenticate to get access to the secure area:
    <form method="POST" action="j_security_check">
    Username: <input type="text" name="j_username">
    Password: <input type="password" name="j_password">
    <input type="submit" value="Login">
    <input type="reset" value="Reset">
    </form>
    </html>
    web.xml <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>SecurePages</web-resource-name>
    <description>Security constraint for resources in the secure directory</description>
    <url-pattern>/secure/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>tomcatRole</role-name>
    </auth-constraint>
    <user-data-constraint>
    <description>SSL not required</description>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/LoginForm.html</form-login-page>
    <form-error-page>/LoginError.html</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <role-name>tomcatRole</role-name>
    </security-role>
    </web-app>
    extract from server.xml (in tomcat 3.2.2/conf dir) <<<<<<<<<<<<<<<<<<<!--
    UnComment the following and comment out the
              <RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" />
    -->
    <RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@MADDZILLA:1521:Store" connectionName="SYSTEM" connectionPassword="manager" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" />
    server.xml <<<<<<<<<<<<<<<<<<<<<<altered part...
    <!-- commented out memoryrealm request
    <RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" />     
    -->
    added jdbcrealm request
    <RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@MADDZILLA:1521:Store" connectionName="SYSTEM" connectionPassword="manager" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" />
    . tables created for tomcat security example <<<<<<<<<<<<<<<<create table users
    user_name varchar(15) not null primary key,
    user_pass varchar(15) not null
    create table roles
    role_name varchar(15) not null primary key
    create table user_roles
    user_name varchar(15) not null,
    role_name varchar(15) not null,
    primary key( user_name, role_name )
    INSERT INTO users (user_name, user_pass) VALUES (tomcat,tomcat);
    INSERT INTO users (user_name, user_pass) VALUES (user1,tomcat);
    INSERT INTO users (user_name, user_pass) VALUES (user2,tomcat);
    INSERT INTO users (user_name, user_pass) VALUES (user3,tomcat);
    INSERT INTO roles (role_name) VALUES (tomcatRole);
    INSERT INTO roles (role_name) VALUES (otherRole);
    INSERT INTO user_roles (role_name, user_name) VALUES (tomcatRole,user1);
    INSERT INTO user_roles (role_name, user_name) VALUES (otherRole,user2);
    INSERT INTO user_roles (role_name, user_name) VALUES (otherRole,tomcat);
    INSERT INTO user_roles (role_name, user_name) VALUES (tomcatRole,tomcat);

    I've tried jdbc realm, and it works fine for me. I'm not using the form_auth, rather it pops-up a network login dialog for me. If you need details, get in touch on [email protected]

  • Open URL method=POST

    I need a button which does the following HTML,
    <form method="post"
    action="http://abc.com/etc&etc&etc">
    <input name="ServiceTag" value="<this value is read from the DB>" type="hidden" />
    <input name="logout" value="" type="hidden" />
    <input type="submit" value="Support Agreement" />
    </form>
    The button should open a new window.
    I have seen examples of javascript, but I think the important bit here is the method="post"
    Any help would be much appreciated.
    Paul
    Found that I could add the serial number to the url and perform http get, rather than a post.
    Message was edited by:
    pjflynn

    Hi
    Is JavaProgram a Applet or Servlet?
    Opening a new window directly from server,probably not possible? From your question
    what I understand is, A html page is displayed
    and when u click on a link opens a new window.
    The parameters to the link should be posted using POST method, again
    it is not possible this can be done only by appending
    "?name1=value1&name2=value2..."to the link
    Vinay
    [email protected]

  • [Windows] [Mac OS X] Context3DProfile.STANDARD_EXTENDED profile don't work

    Here is the bugbase ticked: Bug#3953317 - [Windows] [Mac OS X] Context3DProfile.STANDARD_EXTENDED profile don't work
    Trying to request Context3D with Context3DProfile.STANDARD_EXTENDED profile throws "Error #2008: Parameter profile must be one of the accepted values" error on desktop systems (Windows and Mac OS X). Doesn't matter if you use requestContext3D or requestContext3DMatchingProfiles method, both don't work if you try to request Context3DProfile.STANDARD_EXTENDED.
    It has been tested with AIR 17.0.0.124 on Windows 7 & 8.1 x64 and Mac OS X Yosemite. Same problem in all cases. It works fine with Android and iOS.
    I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
    Thanks.

    Sorry if this wasn't clear in the release notes.  We implemented mobile first but we're definitely working on getting this into an upcoming beta for desktop platforms (AIR and Flash Player).

  • HTTP Status 405 - HTTP method POST is not supported by this URL

    dear all
    can u solve my problem.am getting the *"HTTP Status 405 - HTTP method POST is not supported by this URL"* msg from the browser when i press the search button in my form.plz suggest me the solution for my fault.these are the following html,xml,class files:
    search.html*
    <html>
    <head>
    <title>Search Page</title>
    </head>
    <body>
    <p align="center"><font size="6" color="#0000FF"><b>Search Module</b></font></p>
    <p align="center"> </p>
    <center>
    <form method="POST" action="./emp">
    <table border="1" width="43%">
    <tr>
    <td width="50%">
    <p align="right">Employee Name</td>
    <td width="50%"><input type="text" name="empname" size="36"></td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <p align="center"><input type="submit" value="Search" name="B1"></td>
    </tr>
    </table>
    </form>
    </center>
    </body>
    </html>
    web.xml*
    <web-app>
    <servlet>
    <servlet-name>jdbc</servlet-name>
    <servlet-class>searchModule</servlet-class>
    <init-param>
    <param-name>driver</param-name>
    <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
    </init-param>
    <init-param>
    <param-name>url</param-name>
    <param-value>jdbc:odbc:first</param-value>
    </init-param>
    <init-param>
    <param-name>user</param-name>
    <param-value>scott</param-value>
    </init-param>
    <init-param>
    <param-name>pass</param-name>
    <param-value>tiger</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>jdbc</servlet-name>
    <url-pattern>/emp</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>search.html</welcome-file>
    </welcome-file-list>
    </web-app>
    SearchModule.java*
    import java.util.*;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class searchModule extends HttpServlet
    Connection con;
    public void init() throws ServletException
    String d=getInitParameter("driver");
    String u=getInitParameter("url");
    String us=getInitParameter("user");
    String pwd=getInitParameter("pass");
    try
    Class.forName(d);
    con=DriverManager.getConnection(u,us,pwd);
    catch(ClassNotFoundException e)
    System.out.println(e);
    catch(SQLException e)
    System.out.println("Unable to establish the connection");
    }//init
    public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    String empname=req.getParameter("empname");
    res.setContentType("text/html");
    PrintWriter pw=res.getWriter();
    try
    pw.println("<html><body><center>");
    Statement st=con.createStatement();
    String sql="select * from employee where empname="+empname;
    ResultSet rs=st.executeQuery(sql);
    if(rs.next())
    pw.println("<h2>Employee Details</h2>");
    pw.println("<table border=1>");
    pw.println("<tr><th>Employee No.</th>");
    pw.println("<th>Employee Name</th>");
    pw.println("<th>Designation</th>");
    pw.println("<th>Department</th>");
    pw.println("<th>Salary</th>");
    pw.println("</tr><tr>");
    pw.println("<td>"+rs.getInt(1)+"</td>");
    pw.println("<td>"+empname+"</td>");
    pw.println("<td>"+rs.getString(3)+"</td>");
    pw.println("<td>"+rs.getString(4)+"</td>");
    pw.println("<td>"+rs.getInt(5)+"</td>");
    pw.println("</tr></table>");
    else
    pw.println("<h2>Employee Record Not Found</h2>");
    pw.println("</center></body></html>");
    pw.close();
    rs.close();
    st.close();
    catch(SQLException e)
    System.out.println(e);
    }//doPost
    public void destroy()
    if(con!=null)
    try
    con.close();
    catch(Exception e)
    System.out.println("Connection Closed");
    }//destroy
    }//searchModule
    in control panel i selected System DNS and created the name as first and driver as Microsoft ODBC for Oracle
    plz suggest me the solution where i committed mistake.

    <form method="*POST*" action="./emp">
    public void doGet (HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    HTTP method POST is not supported by this URL

  • Can't get a Refund - Links don't work

    Hi,     I incorrectly bough some skype credits (forgot that my wife already set up a skype subscription package to make unlimited calls) and now I'm trying to ask for a refund (I qualify – UE and less the 14 days). The problems is that none of the links a found in these FAQs works: https://support.skype.com/en/faq/FA297/how-do-i-request-a-refund(live chat and online form link's don't work)https://support.skype.com/en/faq/FA1170/how-do-i-contact-skype-customer-service(https://support.skype.com/support_selection doesn't work) I've tried on different browsers (Firefox, Edge, Safari) and the result is the same:https://support2.microsoft.com/pagenotfound?aspxerrorpath= Page not found!What can I do to get this refund? 

    You must use HTML. Here's a link DPS and forms to an older thread that might point you in the right direction.

  • Run form don't work

    Hi
    I have install in a PC4 with windows XP professional Oracle EM 9.2 and 9iDS (Form Builder [32 bit]. Use the layout wizard to make the form, but when I call Run Form open the IE or Netscape and both browsers never ends to open the form:
    http://tritoni2:1521/forms90/f90servlet/admin?form=C:\oraclei\fomas_enc\identif_enc.fmx&userid=GHC/1QAZXSW2@oaxsiers&buffer_records=NO&debug_messages=YES&array=YES&query_only=NO&quiet=NO&RENDER=YES
    I review the preferences and appear are correct but don't work.
    Any suggestion is welcome.
    Best regards
    Gilberto Hernandez Cardenas

    well, IE only send the message "500 Internal Server Error" and the nexts:
    java.lang.NullPointerException
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:64)
         at java.io.FileReader.<init>(FileReader.java:38)
         at oracle.forms.servlet.ConfigFileParser.<init>(Unknown Source)
         at oracle.forms.servlet.FormsServlet.getOracleHome(Unknown Source)
         at oracle.forms.servlet.FormsServlet.testJNI(Unknown Source)
         at oracle.forms.servlet.FormsServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)

  • How to send Parameters FORM to PHP WEB Page with method POST (secure)?

    Hello everyone,
    i hope someone can help me to find a solution to this problem!
    i have to send "+precious+" parameters from an oracle form to php page, like username and password, with a secure method... i tried with WEB.SHOW_DOCUMENT procedure but it uses GET Method and when the web page open up you can read those parameters in the url...no good!
    some suggestion?
    Thank a lot in advance... FMicio

    The other way you have is to make a PJC java bean ...
    which uses HTTPClient library..
    for example:
    PostMethod post = new PostMethod("http://jakarata.apache.org/");
            NameValuePair[] data = {
              new NameValuePair("user", "joe"),
              new NameValuePair("password", "bloggs")
            post.setRequestBody(data);
            // execute method and handle any error responses.
            InputStream in = post.getResponseBodyAsStream();
            // handle response.I have done a multipart form data post to upload files to my db over httpClient.. and other things...
    Or with java.net.* api-s
    try {
        // Construct data
        String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
        data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
        // Send data
        URL url = new URL("http://hostname:80/cgi");
        URLConnection conn = url.openConnection();
        conn.setDoOutput(true);
        OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
        wr.write(data);
        wr.flush();
        // Get the response
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            // Process line...
        wr.close();
        rd.close();
    } catch (Exception e) {
    }Or you can call your web page (post data) from your database
    http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
    Edited by: Peterv6i on Mar 30, 2012 3:49 PM
    Edited by: Peterv6i on Mar 30, 2012 3:55 PM

Maybe you are looking for

  • Time Capsule-  does it or NOT work as remote server?  Not seeing benefits I was sold by the salesperson.

    Hi!  I'm hoping you can help eliminate my frustrations.... I purchased a macbook pro 13 inch because my other macbook 2009 was already low on memory and I thought it best to upgrade.  I needed more space but wanted also the ability to access remotely

  • Tables RoboHelp HTML v9

    I didn't find this topic on a quick search. So if I'm duplicating here, please point me to another post that may have the answer. Recently, I've switched/upgraded from Robo 7 to Robo 9. I had a special table format set up in Robo 7 so that I could ac

  • Transitions and dragging files not working in Final Cut Express 4

    Although this topic has been gathering dust in these archives for a while, my problem differs in that there's plenty of room either side of the edit point. So no need for "handles" either side. Today I installed Final Cut Express 4 on my swanky new M

  • Cover Art Corruption?

    Hello. I bought an iPod Touch 32 GB (3rd Gen.), model A318/EMC2310 about 1 month ago. It came with the 3.1.2 firmware, and I updated it to 3.1.3. I noticed some days ago that something pretty "wrong" and annoying started happening: The cover art for

  • EJBDeployerTool on Win2K

    Hi. I installed WebLogic 5.1 and SP4, and tried running ejbdeployer.exe. After the splash screen comes up, I get the following exception in the console: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.subs