Form submit problem - help please!

I am new to this forum and to using forms, so I hope I am posting this in the correct area. I want to have a Volunteer Application form and I set it all up but the first time through I mistyped my email address. Since then I have tried MANY different things to try and fix this including starting from scratch, resaving my email address with adobe's website, and then I finally removed the submit email button altogether. BUT, next to Highlight Fields there is a Submit button and and that still submits to the wrong address!
I check the xml source and it shows the email address correctly - but under advanced setting in Acrobat I see: http://ns.adobe.com/AcrobateAdhocWorkflow/1.0/ and then further down the list is:
adhocwf:initiator:mywrongemailaddress
I would greatly appreciate any help at all on how to fix this.
Thank you.

Hi,
There are many ways to set up a Submit button, but the way you are describing is using the "Email Submit" button in LC Designer. You can change the email address here:
If on the other hand you have used a Regular Button and changed the type to Submit, then you would access the email via the Submit tab:
That deals with the LiveCycle side of things.
The next step is if you had Reader Enabled the form in Acrobat. What happens next depends on the version of Acrobat you have, but if it is Acrobat version 8 or 7, then the step to Reader Enable the form is to Distribute the form via the Form menu. See this example/summary with screen shots: http://assure.ly/etkFNU .
If you have made a mistake during this process, then you may have affected your ID in Acrobat preferences. I can't do a screenshot for Acrobat version 8 or below, But if you have a look in Preferences (from the Edit menu) and go to the Identity tab, check your email address there:
This is Acrobat X:
Hope that helps,
Niall

