New to Java - problem with form with DB connectivity

Hi
i'm new to java. And i have designed one HTML form which is having the following fields name,email, date(i used drop down box for this dd/mm/yy) and comments. Now i want to insert these data into Database. I'm using MS Access DB. I dont know how to connect and retrive data from DB. Any can help and guide me? Its very urgent. And also want to know the purpose of using JSP, SERVLETS and JDBC.
Regards,
Prabu

You can start with these links:
[1] http://java.sun.com/products/servlet/
[2] http://java.sun.com/products/jsp/
[3] http://java.sun.com/javaee/5/docs/tutorial/doc/
[4] http://java.sun.com/docs/books/tutorial/jdbc/
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
----------------------------------------------------------------

Similar Messages

  • New to Java and need help with this program..please!

    I'd really appreciate any helpful comments about this program assignment that I have to turn in a week from Friday. I'm taking a class one night a week and completely new to Java. I'd ask my professor for help, but we can't call him during the week and he never answers e-mails. He didn't tell us how to call from other classes yet, and I just can't get the darn thing to do what I want it to do!
    The assignment requirements are:
    1. Change a card game application that draws two cards
    and the higher card wins, to a Blackjack application
    2. Include a new class called Hand
    3. The Hand class should record the number of draws
    4. The application should prompt for a number of draws
    5. The game is played against the Dealer
    6. The dealer always draws a card if the dealer's hand total is <= 17
    7. Prompt the player after each hand if he wants to quit
    8. Display the total games won by the dealer and total and the total games wond by the player after each hand
    9. Display all of the dealer's and player's cards at the
    end of each hand
    10. Player has the option of drawing an additional card after the first two cards
    11. The Ace can have a value of 11 or 1
    (Even though it's not called for in the requirements, I would like to be able to let the Ace have a value of 1 or an 11)
    The following is my code with some comments about a few things that are driving me nuts:
    import java.util.*;
    import javax.swing.*;
    import java.text.*;
    public class CardDeck
    public CardDeck()
    deck = new Card[52];
    fill();
    shuffle();
    public void fill()
    int i;
    int j;
    for (i = 1; i <= 13; i++)
    for (j = 1; j <= 4; j++)
    deck[4 * (i - 1) + j - 1] = new Card(i, j);
    cards = 52;
    public void shuffle()
    int next;
    for (next = 0; next < cards - 1; next++)
    int rand = (int)(Math.random()*(next+1));
    Card temp = deck[next];
    deck[next] = deck[rand];
    deck[rand] = temp;
    public final Card draw()
    if (cards == 0)
    return null;
    cards--;
    return deck[cards];
    public int changeValue()
    int val = 0;
    boolean ace = false;
    int cds;
    for (int i = 0; i < cards; i++)
    if (cardValue > 10)
    cardValue = 10;
    if (cardValue ==1)     {
    ace = true;
    val = val + cardValue;
    if ( ace = true && val + 10 <= 21 )
    val = val + 10;
    return val;
    public static void main(String[] args)
    CardDeck d = new CardDeck();
    int x = 3;
    int i;
    int wins = 1;
    int playerTotal = 1;
    do {
    Card dealer = (d.draw());
    /**I've tried everything I can think of to call the ChangeValue() method after I draw the card, but nothing is working for me.**/
    System.out.println("Dealer draws: " + dealer);
    do {
    dealer = (d.draw());
    System.out.println(" " + dealer);
    }while (dealer.rank() <= 17);
    Card mine = d.draw();
    System.out.println("\t\t\t\t Player draws: "
    + mine);
    mine = d.draw();
    System.out.println("\t\t\t\t\t\t" + mine);
    do{
    String input = JOptionPane.showInputDialog
    ("Would you like a card? ");
    if(input.equalsIgnoreCase("yes"))
         mine = d.draw();
    System.out.println("\t\t\t\t\t\t" + mine);
         playerTotal++;
         else if(input.equalsIgnoreCase("no"))
    System.out.println("\t\t\t\t Player stands");
         else
    System.out.println("\t\tInvalid input.
    Please try again.");
    I don't know how to go about making and calling a method or class that will combine the total cards delt to the player and the total cards delt to the dealer. The rank() method only seems to give me the last cards drawn to compare with when I try to do the tests.**/
    if ((dealer.rank() > mine.rank())
    && (dealer.rank() <= 21)
    || (mine.rank() > 21)
    && (dealer.rank() < 22)
    || ((dealer.rank() == 21)
    && (mine.rank() == 21))
    || ((mine.rank() > 21)
    && (dealer.rank() <= 21)))
    System.out.println("Dealer wins");
    wins++;
         else
    System.out.println("I win!");
    break;
    } while (playerTotal <= 1);
    String stop = JOptionPane.showInputDialog
    ("Would you like to play again? ");
    if (stop.equalsIgnoreCase("no"))
    break;
    if (rounds == 5)
    System.out.println("Player wins " +
    (CardDeck.rounds - wins) + "rounds");
    } while (rounds <= 5);
    private Card[] deck;
    private int cards;
    public static int rounds = 1;
    public int cardValue;
    /**When I try to compile this nested class, I get an error message saying I need a brace here and at the end of the program. I don't know if any of this code would work because I've tried adding braces and still can't compile it.**/
    class Hand()
    static int r = 1;
    public Hand() { CardDeck.rounds = r; }
    public int getRounds() { return r++; }
    final class Card
    public static final int ACE = 1;
    public static final int JACK = 11;
    public static final int QUEEN = 12;
    public static final int KING = 13;
    public static final int CLUBS = 1;
    public static final int DIAMONDS = 2;
    public static final int HEARTS = 3;
    public static final int SPADES = 4;
    public Card(int v, int s)
    value = v;
    suit = s;
    public int getValue() { return value; }
    public int getSuit() { return suit;  }
    public int rank()
    if (value == 1)
    return 4 * 13 + suit;
    else
    return 4 * (value - 1) + suit;
    /**This works, but I'm confused. How is this method called? Does it call itself?**/
    public String toString()
    String v;
    String s;
    if (value == ACE)
    v = "Ace";
    else if (value == JACK)
    v = "Jack";
    else if (value == QUEEN)
    v = "Queen";
    else if (value == KING)
    v = "King";
    else
    v = String.valueOf(value);
    if (suit == DIAMONDS)
    s = "Diamonds";
    else if (suit == HEARTS)
    s = "Hearts";
    else if (suit == SPADES)
    s = "Spades";
    else
    s = "Clubs";
    return v + " of " + s;
    private int value; //Value is an integer, so how can a
    private int suit; //string be assigned to an integer?
    }

    Thank you so much for offering to help me with this Jamie! When I tried to call change value using:
    Card dealer = (d.changeValue());
    I get an error message saying:
    Incompatible types found: int
    required: Card
    I had my weekly class last night and the professor cleared up a few things for me, but I've not had time to make all of the necessary changes. I did find out how toString worked, so that's one question out of the way, and he gave us a lot of information for adding another class to generate random numbers.
    Again, thank you so much. I really want to learn this but I'm feeling so stupid right now. Any help you can give me about the above error message would be appreciated.

  • Date Validation problem in form with report

    Hi,
    I am stuck on this date validation issue in a form with report that I am working on-
    I have an Active_date_start and an Active_date_end field. I want to validate the form in such a way that if the user enters the Active_date_end < active_date_start then it should error out appropriately asking to change the active_end_date . Also another problem is that the changes are made to the active_date_end they should reflect in the table. How do I accomplish this.
    Appreciate all the help offered.
    Thanks.

    Hi,
    Thanks for the code.Now the APPLY CHANGES works fine except that it throws an error when I change the end date to a date which is less than the start date . So it does show me my error and does not go further but also shows me the error -
    Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306: wrong number
    or types of arguments in call to 'NVL' ORA-06550: line 1, column 7: PL/SQL: Statement
    ignored Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306:
    wrong number or types of arguments in call to 'NVL' ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I looked up the error number and it says its a generic error type where the error can be found on the line number specified. But in this case how and where do I look for the error line?. This is the code I am using-
    DECLARE
    vACTIVE_DATE_START DATE;
    vACTIVE_DATE_END DATE;
    BEGIN
    vACTIVE_DATE_START := TO_DATE(:P4_ACTIVE_DATE_START, 'DD/MM/YYYY');
    vACTIVE_DATE_END := TO_DATE(:P4_ACTIVE_DATE_END, 'DD/MM/YYYY');
    IF vACTIVE_DATE_END < vACTIVE_DATE_START THEN
    RETURN 'End date is before start date';
    ELSE
    RETURN NULL;
    END IF;
    END;
    My base table has the active_date_start as NOT NULL. Now I have the exact same code for APPLY CHANGES
    in other form and it works fine not giving the above error. I am at a loss to know how I can get rid of the error.
    Any suggestions!.
    Thanks in advance,
    A

  • Problem sending form with fmt:message key=" " / tag system and jsp code

    I have developt my new web page using jsp. I have done a booking form, please se below here. There are two pages, bookings.jsp and booking_sent.jsp. The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all. For more information follow this link and try out the form;
    http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    BOOKINGS.JSP
    <%@page import="com.neptunediving.*"%>
    <%@include file="../WEB-INF/include/LangSupport.jsp"%>
    <%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
    <!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><fmt:message key="bookings.title1" /></title>
    <META NAME="description" Content="<fmt:message key="bookings.description1" />
    <fmt:message key="bookings.description2" />
    <fmt:message key="bookings.description3" />">
    <meta name="keywords" CONTENT="<fmt:message key="bookings.keywords1" />
    <fmt:message key="bookings.keywords2" />
    <fmt:message key="bookings.keywords3" />">
    <meta name="robots" CONTENT="index, follow">
    <link rel="shortcut icon" href="favicon.ico" >
    <meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
    <meta name="Author" CONTENT="Jesper Nykvist">
    <META NAME="revisit-after" CONTENT="45 days">
    <META NAME="classification" CONTENT="diving">
    <META NAME="classification" CONTENT="scuba">
    <META NAME="classification" CONTENT="accommodation">
    <META NAME="classification" CONTENT="travel">
    <META NAME="classification" CONTENT="restaurants">
    <META NAME="distribution" CONTENT="global">
    <meta name="FreeFind" content="neverFollowScript">
    <meta name="FreeFind" content="noFollowQueries">
    <link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a name="Return"></a>
    <div class="pageHead">
    <div align="center"><%@include
         file="../WEB-INF/include/header.jsp"%></div>
    </div>
    <table class="nav" cellspacing="0">
         <tbody>
              <%@include file="../WEB-INF/include/bookings.jsp"%>
              <table width="100%" height="362" cellspacing="0" class="listTable">
                   <tbody>
                        <tr class="subhead">
                             <td width="54%" height="31"><%@include
                                  file="../WEB-INF/include/freefind.jsp"%></td>
                             <td width="46%">
                             <h1><span class="date"> <%@include
                                  file="../WEB-INF/include/showtime.jsp"%> </span></h1>
                             </td>
                        </tr>
                        <tr>
                             <td height="169" colspan="2">
                             <h2 align="center" class="listTable"><fmt:message key="general.bookings.header1" /></h2>
                             <h2 align="center" class="listTable"><fmt:message key="general.bookings.header2" /></h2>
                             <hr />
                             <p align="center"><fmt:message key="general.bookings.header3" />
                             <fmt:message key="general.bookings.header4" />
                             <fmt:message key="general.bookings.header5" /></p>
                             <p align="center"><fmt:message key="general.bookings.header6" />
                             <fmt:message key="general.bookings.header7" />
                             <fmt:message key="general.bookings.header8" /></p>
                             <hr />
                             </td>
                        </tr>
                        <tr>
                                       <td height="20" colspan="2">
                                       <form id="bookings" name="bookings" method="post"
                                       action="booking_sent.jsp">
                                       <h2 class="newsBody"><fmt:message key="general.bookings.header9" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text1" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="from" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text2" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="email" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text3" /></p>
                                       </td>
                                       <td width="30%"><select name="region">
                                            <option><fmt:message key="general.bookings.text4" /></option>
                                            <option><fmt:message key="general.bookings.text5" /></option>
                                            <option><fmt:message key="general.bookings.text6" /></option>
                                            <option><fmt:message key="general.bookings.text7" /></option>
                                            <option><fmt:message key="general.bookings.text8" /></option>
                                            <option><fmt:message key="general.bookings.text9" /></option>
                                            <option><fmt:message key="general.bookings.text10" /></option>
                                            <option><fmt:message key="general.bookings.text11" /></option>
                                            <option><fmt:message key="general.bookings.text12" /></option>
                                            <option><fmt:message key="general.bookings.text13" /></option>
                                            <option><fmt:message key="general.bookings.text14" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text15" /></p>
                                       </td>
                                       <td width="30%"><select name="language">
                                            <option><fmt:message key="general.bookings.text16" /></option>
                                            <option><fmt:message key="general.bookings.text17" /></option>
                                            <option><fmt:message key="general.bookings.text18" /></option>
                                            <option><fmt:message key="general.bookings.text19" /></option>
                                            <option><fmt:message key="general.bookings.text20" /></option>
                                            <option><fmt:message key="general.bookings.text21" /></option>
                                            <option><fmt:message key="general.bookings.text22" /></option>
                                            <option><fmt:message key="general.bookings.text23" /></option>
                                            <option><fmt:message key="general.bookings.text24" /></option>
                                            <option><fmt:message key="general.bookings.text25" /></option>
                                            <option><fmt:message key="general.bookings.text26" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text27" />
                                       <fmt:message key="general.bookings.text28" />
                                       <fmt:message key="general.bookings.text29" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text30" /><input type="radio"
                                            name="mailing" value="Yes" />
                                            <class="listTable"><fmt:message key="general.bookings.text31" /><input type="radio"
                                            name="mailing" value="No" checked="checked" /></p>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text32" /></p>
                                       </td>
                                       <td width="30%"><select name="find us">
                                            <option><fmt:message key="general.bookings.text33" /></option>
                                            <option><fmt:message key="general.bookings.text34" /></option>
                                            <option><fmt:message key="general.bookings.text35" /></option>
                                            <option><fmt:message key="general.bookings.text36" /></option>
                                            <option><fmt:message key="general.bookings.text37" /></option>
                                            <option><fmt:message key="general.bookings.text38" /></option>
                                            <option><fmt:message key="general.bookings.text39" /></option>
                                            <option><fmt:message key="general.bookings.text40" /></option>
                                            <option><fmt:message key="general.bookings.text41" /></option>
                                            <option><fmt:message key="general.bookings.text42" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       </table>
                                       <br />
                                       <h2 class="newsBody"><fmt:message key="general.bookings.text43" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text44" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="flight no, from"
                                            size="30" maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text45" /></p>
                                       </td>
                                       <td width="30%"><input type="text"
                                            name="arrival time, place" size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text46" />
                                       <fmt:message key="general.bookings.text47" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text48" /><input type="radio"
                                            name="transport" value="Pick-up" />
                                            <class ="listtable="listTable""><fmt:message key="general.bookings.text49" /><input type="radio"
                                            name="transport" value="Bus" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text50" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text51" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text52" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (adults)" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text53" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (children)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text54" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="rooms (fan)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text55" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="rooms (air-con)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                             </table>
                             <br />
                             <h2 class="newsBody"><fmt:message key="general.bookings.text56" /></h2>
                             <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text57" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text58" /><input type="radio"
                                            name="certified diver" value="Yes" />
                                            <class="listTable"><fmt:message key="general.bookings.text59" /><input type="radio"
                                            name="certified diver" value="No" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text60" />
                                       <fmt:message key="general.bookings.text61" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text62" /><input type="radio"
                                            name="introductory course" value="Yes" />
                                            <class ="listTable""><fmt:message key="general.bookings.text63" /><input type="radio"
                                            name="introductory course" value="No" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text64" /></p>
                                       </td>
                                       <td width="30%"><select name="where to dive">
                                            <option><fmt:message key="general.bookings.text65" /></option>
                                            <option><fmt:message key="general.bookings.text66" /></option>
                                            <option><fmt:message key="general.bookings.text67" /></option>
                                       </select></td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text68" /></p>
                                       </td>
                                       <td width="30%"><select name="dive course(s)">
                                            <option><fmt:message key="general.bookings.text69" /></option>
                                            <option><fmt:message key="general.bookings.text70" /></option>
                                            <option><fmt:message key="general.bookings.text71" /></option>
                                            <option><fmt:message key="general.bookings.text72" /></option>
                                            <option><fmt:message key="general.bookings.text73" /></option>
                                            <option><fmt:message key="general.bookings.text74" /></option>
                                            <option><fmt:message key="general.bookings.text75" /></option>
                                            <option><fmt:message key="general.bookings.text76" /></option>
                                            <option><fmt:message key="general.bookings.text77" /></option>
                                            <option><fmt:message key="general.bookings.text78" /></option>
                                            <option><fmt:message key="general.bookings.text79" /></option>
                                            <option><fmt:message key="general.bookings.text80" /></option>
                                       </select>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text81" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="other dive course"
                                            size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text82" /></p>
                                       </td>
                                       <td width="30%"><select name="divepackage / safari">
                                            <option><fmt:message key="general.bookings.text83" /></option>
                                            <option><fmt:message key="general.bookings.text84" /></option>
                                            <option><fmt:message key="general.bookings.text85" /></option>
                                            <option><fmt:message key="general.bookings.text86" /></option>
                                            <option><fmt:message key="general.bookings.text87" /></option>
                                            <option><fmt:message key="general.bookings.text88" /></option>
                                            <option><fmt:message key="general.bookings.text89" /></option>
                                            <option><fmt:message key="general.bookings.text90" /></option>
                                            <option><fmt:message key="general.bookings.text91" /></option>
                                            <option><fmt:message key="general.bookings.text92" /></option>
                                            <option><fmt:message key="general.bookings.text93" /></option>
                                       </select>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text94" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="dive package or safari from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text95" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="dive package or safari to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                  </table>
                             <br />
                             <h2 class="newsBody"><fmt:message key="general.bookings.text96" /></h2>
                             <fmt:message key="general.bookings.text97" />
                             <fmt:message key="general.bookings.text98" />
                             <fmt:message key="general.bookings.text99" /></p>
                             <div align="left"> <textarea name="comments" cols="55" rows="10"></textarea>
                             <div>
                             <br />
                             <input name="Submit" type="submit" value="<fmt:message key="general.bookings.button1" />" />
                             <input type="reset" name="Clear form and start again..!"
                             value="<fmt:message key="general.bookings.button2" />" /></p>
                             </form>
                             </td>
                        </tr>
                        <tr>
                             <td height="29" colspan="2"><a href="#Return"><img
                                  src='<%=URLHelper.getURL("images/arrow.gif")%>'
                                  alt="Return to top" width="21" height="21" border="0" /></a>
                                  <fmt:message key="general.bookings.link1" />
                             </td>
                        </tr>
                        <tr>
                             <td height="105" colspan="2">
                             <hr />
                             <div class="pageFoot">
                             <div align="center"><font size="-1"><b><font
                                  size="3" face="Verdana, Arial, Helvetica, sans-serif"> <%@include
                                  file="../WEB-INF/include/footer.jsp"%>
                             </div>
                             </td>
                        </tr>
                   </tbody>
              </table>
              <p><br style="clear: both;" />
              </p>
         </tbody>
    </table>
    </body>
    </html>
    BOOKING_SENT.JSP
    <%@page import="com.neptunediving.*"%>
    <%@include file="../WEB-INF/include/LangSupport.jsp"%>
    <%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
    <%
         String message;
         message  = "Booking";
         message += "\r\nFrom: " + request.getParameter("from");
         message += "\r\nEmail: " + request.getParameter("email");
         message += "\r\nRegion: " + request.getParameter("region");
         message += "\r\nlanguage: " + request.getParameter("language");
         message += "\r\nMailing: " + request.getParameter("mailing");
         message += "\r\nFind us: " + request.getParameter("find us");
         message += "\r\nFlight: " + request.getParameter("flight no, from");
         message += "\r\nArrival: " + request.getParameter("arrival time, place");
         message += "\r\nPickup: " + request.getParameter("transport");
         message += "\r\nStay from: " + request.getParameter("stay from");
         message += "\r\nStay to: " + request.getParameter("stay to");
         message += "\r\nAdult: " + request.getParameter("guests (adults)");
         message += "\r\nChildren: " + request.getParameter("guests (children)");
         message += "\r\nFan: " + request.getParameter("rooms (fan)");
         message += "\r\nAir-con: " + request.getParameter("rooms (air-con)");
         message += "\r\nCertification: " + request.getParameter("certified diver");
         message += "\r\nIntroductory dive: " + request.getParameter("introductory course");
         message += "\r\nWhere to dive: " + request.getParameter("where to dive");
         message += "\r\nDive courses: " + request.getParameter("dive course(s)");
         message += "\r\nOther dive course: " + request.getParameter("other dive course");
         message += "\r\nDive package or safari: " + request.getParameter("divepackage / safari");
         message += "\r\nDive package or safari from: " + request.getParameter("dive package or safari from");
         message += "\r\nDive package or safari to: " + request.getParameter("dive package or safari to");
         message += "\r\nComments: " + request.getParameter("comments");
         Mailer mailer = new Mailer();
         mailer.sendMail(request.getParameter("from") + "<" + request.getParameter("email") + ">",
                   "booking_sent",
                   message);
    %>
    <!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><fmt:message key="booking_sent.title1" /></title>
    <META NAME="description" Content="<fmt:message key="booking_sent.description1" />
    <fmt:message key="booking_sent.description2" />
    <fmt:message key="booking_sent.description3" />">
    <meta name="keywords" CONTENT="<fmt:message key="booking_sent.keywords1" />
    <fmt:message key="booking_sent.keywords2" />
    <fmt:message key="booking_sent.keywords3" />">
    <meta name="robots" CONTENT="index, follow">
    <link rel="shortcut icon" href="favicon.ico" >
    <meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
    <meta name="Author" CONTENT="Jesper Nykvist">
    <META NAME="revisit-after" CONTENT="45 days">
    <META NAME="classification" CONTENT="diving">
    <META NAME="classification" CONTENT="scuba">
    <META NAME="classification" CONTENT="accommodation">
    <META NAME="classification" CONTENT="travel">
    <META NAME="classification" CONTENT="restaurants">
    <META NAME="distribution" CONTENT="global">
    <meta name="FreeFind" content="neverFollowScript">
    <meta name="FreeFind" content="noFollowQueries">
    <link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a name="Return"></a>
    <div class="pageHead">
    <div align="center"><%@include
         file="../WEB-INF/include/header.jsp"%></div>
    </div>
    <table class="nav" cellspacing="0">
         <tbody>
              <%@include file="../WEB-INF/include/bookings.jsp"%>
              <table width="100%" height="362" cellspacing="0" class="listTable">
                   <tbody>
                        <tr class="subhead">
                             <td width="54%" height="31"><%@include
                                  file="../WEB-INF/include/freefind.jsp"%></td>
                             <td width="46%">
                             <h1><span class="date"> <%@include
                                  file="../WEB-INF/include/showtime.jsp"%> </span></h1>
                             </td>
                        </tr>
                        <tr>
                             <td height="169" colspan="2">
                             <h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header1" /></h2>
                             <h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header2" /></h2>
                             <hr />
                             <p align="center"><fmt:message key="general.booking_sent.header3" />
                             <fmt:message key="general.booking_sent.header4" />
                             <fmt:message key="general.booking_sent.header5" /></p>
                             <p align="center"><fmt:message key="general.booking_sent.header6" />
                             <fmt:message key="general.booking_sent.header7" />
                             <fmt:message key="general.booking_sent.header8" /></p>
                             <hr />
                             </td>
                        </tr>
                        <tr>
                                       <td height="20" colspan="2">
                                       <form id="bookings" name="bookings" method="post"
                                       action="booking_sent.jsp">
                                       <h2 class="newsBody"><fmt:message key="general.booking_sent.header9" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text1" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="from" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text2" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="email" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text3" /></p>
                                       </td>
                                       <td width="30%"><select name="region">
                                            <option><fmt:message key="general.booking_sent.text4" /></option>
                                            <option><fmt:message key="general.booking_sent.text5" /></option>
                                            <option><fmt:message key="general.booking_sent.text6" /></option>
                                            <option><fmt:message key="general.booking_sent.text7" /></option>
                                            <option><fmt:message key="general.booking_sent.text8" /></option>
                                            <option><fmt:message key="general.booking_sent.text9" /></option>
                                            <option><fmt:message key="general.booking_sent.text10" /></option>
                                            <option><fmt:message key="general.booking_sent.text11" /></option>
                                            <option><fmt:message key="general.booking_sent.text12" /></option>
                                            <option><fmt:message key="general.booking_sent.text13" /></option>
                                            <option><fmt:message key="general.booking_sent.text14" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text15" /></p>
                                       </td>
                                       <td width="30%"><select name="language">
                                            <option><fmt:message key="general.booking_sent.text16" /></option>
                                            <option><fmt:message key="general.booking_sent.text17" /></option>
                                            <option><fmt:message key="general.booking_sent.text18" /></option>
                                            <option><fmt:message key="general.booking_sent.text19" /></option>
                                            <option><fmt:message key="general.booking_sent.text20" /></option>
                                            <option><fmt:message key="general.booking_sent.text21" /></option>
                                            <option><fmt:message key="general.booking_sent.text22" /></option>
                                            <option><fmt:message key="general.booking_sent.text23" /></option>
                                            <option><fmt:message key="general.booking_sent.text24" /></option>
                                            <option><fmt:message key="general.booking_sent.text25" /></option>
                                            <option><fmt:message key="general.booking_sent.text26" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text27" />
                                       <fmt:message key="general.booking_sent.text28" />
                                       <fmt:message key="general.booking_sent.text29" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text30" /><input type="radio"
                                            name="mailing" value="Yes" />
                                            <class="listTable"><fmt:message key="general.booking_sent.text31" /><input type="radio"
                                            name="mailing" value="No" checked="checked" /></p>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text32" /></p>
                                       </td>
                                       <td width="30%"><select name="find us">
                                            <option><fmt:message key="general.booking_sent.text33" /></option>
                                            <option><fmt:message key="general.booking_sent.text34" /></option>
                                            <option><fmt:message key="general.booking_sent.text35" /></option>
                                            <option><fmt:message key="general.booking_sent.text36" /></option>
                                            <option><fmt:message key="general.booking_sent.text37" /></option>
                                            <option><fmt:message key="general.booking_sent.text38" /></option>
                                            <option><fmt:message key="general.booking_sent.text39" /></option>
                                            <option><fmt:message key="general.booking_sent.text40" /></option>
                                            <option><fmt:message key="general.booking_sent.text41" /></option>
                                            <option><fmt:message key="general.booking_sent.text42" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       </table>
                                       <br />
                                       <h2 class="newsBody"><fmt:message key="general.booking_sent.text43" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text44" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="flight no, from"
                                            size="30" maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text45" /></p>
                                       </td>
                                       <td width="30%"><input type="text"
                                            name="arrival time, place" size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text46" />
                                       <fmt:message key="general.booking_sent.text47" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text48" /><input type="radio"
                                            name="transport" value="Pick-up" />
                                            <class ="listtable="listTable""><fmt:message key="general.booking_sent.text49" /><input type="radio"
                                            name="transport" value="Bus" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text50" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text51" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text52" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (adults)" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text53" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (children)" size="30"
                                            maxlength="25" />
                                        </td>
                              

    Nope, can't delete posts on this forum,
    I have developed my new web page using jsp. I have done a booking form,
    There are two pages, bookings.jsp and booking_sent.jsp.
    The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all.
    For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    Tried going to that URL and got an error page served by Apache Webserver
    Maybe you haven't got the correct connector going between the webserver and the application server?

  • New To Java Coding, Help NEEDED With a little script

    Well im just working on a script with an open uni course im doing, ive dont the script i was asked to do, but i was wondering if i could expand it abit more
    * The DaylesGod class implements an application that
    * simply prints "Dayles God!" to standard output.
    class DaylesGod {
        public static void main(String[] args) {
            System.out.println("Dayle is GOD!"); // Display the string.
    }thats what i have at the moment, i use cmd-cd C:\java
    C:\java>java DaylesGod
    Dayle is GOD
    I was wondering if i could get it to display diffrent messages on diffrent lines? e.g
    * The DaylesGod class implements an application that
    * simply prints "Dayles God!" to standard output.
    class DaylesGod {
        public static void main(String[] args) {
            System.out.println("Dayle is GOD!"); // Display the string.
            System.out.println("Dayle is GOD!");
            System.out.println("Dayle is GOD!");
    }

    Dayle wrote:
    Could you please give me an example of what that may look like please?
    //New Wow
    class Wow { //File Name
    public static void main(String[] args) {
    System.out.println("Wow");
    System.out.println("Wow");
    }This code executes fine in Jcreator, but only once, it wont type ''Wow'' Twice? Not to sure what to do, it wont run in cmd properly, want multiple ''Wows'' on seprate lines. If possible? Thank you :) and i will get in touch with shrink ha.That should print
    Wow
    WowAre you sure you're not having a problem with Jcreator or whatever you're viewing the output with? You might try executing this from the command line. There's no reason you can't do that.
    Remember, System.out.println(x) is equivalent to System.out.print(x + '\n').

  • Problem close form with upper-right cross

    Hi, I am having a problem with a form in oracle 10gR2.
    The form was made with Oracle designer and now when the user click on the upper-right form cross it's not closed. The user must to click on the parent form and close it.
    Thanks.

    I might add that trigger (when-window-closed) but I'm looking that in the application there are other forms that not include that trigger, however that forms are closed through the upper-right cross.
    It seems like there was a parameter or property in generator time. I don't know. All the applications forms have been created in the same way.
    Thanks, Pavan.
    Xisco.

  • New to Java and need help with error message!

    I have just installed the oracle jdbc driver and am now getting the following error message when trying to use the jbdc driver instead of the jdbc:odbc wrap driver...
    See com.borland.dx.dataset.DataSetException error code: BASE+47
    com.borland.dx.dataset.DataSetException: Chain of 2 or more Exceptions occurred
         at com.borland.dx.dataset.DataSetException.a(Unknown Source)
         at com.borland.dx.dataset.DataSetException.throwExceptionChain(Unknown Source)
         at com.borland.dx.sql.dataset.q.a(Unknown Source)
         at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
         at com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknown Source)
         at com.borland.dx.sql.dataset.o.a(Unknown Source)
         at com.borland.dx.sql.dataset.o.d(Unknown Source)
         at com.borland.dx.sql.dataset.o.f(Unknown Source)
         at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source)
         at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
         at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
         at com.borland.dx.dataset.DataSet.a(Unknown Source)
         at com.borland.dx.dataset.DataSet.open(Unknown Source)
         at com.borland.dbswing.JdbTable.bindDataSet(JdbTable.java:2749)
         at com.borland.dbswing.JdbTable.setDataSet(JdbTable.java:819)
         at myframes.ClaimView.btnSQL_actionPerformed(ClaimView.java:279)
         at myframes.ClaimView_btnSQL_actionAdapter.actionPerformed(ClaimView.java:440)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Chained exception:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.borland.dx.sql.dataset.q.a(Unknown Source)
         at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
         at com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknown Source)
         at com.borland.dx.sql.dataset.o.a(Unknown Source)
         at com.borland.dx.sql.dataset.o.d(Unknown Source)
         at com.borland.dx.sql.dataset.o.f(Unknown Source)
         at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source)
         at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
         at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
         at com.borland.dx.dataset.DataSet.a(Unknown Source)
         at com.borland.dx.dataset.DataSet.open(Unknown Source)
         at com.borland.dbswing.JdbTable.bindDataSet(JdbTable.java:2749)
         at com.borland.dbswing.JdbTable.setDataSet(JdbTable.java:819)
         at myframes.ClaimView.btnSQL_actionPerformed(ClaimView.java:279)
         at myframes.ClaimView_btnSQL_actionAdapter.actionPerformed(ClaimView.java:440)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Here is the code causeing the error;
    void btnSQL_actionPerformed(ActionEvent e)
    try
    String GET_DATASET = txtSQL.getText().trim();
    Display("Executing...");
    try
    MyDisplayTable.setDataSet(null);
    catch (DataSetException ex)
    Display("ERROR 1: " + ex.toString());
    try
    queryDataSet1.close();
    catch (DataSetException ex)
    Display("ERROR 2: " + ex.toString());
    try
    queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(
    database1, GET_DATASET, null, true, Load.ALL));
    catch (DataSetException ex)
    Display("ERROR 3: " + ex.toString());
    try
    if (!queryDataSet1.isOpen()) {
    queryDataSet1.open();
    catch (DataSetException ex) {
    Display("ERROR 5: " + ex.toString());
    try {
    queryDataSet1.refresh();
    catch (Exception ex) {
    Display("ERROR 5.5: " + ex.toString());
    try {
    Display("setDataSet");
    MyDisplayTable.setDataSet(queryDataSet1);
    Display("DONE setDataSet");
    catch (DataSetException ex) {
    Display("ERROR 6: " + ex.toString());
    Display("Query: ' " + GET_DATASET.trim() + " ' was executed successfully");
    catch (Exception ex)
    Display(ex.toString());
    Please let me know if more information is required. I am completely at a loss as to what more I need to do to get this to work using the new driver.
    Thank you all in advance,
    Malcolm Diaz
    Application Developer
    [email protected]
    PlanVista Solutions Inc.
    419 E.Main St.
    Middletown NY 10940
    845-346-2692

    this is more of a jdbc question rather than an internationalization. You might be able to get more help if you post it in java programming section.

  • Problems submitting form with Adobe Reader X?

    Our agency created a PDF fillable form, and recently three respondants using Adobe Reader X (on PCs) have contacted us to say that the submit button is not working and they are unable to save the contents of the form to a file on their computer.  The Forms Central Forum had said Adobe 8.0 or higher would support the fillable form, so we are surprised to be running into this.  Has anyone else encountered this problem and found the solution?  Is there a step we are missing?  Thank you!

    @melissasnider : make sure that the form filler are using Adobe Acrobat, Adobe Reader or Acrobat Mobile to fill up the form.  Any other PDF viewers doesn't support the submission functionality. More information can be found here : http://forums.adobe.com/docs/DOC-2653.
    Hope this helps
    Gen

  • M new to this forum + new to java please help me with file handling program

    hi i want to make a file handling program where in i want to input a text file say f1 whose style is mentioned as below
    aaa...bcd
    aaabbc
    acdce
    a..dd
    abbcd
    now i want to write d out put of file f1 to file f2 but only those string entries widout any ... in them how to do that :-(( please help :((

    import java.io.*;
    import java.lang.*;
    class javcsse{
             void javsce (){
              BufferedReader in;
            PrintWriter out;
            String line;
            try
                in = new BufferedReader(new FileReader("e:\\cntcs\\n7.txt"));
                out = new PrintWriter("e:\\cntcs\\n8.txt");
               line = in.readLine();
               while(line != null)
                     if(line.contains("...") && line.contains("....")){
                         break ;                
                         else{
                               if(line.contains("cc"))
                              System.out.println(line+"\n");
                                      out.println(line);
                    line = in.readLine();
                in.close();
                out.close();
            } catch (Exception ex)
                System.err.println(ex.getMessage());
      public class javcse{
        public static void main(String[] args) {
            new javcsse();
    }hey i wrote this code yet could u tell y is it still not working :((

  • Re: New ways of filling a form with API?

    Hi. I can see that the preview version have gone from build 139 to build 141... Anywhere we can see the changelog for the builds?

    Rasmus,
    not sure it's the complete info, byt it could helps:
    1. SW DC -> SAP Business One 2007 A -> <a href="https://websmp104.sap-ag.de/~sapidb/011000358700006378542006E">What's New</a>
    2. SAP Business One Forum @ p2p -> <a href="http://cpsn-channel.sap.com/businessoneforum?go=24640">B1 2007 A Preview Program - Bug Tracking</a>
    wbr, A.

  • Use Formule on FORM with REPORT - result stored at table

    Hi all,
    What is the best solution for?
    I have region with FORM WITH REPORT on the same PAGE.
    Values stored at table INFO with column ID, MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN, SUM1, SUM2
    ITEMS on the form:
    P1_ID (hidden)
    P1_MYDATE (date picker)
    P1_TIME_START_HOUR (select list)
    P1_TIME_START_MIN (select list)
    P1_TIME_END_HOUR (select list)
    P1_TIME_END_MIN (select list)
    P1_SUM1 (hidden)
    P1_SUM2 (hidden)
    After user fill in MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN then I need proces for calculation SUM1 en SUM2. Result stored (one record) at table INFO.
    Report shows all columns. User had possibility to update the record
    Formule:
    Select
    (CASE
    when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
    THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    (interval '00 00:00:00' day to second)
    ,12,5)
    ELSE '08:00'
    END) SUM1,
    (CASE
    when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
    THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    (interval '00 04:00:00' day to second)
    ,12,5)
    ELSE '04:00'
    END) SUM2
    FROM INFO
    where id=:ID
    What is the best way for the calculation: computation or processes or etc? The calculation after or before user push button(New:create button of Update:Apply Changes)?
    How to fill the answer (SUM1 and SUM2) at table INFO?
    Thanks Walter

    I have something similar I use:
    DECLARE
      str_day      VARCHAR2(10);
      dt_indx      DATE;
      db_dt_indx   VARCHAR2(20);
      str_st_tm    VARCHAR2(20);
      dt_st_tm     DATE;
      db_st_tm     VARCHAR2(20);
      str_ed_tm    VARCHAR2(20);
      dt_ed_tm     DATE;
      db_ed_tm     VARCHAR2(20);
      shft_flag    NUMBER;
    BEGIN
      str_day    := :P1050_DATE_MM || '/' || :P1050_DATE_DD || '/' ||  :P1050_DATE_YYYY;
      dt_indx    := to_date(str_day, 'MM/DD/YYYY');
      db_dt_indx := to_char(dt_indx, 'MM/DD/YYYY');
      str_st_tm  := str_day || ' ' || :P1050_TIME_IN_HH || ':' || :P1050_TIME_IN_MI || ' ' || :P1050_TIME_IN_AM;
      dt_st_tm   := TO_DATE(str_st_tm, 'MM/DD/YYYY HH:MI AM');
      str_ed_tm  := str_day || ' ' || :P1050_TIME_OUT_HH || ':' || :P1050_TIME_OUT_MI || ' ' || :P1050_TIME_OUT_AM;
      dt_ed_tm   := TO_DATE(str_ed_tm, 'MM/DD/YYYY HH:MI AM');
      --Alter date if night shift
      SELECT NVL(:P1050_NIGHT_FLAG,0) into shft_flag from dual;
      IF dt_ed_tm < dt_st_tm THEN
        dt_ed_tm := dt_ed_tm + 1;
      END IF;
      db_st_tm   := to_char(dt_st_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
      db_ed_tm   := to_char(dt_ed_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
    end;You'll need to modify it for your page variables.

  • Open new window in the same form

    Hi
    I created a form with 6 records displayed. I have a check box for each record. I would like to select a record and make the check box checked. Once I check a checkbox I would like to automatically open a new window in the same form with further details of the checked record. Could you please help me how I could work on this.

    Dear you have to create relation between the blocks then you can achieve this like:
    1) Create two canvases in your form (canvas1 and canvas2).
    2) Create a window in your form with name Window2 now you have two windows (Window1 and Window2).
    3) now set the property 'Primary Canvas' of each window (Window1 = Canvas1, window2 = Canvas2)
    4) Now create database block of you main table with (CAT, NAME, DEPT) fields and select the Canvas1 in the layout wizard.
    5) Create another database block with same table but this time select only 3 fields (CAT,SAL, DATE) and at the time of creation mention relation between blocks in the Data block wizard (block1.cat = block2.cat) and select the Canvas2 in the layout wizard.
    6) Now create check box field name MASTER_CHBOX in first block and set Database Item property no of this check box item and set the Value When Checked property to Y and N for Value When unChecked.
    7) Create a trigger on CheckBox Item and paste below code in it.
    if :MASTER_CHBOX = 'Y' then
    show_window('WINDOW2');
    go_item('SAL');
    end if;
    Regards.
    Omer

  • Importing java class from forms 6i

    Dear people
    I want to import very simple java class from forms 6i, i went to programs then i choose import java classes, then it gives me error message PDE-UJ1001 failed to create the jvm.
    please tell me how to solve the problem.
    Yasser

    +... not a Java question. Post moved from the New To Java to the Forms forum.+

  • Java 6 causing problems with Forms 10.1.2.0.2

    I recently installed Sun Java 6 JRE to my Windows XP machine - I have previously been using Java 5 JRE (1.5.0_09).
    When I run my Forms applications from any of our appservers (10.1.2.0.2) (i.e. dev, test, prod) I can get by the login no problem but then get presented with a 'blank' browser window. I say 'blank' because the menu and status bar are present but no forms are displayed.
    In the Java console (tracing set at level 5) I see the following error ...
    network: Connecting http://dbdev.kelman.com:7780/forms/lservlet/;jsessionid=ac1d027f30d62f783e1e32bd4b9295bce539576dad6f.e3aNbxiTbNuMe38Kah0Sb34Pa3n0n6jAmljGr5XDqQLvpAe with cookie "oracle.uix=0^^GMT-7:00"
    network: Cache entry not found [url: http://dbdev.kelman.com:7780/forms/java/oracle/bali/share/sort/StringComparator.class, version: null]
    network: Connecting http://dbdev.kelman.com:7780/forms/java/oracle/bali/share/sort/StringComparator.class with proxy=DIRECT
    network: Connecting http://dbdev.kelman.com:7780/forms/java/oracle/bali/share/sort/StringComparator.class with cookie "oracle.uix=0^^GMT-7:00"
    Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: oracle/bali/share/sort/StringComparator
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    I uninstalled Java 6 and then was able to run the web forms just fine.
    I reinstalled Java 6 and I'm back to the same problem.
    Anyone run across this ?
    Message was edited by:
    markhooper
    null

    This is for the benefit of everybody who are trying to run Forms 10g on the web with Oracle Application Server 10.1.2.0.2 and JRE/JDK 1.6.
    Technically speaking Oracle Support's claims of not being able to certify Forms 10g on Java 1.6 has been due to the way JRE/JDK behaviour which has been changed from 1.6 onwards. Aparently from Java 1.6 onwards, there is a check for all the imported files while classes are being loaded. Although some are not needed by forms they are still checked and an error occurs if they are not present (Note: 748324.1).
    The solution to the problem is to apply the patch 10.1.2.3 (https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=5983622) which is about 1.7Gb for Linux-x86 platform.
    The underlying issue is the way FRMALL.JAR file not having the class oracle.bali.share.sort.StringComparator. Aparently from 10.1.2.3 onwards, Oracle have included this file in the FRMALL.JAR file as a standard bundle, which resolves the bug and completes the java archive.
    Alternatively, you may be able to try the one off patch 7384879 (FORMS 10.1.2.3 JAR FILE EXPIRE JANUARY 2009) which is about 4.6Mb from which you can extract the FRMALL.JAR file and replace the original file in the iAS installation.
    Though I have not tested this personelly, this could be a faster way out of the problem.

  • Scrollbars problem when running a form with Sun Java instead of Jinitiator

    Hi All;
    Our forms are configured to run with the Sun Java instead of
    Jinitiator; functionality wise everything works fine, but when running
    the forms on the web there are 2 extra scrollbars
    (one vertical and one horizontal) in addition of the browser scrollbar.
    Note: This is does not happen when running the same form with Jinitiator (same configurations)
    Anyone encountered this situation or has an idea how to to get ride of the extra scrollbars ???
    Thanks.

    Thanks for your replay.
    I was able to make all forms working without scrollbars when running form developer at the desktop (windows os) without scrollbars
    but when I run them at the application server (Linux Red Hat 3 Enterprise), scrollbars are still there.
    I tried your suggestion but did not help
    here is the formsweb configuration
    [jdk15]
    baseHTML=base.htm
    jpi_classid=clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA
    jpi_codebase=http://server_name:port/forms/jinitiator/jre15012.exe#Version=1,5,0,12
    jpi_mimetype=application/x-java-applet;jpi-version=1.5.0_12
    jpi_download_page=http://server_name:port/forms/jinitiator/jdk_download.htm
    baseHTMLJInitiator=basejpi_with_disableMDIScrollbars_param.htm
    archive=frmall.jar
    separateFrame=False
    splashScreen=no
    background=no
    width=975
    height=575
    form=xxxxx.fmx
    lookandfeel=Generic
    logo=no
    otherparams=useSDI=yes
    The window get maximized at when-new-form-instance.
    Does it has to do with the canvas or window height and width at the design time????
    Thanks.

Maybe you are looking for

  • Error -1073807346 VISA The given session or object reference is invalid

    Hello I'm using a DAQmxBase system with  a program based heavily on the interactive example for USB 800x. The program runs beautifully  in development mode, but fails when I run it after a build. The error has to do with the data acquisition. Is ther

  • About Apple iTunes

    I Was having a problem today trying to Update App's for My Apple iPhone 4 32GB in Apple iTunes on My 2009 24inch Apple iMac Computer, I Had App's for My Apple iPhone 4 32GB & when I Try to Update them The App's would not Update on Apple iTunes so I W

  • Changing a clip's data rate

    I imported an MPEG into FCP 4.5, and though it's a PAL DV clip [720x576], it seems to have come in at a higher data rate than all my other clips [6.9MB/sec instead of 3.6]. This is making it difficult to play. How do I change the data rate down to 3.

  • Finder won't open from dock

    I can't get Finder to open a window when I click it in the dock. Applications will launch from the dock and I can open a window by double-clicking the hard drive icon on the desktop.

  • Nexus Design Question

    Here's the scenario: We're working on a new DC design. Dual 6509VSS in core, dual Nexus 5k and 14 FEXs. The 2ks will be dual attached to the 5ks. Now, I read somewhere else that the 5k is limited to a maximum of 16 vPCs. So the question comes up... d