Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-2007, 08:27 AM
Member
 
Join Date: May 2007
Posts: 6
CoOlbOyCoOl is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-25-2007, 09:50 AM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-25-2007, 12:27 PM
Member
 
Join Date: May 2007
Posts: 6
CoOlbOyCoOl is on a distinguished road
I am using Netbeans 5.5.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-25-2007, 01:05 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Quote:
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 05-27-2007, 09:31 AM
Member
 
Join Date: May 2007
Posts: 6
CoOlbOyCoOl is on a distinguished road
Thanks. Finally managed to get it to work
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to read a form with JFS crispy JavaServer Faces 2 05-01-2008 04:07 PM
I am new tothis form Srinivas Introductions 1 02-06-2008 07:37 AM
Form Notes creel Java Applets 0 02-02-2008 02:25 AM
1 form 2 servlets sandor Java Servlet 2 01-22-2008 11:47 AM
center a form tommy New To Java 2 08-06-2007 09:47 PM


All times are GMT +3. The time now is 06:37 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org