Similar Messages

  • SQL INSERT problem - help please

    Hello,
    I'm having a problem with INSERT statement.
    There is a "ShowFinal.jsp" page, which is a list of candidates who selected from the second
    interview. The user picked some candidates from the list and conduct the 3rd interview. After
    he check suitable candidates(who are selected from the 3rd interview) from the list , enter
    basic salary for every selected candidate, enter date of interview and finally submit the form.
    These data should be save into these tables.
    FinalSelect(nicNo,date)
    EmpSalary(nicNo,basicSal)
    In this "ShowFinal.jsp" page, it validates the following conditions using JavaScript.
    1) If the user submit the form without checking at least one checkbox, then the system should be
    display an alert message ("Please select at least one candidate").
    2) If the user submit the form without entering the basic salary of that candidate which was
    checked, then the system should be display an alert message ("Please enter basic salary").
    These are working well. But my problem is how to wrote the "AddNewFinal.jsp" page to save these
    data into the db.
    Here is my code which I have wrote. But it points an error.
    "AddNewFinal.jsp"
    String interviewDate = request.getParameter("date");
    String[] value = request.getParameterValues("ChkNicno");
    String[] bs = request.getParameterValues("basicSal");
    String sql ="INSERT INTO finalselect (nicNo,date) VALUES(?,?)";
    String sql2 ="INSERT INTO EmpSalary (nicNo,basicSal) VALUES(?,?)";
    for(int i=0; i < value.length; i++){
         String temp = value;     
         for(int x=0; x < bs.length; x++){
              String basic = bs[x];
              pstmt2 = connection.prepareStatement(sql2);
              pstmt2.setString(1, temp);
              pstmt2.setString(2, basic);
              int RowCount1= pstmt2.executeUpdate();
         pstmt1 = connection.prepareStatement(sql);
         pstmt1.setString(1, temp);
         pstmt1.setString(2, interviewDate);
         int RowCount= pstmt1.executeUpdate();
    Here is the code for "ShowFinal.jsp".
    <form name="ShowFinal" method="POST" action="AddNewFinal.jsp" onsubmit="return checkEmpty() &&
    ValidateDate();">
    <%--  Loop through the list and print each item --%>
    <%
         int iCounter = 0; //counter for incremental value
         while (igroups.hasNext()) {
              Selection s = (Selection) igroups.next();
              iCounter+=1; //increment
    %>
    <tr>
         <td style="background-color:ivory" noWrap width="20">
         <input type="checkbox" name="<%= "ChkNicno" + iCounter %>"      
    value="<%=s.getNicno()%>"></td>
            <td style="background-color:ivory" noWrap width="39">
                 <%= s.getNicno() %>  </td>
         <td style="background-color:ivory" noWrap width="174">
              <input type="text" name="<%= "basicSal" + iCounter %>" size="10"> </td>
    </tr>
    <%
    %>
    Date of interview<input type="text" name="date" size="17"></td>
    <input type="submit" value="APPROVE CANDIDATE" name="B1" style="border: 1px solid #0000FF">
    </form>........................................................
    Here is the error generated by TOMCAT.
    root cause
    java.lang.NullPointerException
         at org.apache.jsp.AddNewFinal_jsp._jspService(AddNewFinal_jsp.java:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    I have goto the file "AddNewFinal_jsp.java". The line 70 points to the following line.
    for(int i=0; i < value.length; i++){ [/b]
    Please can someone help me to solve this problem? Please help me to do this task.
    Thanks.

    Hi Casabianca ,
    It is clearly that your problem is not on the database end, more like a servlet/jsp issue.
    I will not comment on the javascript portion, but rather the 2 jsps.
    a simple way to trace what's go wrong is to check the final result (the html code) of the first jsp (showFinal.jsp), and compare against what is expected by the 2nd jsp (AddNewFinal.jsp). Most browser do provide "view source" on the page visited.
    the following code
    <input type="checkbox" name="<%= "ChkNicno" + iCounter %>" value="<%=s.getNicno() %>">
    <input type="text" name="<%= "basicSal" + iCounter %>"
    would likely to be "translated" to html code something as follow:
    <input type="checkbox" name=""ChkNicno0" value="nicNo>">
    <input type="text" name="basicSal0">
    the original code in "AddNewFinal.jsp" using
    request.getParameterValues("ChkNicno");
    which looking for a none exist http request parameter (sent as "ChkNicno0",etc but look for "ChkNicno"), which has explained before.
    the second attempt to use String[] value = request.getParameterValues("ChkNicno" + iCounter); give Cannot resolove symbol :iCounter. because iCounter never defined in the 2nd jsp!
    Most of the error message do give clue to cause of error... : )
    not too sure on your intension, assume you wish to update only those selected (checked) row to db.
    some suggestions:
    1) <input type="text" name="ChkNicno" size="10"> </td>...
    <input type="text" name="basicSal" size="10"> instead.
    then use javascript to based on checked element index (refer to javascript spec for more details), for those index not checked, clear off the correspond index "basicSal" field value.
    e.g. ChkNicno[1] is not checked, empty basicSal[1] value before submission.
    This will give us only selected rows values.
    2) retain the code
    String[] value = request.getParameterValues("ChkNicno");
    String[] bs = request.getParameterValues("basicSal");at 2nd jsp, as now the http request will pass parameters using "ChkNicno" and "basicSal".
    3) some change to the code for optimization
    for(int i=0; i < value.length; i++){
         String temp = value;     
         for(int x=0; x < bs.length; x++){
              String basic = bs[x];
              pstmt2 = connection.prepareStatement(sql2);
              pstmt2.setString(1, temp);
              pstmt2.setString(2, basic);
              int RowCount1= pstmt2.executeUpdate();
         pstmt1 = connection.prepareStatement(sql);
         pstmt1.setString(1, temp);
         pstmt1.setString(2, interviewDate);
         int RowCount= pstmt1.executeUpdate();
    to
    pstmt1 = connection.prepareStatement(sql);
    pstmt2 = connection.prepareStatement(sql2);
    for(int i=0; i < value.length; i++){
         String temp = value;     
         for(int x=0; x < bs.length; x++){
              String basic = bs[x];
              pstmt2.setString(1, temp);
              pstmt2.setString(2, basic);
              int RowCount1= pstmt2.executeUpdate();
         pstmt1.setString(1, temp);
         pstmt1.setString(2, interviewDate);
         int RowCount= pstmt1.executeUpdate();
    preparestatement created once should be sufficient as we do not change the sql statement throughout the loop.
    there are better solutions out there, this just some ideas and suggestions.Do try out if you wish.
    Hope it helps. : )

  • VIRUS PROBLEMS, HELP PLEASE???

    I continue to have messages popping up saying my computer is infected. It wants me to cleanup and I have to register with Mac Shield 2.6.  Pronograhic websites keep popping up.  Anyone having this problem?  Did not have this problem yesterday, but it's here today!  There is also a Red Sheild on the top of the toolbar where it shows the time, battery life, etc.  Right clicking on the sheild drops down Scan Now, Cleanup, Control Center, Scan, System Info, Settings, About, and Register.  A pron site just popped up again!  Need help Please!!

    Fuony wrote:
    The Mac Shield malware can come through Firefox too if you allow it to and you click on it!
    Your exactly right, it is possible that if you visit a site and need the scripts to run for something that the malware that uses Javascript is on that site, then your going to be presented with it.
    The thing is with the Firefox + NoScript combination defeats alot of the web side trickery the malware authors are using to get the malware to appear in the first place.
    Also this "MacDefender" isn't the only malware making the rounds. There are some serious Flash vulnerabilities being hosted on hostile/adult websites that are running scripts for no apparent reason other than to try to infect your machine.
    By running all scripts all the time, your computer is in a state as if you tried running across a busy highway blindfolded.
    As a lifelong "MacHead" I can understand Apple loyalty, but if Apple isn't cutting the mustard on their browser security, rather place their users security at serious risk for the sake of convenience, then I have to think about using and recommending to others something else that is more secure.
    As a example, I surf thousands of web pages a day, some on really nasty sites, yet I haven't seen this "MacDefender" appear on my computer. Even when I purposely visited links that people have submitted that had the malware. (I maintain a couple of bootable clones of my boot drive just in case)

  • ICloud problems help please!

    I have an iPhone 6 and during the setup I must have did something wrong and now I have my old iCloud account on it that I no longer remember the password, security questions, and no longer have the email address to that account.  I think I was hacked and my password and security questions changed. I want to log out of iCloud and start using my current iCloud account.  I know these are security measures, but how can I get logged out??? My iPhone is having problems since the latest update and now I can't make a call or text.  I can't call apple support without a working number  HELP Please.

    Hello shelbyrecords,
    Oh no! That sounds really frustrating. Unfortunately, if iCloud Find my iPhone Activation Lock is enabled on the device we’ll need to gain access to your previous Apple ID account to disable it. Based on the information you have provided, it sounds like you may need a personalized support experience to recover your previous Apple ID:
    If you forgot your Apple ID password - Apple Support
    http://support.apple.com/en-us/HT201487
    Make sure that you’re entering the correct Apple ID. In most cases, your Apple ID is also the primary email address of your Apple ID account. If these steps didn't help you change your password, contact Apple Support.
    Thanks,
    Matt M.

  • Soundtrack problems - help please

    Help please. I tried doing a send to multi-track project from FCP with the base layer video option and kept getting the 'error sending selection to Soundtrack Pro' message. I did a search and the suggestion is that I have no disk space but I have over 600GB!
    Then I tried a send with the full video and the file saved okay. However when I try to open the .stmp file, Soundtrack Pro starts and then freezes. I've tried opening in various ways.
    Help please, I just cannot figure this out! What am I doing wrong?

    Not sure how much help this is, but since you're having problems with the layout, did you try deleting the layout file? MacintoshHD/users/username/Library/Application Support/Soundtrack Pro/Layouts
    BTW, I found a BKiLifeConfiguration.plist in the following path:
    MacintoshHD > Library > Application Support > ProApps > Internal Plug-ins > BrowserKit > iLife.bkplugin > Contents > Resources
    Do you find it there?

  • Multiselect problem Help please!!

    Hi all,
    I am currently using Application Express 3.1.2.00.02 I have developed an online questionnaire with a multiselect list for one of the questions. The problem i am having is that i need each choice to be totaled up separately on the report generated.
    My table of answers looks like this:
    Column name e.g. (Question 9)
    Answer "Dog" "Cat" "Mouse" "Snake" (underneath column name Question 9 depending on what is selected).
    The reporting page would look like below:
    *(Column Question 9)* Count
    Dog 1
    Mouse 1
    Snake 1
    and for the question you could have another respondent who chooses similar of items on the multiselect, so their answer looks like this:
    Answer
    "Question 9" Dog
    "Question 9" Snake
    This would then start a new row on the reporting page like below which is not what i want:
    *(Column Question 9)* Count
    Dog 1
    Mouse 1
    Snake 1
    Dog: Snake 1
    But the report should look like this:
    *(Column Question 9)* Count
    Dog 2
    Mouse 1
    Snake 2
    The current SQLquery i am using is below:
    select "QUESTION 9",
    count(*) c
    from "P1 DQUESTIONNAIRE"
    group by "QUESTION 9"
    Thanks for your help and suggestions,
    'S'

    How to make sure your forum post will never be answered:
    1) Make sure your subject line is completely meaningless (i.e. HELP PLEASE!) and describes no part of your actual problem
    2) State that you are having "a few problems" but make sure to offer no details whatsoever what those problems are or what the symptoms are.
    3) Post large volumes of code instead of distilling the problem down to a compact snippet
    4) For extra points, make the code hard to read by refusing to make use of the "code" tag.

  • K8N Neo2-fx Ram problem Help please

    I have three ram(2x512MB single sided , 1x1GB double sided). Is there any way I can put them all on the motherboard? When I place them all the computer is not starting and it`s making a "beep" every 2-3 seconds. If i connect the 1GB double sided on the Dimm1(green) and the one 512MB single sided on the Dimm3(green) it`s working properly. Is there any way I can use all my ram at the same time. I`m desperate. Help please...  thank you

    Quote from: wodahS on 09-November-06, 05:55:17
    How can I put my computer facts under any post I am posting? I should make it my signature?
    That's the rule mate which you need to gives all your component in details including your PSU and Bios revision so that others can help you! Like what BOSSKILLER say it won't works with 3 DIMMS unless you purhased another 1 GB of RAM then it can solve your problem with 4 DIMMS or else with 2*512MB RAM. Make sure that you've lowered your HT to <=800Mhz as default is 1000Mhz. GD luck.

  • I am currently having trouble with an attached PDF fill-able form...Help Please

    Hello, I was wondering if you would be able to help me out?
    I am having trouble with my attached PDF fill-able form, I am creating a form that has a limit of one page so in order for more room in a certain field I have added a Hyperlink to an additional fill-able(secondary) form within the Parent document (primary fill-able form. The secondary form is inserted as an attachment into the Primary form. My problem is when I open this document up in Adobe Reader, the Primary fill-able form is savable but the attached Secondary form for which the hyperlink leads to is non-savable and is a must print only. Is there a way to make the Secondary form savable as well within the same document? or is there another way I could execute what it is I am trying to achieve?
    Help would be greatly appreciated please and thank you!

    Here is the code, thought I had put it in the first time, guess not heh. Anyway, I converted the arrayList(accountList) to a String so that I could see the that element I am trying to index is in there, which it is. I also checked the file that i'm populating the arrayList from and it also has the element in it.
    public static void getAccountNumbers() {
              accountList = LoadStoreAccounts.readCollectionObject();     
              accountInfo = accountList.toString();
              JOptionPane.showMessageDialog(null, accountInfo);
              acctNumIndex = accountList.indexOf(accountNumber);
              acctIndex = String.valueOf(acctNumIndex);
              JOptionPane.showMessageDialog(null, "Index of accountNumber    is: " + acctIndex);

  • Record saving problem - help please

    Hi,
    I'm having a problem with saving a set of records. I want to do this.
    I have a HTML form which generates a list of candidates who are selected from the interview.
    Here is that code:
    <%@ page language="java" import="java.util.*"%>
    <%@ page import="hrm.CandidateMgr" %>
    <%@ page import="hrm.*" %>
    <%@ page session="true" %>
    <%@ page import="java.text.*" %>
    <jsp:useBean id="candidate" class="hrm.CandidateMgr" scope="session"/>
    <html>
    <head>
    <title>Selected candidate list</title>
    </head>
    <body>
    <center>
    <h3><font color="blue">Interview Mark Sheet</font></h3>
    <p>
    <%--  Get the list of Selection objects
          that was created by database calls --%>
    <%
       List SelectionList = (List) request.getAttribute
          ("Selection");
       if (SelectionList == null)
          throw new ServletException
             ("No Selection attribute");
       Iterator igroups = SelectionList.iterator();
    %>
    <form name="ShowApproval" method="POST" action="AppListEnter.jsp" onsubmit="return
    ValidateDate()">
    <TABLE borderColor=burlywood cellSpacing=0 cellPadding=1
                width="100%" borderColorLight=moccasin border=1>
    <tr>
         <TD noWrap style="background-color: #DEB887"> </TD>
         <TD noWrap style="background-color: #DEB887"><B>Nicno</B></TD>
         <TD noWrap style="background-color: #DEB887"><B>Name</B></TD>
         <TD noWrap style="background-color: #DEB887"><B>Highest educational
    qualification</B></TD>
         <TD noWrap style="background-color: #DEB887"><B>Discipline</B></TD>
         <TD noWrap style="background-color: #DEB887"><B>Skills</B></TD>
         <TD noWrap style="background-color: #DEB887"><B>Expected salary</B></TD>
         <TD noWrap style="background-color: #DEB887"><B>Post applied</B></TD>
         <TD noWrap style="background-color: #DEB887"><B>Telephone</B></TD>
    </tr>
    <%--  Loop through the list and print each item --%>
    <%
       while (igroups.hasNext()) {
          Selection s = (Selection) igroups.next();
    %>
    <tr>
         <td style="background-color:ivory" noWrap>
         <input type="checkbox" name="C1" value="ON"></td>
            <td style="background-color:ivory" noWrap>
                 <%= s.getNicno() %>  </td>
            <td style="background-color:ivory" noWrap>
                 <%= s.getTitle() %><%= s.getFirstName() %> <%= s.getLastName() %>
               </td>
            <td style="background-color:ivory" noWrap>
                 <%= s.getEdu() %> </td>
            <td style="background-color:ivory" noWrap>
              <%= s.getDiscip() %> </td>
            <td style="background-color:ivory" noWrap>
              <%= s.getSkills() %> </td>
         <td style="background-color:ivory" noWrap>
         <%= s.getExpectSal() %> </td>
         <td style="background-color:ivory" noWrap>
              <%= s.getDesigName() %> </td>
         <td style="background-color:ivory" noWrap>
              <%= s.getTele() %> </td>
         <td style="background-color:ivory" noWrap>
    </tr>
    <%
    %>
    </table>
    <p>
    <p>
    Date of interview<input type="text" name="date" size="14">
    <input type="submit" value="SUBMIT" name="B1" style="border: 1px solid #0000FF">
    </form>
    </center>
    <p align="center"><a href="MainForm.jsp">Go to mainform</a></p>
    </body>
    </html>The user can mark the checkboxes and select the candidates as he wish. And finally he will enter the date of interview and press SUBMIT button to save this record.
    This table has the structure like this:
    Approve(nicNo,date)
    At here, how can I tell that to insert only those entries which was selected by the user and also how to capture the nicNo from between <td>....</td>.
    INSERT INTO Approve VALUES (nicNo which was captured, ?) WHERE C1=checked
    Please could you tell me the method to do this task?
    Thanks.

    I don't see anything in the above that has anything to do with JDBC. So here is the tutorial....
    http://java.sun.com/docs/books/tutorial/jdbc/index.html

  • Mildet connect to oracle DB using servlet problem ,help please

    hi guys i have a problem am tring to connect my midlet to databse through midlet but i don`t know what is the problem so far the midlet already connect to my servlet url but the servlet cant read the parameters to open the connection for database
    my servlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.text.*;
    * @author freddy
    public class getconnection extends HttpServlet {
        Statement statement;
    ResultSet rs=null;
    String bstr=null;
    String bstr1=null;
    String bstr2=null;
    public void init()
        * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try {
                /* TODO output your page here
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Servlet getConnection</title>"); 
                out.println("</head>");
                out.println("<body>");
                out.println("<h1>Servlet getConnection at " + request.getContextPath () + "</h1>");
                out.println("</body>");
                out.println("</html>");
            } finally {
                out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        * Handles the HTTP <code>GET</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
      doPost(request,response);
        * Handles the HTTP <code>POST</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
            DataInputStream in = new DataInputStream(
                    (InputStream)request.getInputStream());
            String sid = in.readUTF();
            String user = in.readUTF();
            String pwd = in.readUTF();
          //  "jdbc:oracle:thin:@localhost:1521"+": "+sid
            String message = message = "Name:"+bstr+" telephone:"+bstr1+" burthday:"+bstr2;
             try {
                connect(sid,user, pwd);
                message += "100 ok connected";
            } catch (Throwable t) {
                message += "200 " + t.toString();
            response.setContentType("text/plain");
            response.setContentLength(message.length());
            PrintWriter out = response.getWriter();
            out.println(message);
            in.close();
            out.close();
            out.flush();
        private void connect(String sid, String user,String pwd)
        throws Exception {
            // Establish a JDBC connection to the MYSQL database server.
            //Class.forName("org.gjt.mm.mysql.Driver");
            Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
            Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:"+sid,user,pwd);
            System.out.print("connected");
            try{
               statement =conn.createStatement();
                rs=statement.executeQuery(" Select*from WOH.P_DEMGRAPHICS where P_ID='P1000 '");
            catch(SQLException e)
            System.err.print(e);
           try{
    while (rs.next()) {
    bstr=rs.getString(2);
    bstr1=rs.getString(3);
    bstr2=rs.getString(4);
    statement.close();
       catch (SQLException e) {
    //bstr += e.toString();
    System.err.println(e);
    System.exit(1);
            // Establish a JDBC connection to the Oracle database server.
            //DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:oracle:thin:@localhost:1521:"+db,user,pwd);
            // Establish a JDBC connection to the SQL database server.
            //Class.forName("net.sourceforge.jtds.jdbc.Driver");
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:jtds:sqlserver://localhost:1433/"+db,user,pwd);
        * Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }Midlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    * @author freddy
    public class testOrcl extends MIDlet  implements CommandListener {
       protected String url;
        private String username;
        private Display display;
        private Command exit = new Command("EXIT", Command.EXIT, 1);;
        private Command connect = new Command("Connect", Command.SCREEN, 1);
        private TextField tb;
        private Form menu;
        private TextField tb1;
        private TextField tb2;
        DB db;
        public testOrcl() throws Exception
            display=Display.getDisplay(this);
            url="http://localhost:8084/getConnection/getconnection";
        public void startApp() {
            displayMenu();
        public void displayMenu()
        menu= new Form("connect");
         tb = new TextField("Please input database: ","",30,
                    TextField.ANY );
            tb1 = new TextField("Please input username: ","",30,
                    TextField.ANY);
            tb2 = new TextField("Please input password: ","",30,
                    TextField.PASSWORD);
            menu.append(tb);
            menu.append(tb1);
            menu.append(tb2);
            menu.addCommand(exit);
            menu.addCommand(connect);
            menu.setCommandListener(this);
            display.setCurrent(menu);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) { }
        public void commandAction(Command command, Displayable screen) {
            if (command == exit) {
                destroyApp(false);
                notifyDestroyed();
            } else if (command == connect) {
                db  = new DB(this);
                db.start();
                db.connectDb(tb.getString(),tb1.getString(),tb2.getString());
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.lang.*;
    * @author freddy
    public class DB implements Runnable  {
        testOrcl midlet;
         private Display display;
            String sid;
            String user;
            String pwd;
            public DB( testOrcl midlet)
            this.midlet=midlet;
            display=Display.getDisplay(midlet);
        public void start()
        Thread t = new Thread(this);
                t.start();
        public void run()
         StringBuffer sb = new StringBuffer();
                try {
                    HttpConnection c = (HttpConnection) Connector.open(midlet.url);
                   c.setRequestProperty(
                       "User-Agent","Profile/MIDP-2.1, Configuration/CLDC-1.1");
                    c.setRequestProperty("Content-Language","en-US");
                    c.setRequestMethod(HttpConnection.POST);
                    DataOutputStream os =
                            (DataOutputStream)c.openDataOutputStream();
                    os.writeUTF(sid.trim());
                    os.writeUTF(user.trim());
                    os.writeUTF(pwd.trim());
                    os.flush();
                    os.close();
                    // Get the response from the servlet page.
                    DataInputStream is =(DataInputStream)c.openDataInputStream();
                    //is = c.openInputStream();
                    int ch;
                    sb = new StringBuffer();
                    while ((ch = is.read()) != -1) {
                        sb.append((char)ch);
               showAlert(sb.toString());
                    is.close();
                    c.close();
                } catch (Exception e) {
                    showAlert(e.getMessage());
         /* This method takes input from user like db,user and pwd and pass
                to servlet */
            public void connectDb(String sid,String user,String pwd) {
                this.sid = sid;
                this.user = user;
                this.pwd = pwd;
            /* Display Error On screen*/
            private void showAlert(String err) {
                Alert a = new Alert("");
                a.setString(err);
                a.setTimeout(Alert.FOREVER);
                display.setCurrent(a);
       

    Comment out process request or rewrite & move it to a position after you read the parameters and connect to the db. Decide where you want to write to the output stream. Also, you have some superfluous casting.
    I take it that you are using netbeans? If you debug and step through the code you will get an idea of the flow. The steps should be, midlet connects with POST, doPost is called, server reads parameters, server opens connection, executes query, releases/closes connection, and writes a response to the midlet.
    Some notes about the connect method; The scope of rs may cause problems. It is unlike you will have a valid result set if you have a problem with create statement or execute. Take a look at connection pooling and be mindful how the connections are opened, used, and closed; put all the important cleanup operations in a finally. Remove system.exit from your servlet. Actually I would suggest limiting the scope of all your vars;
    If you store the username, password, and sid on the midlet, you may have trouble updating the installation base if you need to change the values for any reason. Also, you have clients which contain your database u/p, susceptible to snooping and decompilation. Use the servlet to abstract the db from the client. And use a datasource (with connection pooling) for obtaining connections to db.

  • Submit button help (please)

    I have tried asking for help on this topic before, but didn't get any replies. So I try again.
    I have created a pdf form with a submit button that submits the form to a webservice url. I submit it as HTML.
    I receive the form data just fine in my webservice, but I don't know what to return. It seems that the webservice always returns something. I have tried returning a string but get the following:
    Is it possible to return a message saying that the form was receive ok or that an error occurred?
    Does anyone have an example?
    Thanks
    Birthe

    When you have a form, the form has to point to something so that the action of pushing a button on the page has the website do something.
    <form method="post" action="dothis">
    That pretty much needs to lead the form. In my case, "dothis" is a php page that does the actual heavy lifting. I do not think it is a good idea to put a "mailto" on a website because it invites spam. One might as well announce one's email address to all of the spambots in the world. I don't do that for myself and I won't do that for a client.
    So, in my case, "dothis" is a php call.
    Here, your question probably needs to migrate over to the php help area, but I'll offer a solution:
    <?php
    mail("[email protected]", $subject, $message, $from);
    ?>
    In php, the "mail" command will tell a server (that can send an email) to send an email to the address, along with the text that you have set up for the email subject, the text of the message and the text you gathered from the form for either the name or the email address of the person filling out your form.
    The "dothis" php call takes the information from the filled out form as a post and you use php to parse that posting for the information you need from your form. You can also have php check for form validity or for blanks where you don't want them and stop the script if the visitor did not fill out the form:
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Your message was NOT submitted</h2>\n";
    echo $badinput;
    die ("Go back! ! ");
    if(empty($visitor) || empty($visitormail) || empty($visitorphone) || empty($notes )) {
    echo "<h2>Use your Back button - fill in all fields, No message was sent.</h2>\n";
    die ("Use back! ! ");
    The first "if" statement checks for something approximating a real email address, the second checks for blank fields that are required.
    That should get you started.

  • Shockwave Player 11 - Problem HELP PLEASE!!

    I have upgraded to Shockwave Player 11 but I am having big
    problems. I have installed it but when going on a Shockwave
    supported sites ie; iSketch, it comes up in a white-box with a
    message ''Adobe Shockwave Player is now installing.'' ''Installing
    compatibility components.'' with a white bar below which is
    supposed to fill up but doesnt. Screenshot on Link below. I have
    been trying it both on IE7 & Firefox, tried both semi and full
    installer but no luck. Please help?
    http://i7.photobucket.com/albums/y295/ldndude/others/ShockwaveFlash11Problem.jpg

    quote:
    This worked for me. It will actually let me access the game,
    but it is unplayable. The drawings are all just random lines. When
    I draw people see this problem, it looks like I am just drawing
    random lines on the canvas.
    I'm glad 4 helping u.4 me all the games r playable.But the
    new ones like....
    http://www.miniclip.com/games/power-boat/en/
    or
    http://www.miniclip.com/games/rally-championship/en/
    r very slow.

  • How do I solve the following Itunes error -42404 I have tried uninstalling as well as repair and re installing, I keep getting the same problem, Help please

    Please help I am un able to get my I Tunes back on my Windows 7 -64 after a Virus clean out, How can I solve a problem with the followin ITunes error of -42404 I have tried the usual uninstall and reinstal, as well as the  repair all at no success, do any of you have any solution Ideas that have solved this in the past? Please Help, Thank you...

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • Possible line problems - Help Please?

    Good Morning,
    Been having a lot of problems with slow speeds and the Hub disconnecting recently. I suspect this is to do with the phone line as my setup has not changed since previous issues I had with internal wiring which I fixed with help from people on here...
    Anyway, my Hub is connected directly into the test socket and my stats are as below. This doesn't seem right. My noise margin seems very low and the number of errors and events seem rather high. My IP profile has been higher in the past and stable until a few weeks ago.
    I realise the connection is not 'stable' as it's been less than three to five days - I'm struggling to keep a connection for 24 to 48 hours at the moment without a reset so this is good for now!
    Any help from Mods or others much appreciated. Not much I can do at this end.
    Thanks,
    Dan.
    ADSL Line Status
    Connection Information
    Line state: Connectedppp0_0
    Connection time: 2 days, 08:27:20
    Downstream: 2.188 Mbps
    Upstream: 448 Kbps
    ADSL Settings
    VPI/VCI: 0/38
    Type: PPPoA
    Modulation: G.992.1 Annex A
    Latency type: Interleaved
    Noise margin (Down/Up): 2.5 dB / 20.0 dB
    Line attenuation (Down/Up): 61.8 dB / 31.5 dB
    Output power (Down/Up): 17.7 dBm / 12.3 dBm
    FEC Events (Down/Up): 178731265 / 1208
    CRC Events (Down/Up): 288943 / 1108
    Loss of Framing (Local/Remote): 0 / 0
    Loss of Signal (Local/Remote): 0 / 0
    Loss of Power (Local/Remote): 0 / 0
    HEC Events (Down/Up): 418976 / 3497
    Error Seconds (Local/Remote): 38442 / 1298
    Download speed achieved during the test was - 1.6 Mbps
     For your connection, the acceptable range of speeds is 0.4 Mbps-2 Mbps.
     Additional Information:
     Your DSL Connection Rate :2.24 Mbps(DOWN-STREAM), 0.45 Mbps(UP-STREAM)
     IP Profile for your line is - 1.75 Mbps

    as you are in the test socket already are you using a new filter?  tried changing the modem rj11 cable?  do you use a phone extension cable to connect to test socket?
    check this post for other ideas  uk sales 08007830056
    http://community.bt.com/t5/BB-in-Home/Poor-Broadba​nd-speed/m-p/14217#M8397
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • K8mm-ilsr Problems help please

    i have a k8mm-ilsr when i use my 9800 np my monitor randomly shuts off nad comp wont respond thats with ram at 400mhz if i turn ram to 333 it runs longer but randomly monitor shuts off when i use my 9600 it runs flawlessly but i want to use my 9800 as thats why i went to 64 bit i hvae tried everything in the bios and still same trouble i have 450 watt psu 1 x 512 ddr 400 power color 9800 np i have tried this card in other comp with no problems please help lol thanks peeps

    sorry i was reading those sticky's and im not sure if my lonely little psu is enough if anyone understands it can you tell me if mine is enough i have a amd athlon 2800+ 64 bit
    9800 np
    1 cdwr
    1 160 maxtor hdd
    iceberg fan on vid card and 1 lite case fan a one normal case fan and of course stock h/f
    nothing overclocked
    but i have tried overclocking and it crashes same way as if video konks out and i know card is good tried it in other system

Maybe you are looking for

  • Let us redownload for quality

    Hello, my name is Asiago. I am new mac user and an Apple fanboy. I recently have really been adding a lot of content to my itunes library. Yesterday (september 12th 2006) I learned that itunes was releasing higher quality videos which made me really

  • Display no longer functions correctly after update

    After updating this morning (the only package updated being wayland), the display on my main computer (laptop still works fine) no longer works properly. It is a bit difficult to describe the problem: there is a constantly changing display of symbols

  • Kernel Panic Message...Caused by new RAM???

    Hey guys, just purchased 2x1gb ram from otherworldcomputing.com for my powerbook G4, im currently running the latest version I can possibly run which is 10.5.8  Everything seemed great when I put the RAM in, seemed like my computer was running pretty

  • Why don't pdf files sync ?

    My pdf files won't sync to the cloud from my local reactive Cloud folder. No problem with any other files. The files in question were created in Indesign CC 2014. thanks

  • Adding a panel to an open GUI with a background image

    Dear java programmers, I want to add a JPanel with some components on an open(visible) GUI whenever a button is clicked. That JPanel carries a button, a progress bar, a label, and a textarea inside a scrollpane. Whenever the button of the panel is cl