Form posting Problem

Hi folks,
I have a form where the user enters in a search query... i.e.
- Key Words
- Words to exclude
Now if the user enters:
- Key Words : IBM Laptops
- Words to exclude: Desktops
and then user presses back and removes "Desktops" from words to exclude... the FORM Posting it is not setting the variable wordsToExclude as it does not contain anything.
Is there any way to force it to set a variable when blank
Angus

u can use javascript to assign a value to your field when form is submitted.

Similar Messages

  • Posted Form contents Problem

    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V‚É?¬Œ÷‚µ‚Ü‚µ‚½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>

    The jsp directive does nothing to help the INPUT data handling. On the other hand, this is a html spec problem, not a weblogic one. RFC2070 has some recommendation on how to do i18n with HTML/HTTP, but neither Netscape nor IE supports it.
    --Ye
    Joseph Weinstein <[email protected]> wrote:
    Hi,
    The ideal approach is to employ the JSP directive for encoding.
    This is documented in the JSP spec. Also, if all your JSPs
    require the same encoding, there is an argument to our JSP
    servlet, to tell it what default charset encoding to use.
    Joe
    Kirk Everett wrote:
    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V&#8218;É?¬&#338;÷&#8218;µ&#8218;Ü&#8218;µ&#8218;½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions for
    people who want to work with Java and E-Commerce infrastructure products. Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web Application Server
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a Component Architecture
    http://www.bea.com/press/awards_weblogic.html

  • Policy agent 2.1 in iis 5 and win 2000 form post

    hi,
    i am facing a typical issue with policy agent 2.1 in windows 2000 iis 5..here is the problem:-
    when ever we try to do a html form post, we get a http 200 response back with a blank screen "ok" written on it.
    there is nothing interesting in the logs ... when i completely uninstall the agent it works fine...even if i put the not_enforced_list=* it has the same issue...
    any help is highly appreciated.

    changed the notificationenabled=true which resolved the problem

  • How to parse ', (, ) in a form post?

    I am doing a form post to get a description input from user.
    <INPUT class=inputText TYPE="text" NAME="f_description" MAXLENGTH="200" SIZE="40" VALUE="">
    String l_description= request.getParameter("f_description");
    String sqlInsert="INSERT INTO myTable (DESCRIPTION) VALUES('"+l_description +"')";
    CM.executeUpdate (sqlInsert);  I am using Oracle database. When the data entered consist of ', (, ) it will break the sql Statement. What can I do to solve this problem?
    Thank you.

    I agree, actually, I would modify it to use prepared statements. But if you are going to go the route of encoding special characters (assuming escaping doesn't work or you don't want to worry about different DB escape methods), maybe it would be better to replace the chars with character code escapes like URLEncoding schemes do... char becomes %xx, where xx is the character's hex value. For example, a space becomes %20. I would write my own escape and unescape methods for these. You'd have to convert % signs as well, and whatever other characters.
    This is code that I have for escaping chars for HTML usage, but you can replace the list of chars and escapes with corresponding values to do it like %xx.
          * Encodes any special characters in the specified string with their
          * entity equivalents. 
          * @param  str  the original string
          * @return  the encoded string
         public static String encodeEntities(String str) {
              StringBuffer sb = new StringBuffer(str);
              // must replace '&' first
              char[] chars = {     // list of characters to replace
                   '&',      '<',      '>',      '\'',      '\"'
              String[] ents = {     // list of entities to replace with
                   "&",      "<",      ">",      "&apos;", """
              int len = Math.min(chars.length, ents.length);
              for(int i = 0; i < len; i++) {
                   for(int j = 0; j < sb.length(); j++) {
                        if(sb.charAt(j) == chars) {
                             sb.replace(j, j+1, ents[i]);
              return sb.toString();
         * Decodes any entities in the specified string with their character
         * equivalents.
         * @param str the encoded string
         * @return the decoded string
         public static String decodeEntities(String str) {
              if(str == null) {
                   return null;
              StringBuffer sb = new StringBuffer(str);
              String[] ents = {     // list of entities to replace
                   "&",      "<",      ">",      "&apos;", """
              String[] chars = {     // list of characters to replace with
                   "&",      "<",      ">",      "\'",      "\""
              int len = Math.min(chars.length, ents.length);
              int k = 0;
              for(int i = 0; i < len; i++) {
                   for(int j = 0; j < sb.length(); j++) {
                        k = j + ents[i].length();
                        if(k >= sb.length()) {
                             break;
                        if(sb.substring(j, k).equals(ents[i])) {
                             sb.replace(j, k, chars[i]);
              return sb.toString();

  • CF8 - Ajax Form Post and Document Type

    I'm having a problem trying to figure out how to get a form
    post to return a PDF document using CF8. I can't seem to get
    CFDOCUMENT to deliver a PDF through the form.
    I have a form inside a CFDIV...
    <cfdiv id="mydiv">
    <cfform action="myscript.cfm" method="post">
    a bunch of input fields, then...
    <input type="submit" value="Generate PDF" />
    </cfform>
    </cfdiv>
    On submit, the form makes an Ajax call sending the data to a
    script that generates a PDF using CFDOCUMENT and delivers it
    through the browser.
    However, it is not delivering the PDF. Instead, it is
    delivering the CODE for the PDF into the CFDIV and trying to
    display the code. I tried the same form delivering an Excel file
    with cfcontent and cfheader. It delivers the code instead of the
    actual document.
    If I take this form out of the CFDIV, everything works great.
    Why can't the Ajax call made by the CFDIV functionality
    deliver a PDF or other file?

    I'm having the same problems over two years later. CFCONTENT
    doesn't work as documented when you call it from within an AJAX
    app. My workarounds that call the code from another directory are
    way too kludgey for the client, but proved my standard code works
    outside of AJAX layout areas. I'm specifically trying to do what
    tSpark also mentioned, that is generate an Excel spreadsheet from
    query results displayed in an HTML table.
    Has anyone solved this problem?

  • PayPal Form Post Integration

    Hi Everyone,
    I'm trying to embed a PayPal button in my application using their "Cart Upload" capabilities associated with their [Website Payments Standard|https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_cart_upload] option. It is all done through an HTML form like the following:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="cmd" value="_cart">
      <input type="hidden" name="upload" value="1">
      <input type="hidden" name="business" value="[email protected]">
      <input type="hidden" name="item_name_1" value="Item Name 1">
      <input type="hidden" name="item_number_1" value="ITM1">
      <input type="hidden" name="amount_1" value="1.00">
      <input type="hidden" name="item_name_2" value="Item Name 2">
      <input type="hidden" name="item_number_2" value="ITM2">
      <input type="hidden" name="amount_2" value="2.00">
      <input type="hidden" name="no_shipping" value="1">
      <input type="submit" value="PayPal">
    </form> The problem is, every APEX page is already bound by a form, so you can't embed this form into any page. I've seen the 2007 Whitepaper about integrating PayPal using UTL_HTTP, but that is way more work than using the above code. Anyone know how I can include this in a page without it conflicting with the APEX form?

    jritschel wrote:
    The problem is, every APEX page is already bound by a form, so you can't embed this form into any page. I've seen the 2007 Whitepaper about integrating PayPal using UTL_HTTP, but that is way more work than using the above code. Anyone know how I can include this in a page without it conflicting with the APEX form?Locate it on the page outside of the APEX form. Create a page template with a region position or item substitution string outside of <tt>#FORM_OPEN#...#FORM_CLOSE#</tt> and generate the PayPal form code in that region or item.

  • Cocoon/FOP + form-name problem

    Experts,
    I have configured Tomcat/Cocoon to work with APEX instead of BI Publisher, as per Carl Backstrom's tutorial. Tomcat and Cocoon both work as expected. I am able to configure APEX with the correct URL, port, and Print Server Script, standard support, and so on.
    I am able to use FOP to process static XML files with no problems.
    If I understand how APEX works with Cocoon, it generates a Form POST to send an XML document to Cocoon for processing. Cocoon receives the posted form. Cocoon extracts the XML data based on the name of the posted form, and then transforms it into the specified format (PDF, RTF, HTML, etc.). In Carl's tutorial, Cocoon is configured in sitemap.xmap to expect form-name="xml".
    Question: When APEX executes the Form POST, what form name does it give the posted form? Is this configurable?
    Whenever I try running an APEX report through Cocoon/FOP, I get
    org.apache.cocoon.ProcessingException: Unknown request object encountered named xml : null.
    I have tried renaming form-name to wwv_flow, wwvFlowForm, XML, Xml, asdf,<null>, etc. Whatever I rename the form shows up as null.
    Examples:
    1. org.apache.cocoon.ProcessingException: Unknown request object encountered named wwv_flow : null.
    2. org.apache.cocoon.ProcessingException: Unknown request object encountered named wwvFlowForm : null.
    3. org.apache.cocoon.ProcessingException: Unknown request object encountered named asdf : null.
    4. org.apache.cocoon.ProcessingException: Unknown request object encountered named xml : null.
    Dan

    Hi Carl
    I use Tomcat and Cocoon as you described. For some reports PDF print is OK. One problem which i found was that, in my case, the language of the application produce also an error. I changed from German to English and everything was OK.
    "Application > Shared Components > Edit Globalization Attributes > Globalization" - Aplication primary language GERMAN. Once that i changed to english US my reports worked again OK.
    I have also an application where for one page PDF produced is OK but for another page in the same application i receive the same error:
    org.apache.cocoon.ProcessingException: Unknown request object encountered named xml : null.
    Maybe Region configuration is different?
    Best regards
    Adrian

  • SSO with a website using Apache Httpclient form post

    Hi ,
    I am trying to obtain, SS0 with a website, that accepts the user information via post.
    I tried using app Integrator, but the website sends a cookie in first request, and redirects to another URL. App Integrator is only catching the first response.
    Thus i tried implementing this Form post using Apache HTTPClient class inside the Abstractportacomponent, as shown..
    The login is taking place. But, When i click on any link on the page, It is redirecting to the login page again, I am wondering where should i give the Cookie, so the portal request will include that cookie in its subsequent requests, so that i wont be prompted for login agian..
    thank you,
    chiranjeevi.
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
        {try
                      String url = "http://www.xxxxxxxxxxxxx.com/gold_online/validate.asp";
                      //Here, calling the timberline comes into place.
                       HttpClient client = new HttpClient();
                        PostMethod method = new PostMethod (url);
                        method.setFollowRedirects(false);
                        method.addParameter( "code","xxxxxxx");
                        method.addParameter( "upass", "xxxxxx" );
                                  int statusCode = client.executeMethod( method );
                        if( statusCode != -1 ) {
                             // The Status code for this first request is 302..which is a redirect with the redirect path
                             Header locationHeader = method.getResponseHeader("location");
                             Header cookie = method.getResponseHeader("set-cookie");
                             String redirectedURL = locationHeader.getValue();
                             String host = "http://www.xxxxxxxxxxxxxx.com/gold_online/";
                             redirectedURL = host+redirectedURL;
                             GetMethod method2 = new GetMethod (redirectedURL);
                             method2.setFollowRedirects(false);
                             method2.setRequestHeader("cookie",cookie.getValue());
                             method2.addRequestHeader("Accept", "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, /");
                             int statuscode2 = client.executeMethod( method2);
                             String contents  = method2.getResponseBodyAsString();
                             // Converting the Relative URLs to Absolute URLs
                             contents = replace (contents,"src=\"","src=\""+host);
                             contents = replace(contents,"href=\"","href=\""+ host);
                             Cookie ck = new Cookie("cookie", cookie.getValue()) ;
                             //adding the cookie to the response...
                             response.addCookie(ck);
                             response.write(contents);
                          method.releaseConnection();

    Hi Manish,
    first, welcome on SDN! About your question:
    The URL iView in SP9++ has been reported quite instable from different sides (just do a look on "URL iView" within this forum). The alternative for the aim you have is to use the good "old" application integrator iView, which behaves very stable and will do what you want without hesitating...
    Also see URL iView and HTTP System - SSO to web app
    Hope it helps
    Detlev
    PS: Please consider to reward point for helpful answers on SDN. Thanks in advance!

  • Protocol 'form-post' not available

    We have developed a webservice using Weblogic Workshop 8.1 service pack 2. It has
    been working very well. It's been in production for a couple of months now. We
    are moving to a new environment where everything is clustered. I have changed
    nothing on my ear, but I now get back the following error when I try to call the
    service.
    Any Idea's?
    <?xml version="1.0" encoding="utf-8" ?>
    <error>
    <faultcode>JWSError</faultcode>
    <faultstring>java.lang.RuntimeException: Protocol 'form-post' not available on
    this operation.</faultstring>
    <detail>
    java.lang.RuntimeException: Protocol 'form-post' not available on this operation.
    </detail>
    </error>

    Hi Lomeus,
    There is a "How do I" [1] on setting up the cluster that may be of
    value. RU using the cluster name? Also see the docs here [2].
    HTH,
    Bruce
    [1]
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/deployment/howClusterDeployment.html
    [2]
    http://e-docs.bea.com/wls/docs81/cluster/setup.html
    Lomeus Cloete wrote:
    >
    We have developed a webservice using Weblogic Workshop 8.1 service pack 2. It has
    been working very well. It's been in production for a couple of months now. We
    are moving to a new environment where everything is clustered. I have changed
    nothing on my ear, but I now get back the following error when I try to call the
    service.
    Any Idea's?
    <?xml version="1.0" encoding="utf-8" ?>
    <error>
    <faultcode>JWSError</faultcode>
    <faultstring>java.lang.RuntimeException: Protocol 'form-post' not available on
    this operation.</faultstring>
    <detail>
    java.lang.RuntimeException: Protocol 'form-post' not available on this operation.
    </detail>
    </error>

  • Cannot read any form posted data

    I create a web server :
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class TestWeb extends Thread {
        Socket soc;
        ServerSocket server;
        InputStream is;
        BufferedReader br;
        public void run() {
            try {
                while (true) {
                    soc = server.accept();
                    if (soc!=null)
                    is = soc.getInputStream();
                    br = new BufferedReader(new InputStreamReader(is));
                    String line = "";
                    while (line!=null) {
                        line = br.readLine();
                        if (line==null) continue;
                        System.out.println(line);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public TestWeb() {
            try {
                server = new ServerSocket(80);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public static void main(String[] arg) {
            try {
                new TestWeb().start();
                System.in.read();
            } catch (Exception ex) {
                System.out.println(ex.toString());
    }It can read the header when someone connect to this server
    However, it cannot read any form posted data.
    Does anybody have any idea?
    The following is the html source that i use in a browser to connect to the test server
    <HTML><BODY>
      <CENTER><H1><FONT COLOR=BLUE><B>Test</B></FONT></H1></CENTER>
      <HR>
      <FORM METHOD="POST" ACTION="http://127.0.0.1">
        <INPUT TYPE=TEXT VALUE="abcde">
        <SELECT>
          <OPTION VALUE="1">1</OPTION>
          <OPTION VALUE="2">2</OPTION>
        </SELECT>
        <INPUT TYPE=SUBMIT>
      </FORM>
    </BODY></HTML>

    I would expect the form data posted to be received. For example, the user chooses the option value and the text input value.
    This test is hang just after receiving the header information and no parameters collected.

  • How to make result of form post to jsp to appear in child frame

    Two frames inside a frameset, A and B (A is the first frame, B is the second). A has as it's source an html page containing a form with a submit button. The form posts to a jsp called Content.jsp. Works great, except: I want the results returned by Content.jsp to appear inside frame B. Seems like I've got the target for the form inside A wrong somehow, because when I click the submit button inside frame A, my results appear in a new browser instance, rather than inside B. Here's what the form declaration looks like:
    <form action="Content.jsp" method="post" target="_parent.frames[1]">
    If I make the target parent, that obviously replaces the whole page. If I make the target self, that obviously replaces the contents of frame A. I want to replace the contents of frame B. Any ideas?

    Thanks, but I'm not using IFrame, just Frame and FrameSet. In any event, I have tried using the name attribute to no avail. Here's a really simple version of the code:
    //Parent frameset
    <frameset rows="50%,50%">
    <frame name="A" src="testSubmit.html">
    <frame name="B" src="">
    </frameset>
    //Here's the form in testSubmit.html
    <form ACTION="testResult.html" METHOD="POST" TARGET="_parent.B">
    <input TYPE="SUBMIT" VALUE="Click Me">
    </form>
    I've also tried TARGET="_parent.frames[1]" with the same result -- a new browser window is launched rather than the results being displayed in B.
    Thanks for any assistance.

  • How to do simple form post to payment gateway from SharePoint 2010 list form OR InfoPath 2010 Web Form?

    Working on a SharePoint 2010 Ent extranet site where parents of students can submit field trip permission forms and make payment at same time (optionally if fees involved).  Was wondering if someone could advise (or point me to resource on) best way
    to do a simple form post to an external payment gateway?  Would be from InfoPath web form OR SharePoint 2010 list form.
    Any guidance would be appreciated.
    Trevor

    you may create a custom visual web part for this:
    http://www.codeproject.com/Articles/152280/Online-Credit-Card-Transaction-in-ASP-NET-Using-Pa

  • Portal URL's and Form Posting

    When I use the following url in a form POST method, I receive a "page cannot be found" error when I click submit, but if I go directly to the page by entering the url in my browser, it works. Why is that?
    http://matrix0.dynamex.com:7778/pls/portal/url/page/dxnet_jsps/cr_submit?test=1
    How do I call another page in Portal through a form POST method using JSP?

    Hello Angela,
    you should find everything you need in :
    - the pdk-java sample 'event form' (eventform.jsp and publicparam.jsp)
    - the pdk articles
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/ADDING.PARAMETERS.EVENTS.TO.PORTLETS.HTML
    (explained source code of the event form sample)
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/primer.portlet.parameters.events.html
    (what to do in portal once your jsp-application is running)
    For your jsps, you'll know how to create the events, th event's parameters, how to call the htmlFrormActionLink() method, and finally get back the params from the request.
    Else, to create a link to a page, use the constructEventLink() in the EventUtils class (see API DOC deployed with JDPK on your OC4J)
    Hope this helps.
    Jean-Roch

  • How do I clear the parameter after form post?

    Hi. I am learning my first JSP and was trying to do a form post. However, I found that after successfully submit to the database. If I press F5 (Refresh) from browser, the data will be re inserted into database. How could I clear the parameter (action) after data insert. My code structure is as follow.
    Thank you.
    <%@ page import="java.sql.*" %>
    <%! Connection conn;
    PreparedStatement stmtInsert;
    public void jspInit() {
    try{ ... }catch(SQLException e){}
    catch(ClassNotFoundException e){}
    public void jspDestroy() {...}
    %>
    <% if (request.getParameter("action") == null ) { %>
    <H2>Data Entry:</H2>
    <FORM METHOD="post" ACTION="<%= request.getRequestURI() %>">
    <INPUT TYPE="submit" NAME="Submit" VALUE="Submit">
    <INPUT TYPE="reset" NAME="Reset" VALUE="Reset">
         <INPUT TYPE="hidden" NAME="action" VALUE="insert">
    </FORM>
    <% } else if (request.getParameter("action").equals("insert")) { %>
    <%
    try{
    synchronized(stmtInsert){
    stmtInsert.executeUpdate();
    out.print("<br> Room has been inserted successfully");
    // once successful...how could I change the action to null?
    } catch (SQLException e){
    %>

    http://forum.java.sun.com/thread.jsp?forum=45&thread=78925

  • HTTP Form Post

    Hi,
    I need to emulate an HTTP form post from ALSB 2.5.
    I have the business service defined as Text for both the Request and Response message types. I have a proxy that routes to the business service and sets the Content-type to 'application/x-www-form-urlencoded'.
    But what I'm not clear on is how can I specify the form data set (name/value pairs) in the outbound HTTP request?
    Thx in advance for the guidance!

    You can do it from anywhwere in the pipeline. You can use an assign action and modify the content of $body. Don't modify the whole variable.
    If it still does not work, here is what I would do. Write a simple html file containing a submit and point to a service bus dummy proxy service. Inside the dummy service use a log action to log the content of $body so you have an idea how it should exactlty looks like.
    Gregory Haardt
    ALSB Prg. Manager
    [email protected]

Maybe you are looking for

  • Digital Camera Raw update 4.09

    has just been released. Hopefully this will bring to a close all the recent image corruption activity.

  • Drag and drop the xml schema?

    hi all i am creating a GUI. i am using splitpane to split my Frame. and my left split pane contains the XML schema in the form of a JTree. and i need to drag and drop the nodes of a JTree on to right split pane which sub divided in to some regions. i

  • Purchase order Account Assignment changes

    Hi Guys, May you please share the light? Weu2019ve deleted Purchase order Account Assignment & entered the new one but the PO Item changes tells us old Account Assignment was deleted and the new one was entered but the system doesnu2019t tells us wha

  • IPod stuck on Apple logo

    After running the iPod updater because I updated my iTunes to version 6, I was told to remove my iPod and attatch to external power source to flash the firmware. When I plugged it into the wall, it has been stuck on the Apple logo ever since (going o

  • Characteristic Values

    Hi All, We have to maintain the Actual Fabric Width and the Vendor Fabric Width (which is stated in the vendor fabric roll) in the system for Usage Decision. I created 2 code groups "VendorWidth" and "ActualWidth", is there a possibility to maintain