Results 1 to 5 of 5

Thread: Form Help Pls

  1. #1
    CoOlbOyCoOl is offline Member
    Join Date
    May 2007
    Posts
    6
    Rep Power
    0

    Default Form Help Pls

    Basically, i need to design a form where after a user enters a name, he goes to a confirmation page and after he clicks confirm, his name gets displayed a 3rd time.

    form --> confirmation --> display

    I have no problems displaying the names twice. on the confirmation page i use ${param.name} to display. However, i cant get the name to be displayed on the display page. How do you display a user entered variable for the 3rd time :confused:

  2. #2
    levent Guest

    Default

    Hi CoOlbOyCoOl,

    Is this just Swing? What are you using while developing this application? A NetBbeans specific API? I dont know what ${param.name} name is.

    If you are using Swing, then you will just hold that name inside a variable and pass it between forms or pass just the data object holding that variable between your forms.

  3. #3
    CoOlbOyCoOl is offline Member
    Join Date
    May 2007
    Posts
    6
    Rep Power
    0

    Default

    I am using Netbeans 5.5.

  4. #4
    levent Guest

    Default

    I am using Netbeans 5.5.
    Not very useful info :)

    In this case, i guess you are using Netbeans form editor to design your forms and dont know how to pass data between your forms.

    Swing forms are just classes in Java. The difference is that Netbeans protects some of the methods an prohibit changing them inside editor. (This is for protecting the two way automatic transformation between the class and the form designer)

    I recommend you to click on your third class and add the name as a string parameter to the constructor of the class. But since netbeans will not allow you to change the constructor type from editor. You should click "Code" tab in the Properties view, select "Custom Creation Code" and call your modified constructor there.

  5. #5
    CoOlbOyCoOl is offline Member
    Join Date
    May 2007
    Posts
    6
    Rep Power
    0

Similar Threads

  1. how to read a form with JFS
    By crispy in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 05-01-2008, 03:07 PM
  2. I am new tothis form
    By Srinivas in forum Introductions
    Replies: 1
    Last Post: 02-06-2008, 06:37 AM
  3. Form Notes
    By creel in forum Java Applets
    Replies: 0
    Last Post: 02-02-2008, 01:25 AM
  4. 1 form 2 servlets
    By sandor in forum Java Servlet
    Replies: 2
    Last Post: 01-22-2008, 10:47 AM
  5. center a form
    By tommy in forum New To Java
    Replies: 2
    Last Post: 08-06-2007, 08:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •