• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads and Forms and Displays

 
Unisda Ho
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone clear something up. This comes down to the idea of using threads.
Assuming I have an application that starts with a login form, then validates the login, and redirects accordinly. Upon successful login then goes to another screen, which does a database connect and returns a number of items for the user to select from.

do i then have to create a class for each of these actions, and call those through threads? How then do i parse variables between each one.
Does each one then create its own display/form/screen?

thanks.
uni
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure about the particular design.
Maybe you don't need multiple threads, just a some concept to tell you
what is the active display and "procedure" at each time.

Keep in mind that there can be only one active Displayable at a time and UI event callbacks are executed within the scope of a system thread.
 
Unisda Ho
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i start off with a form that has text inputs for username and password, then in my control action i start a new thread which then goes through a jsp file to return a userID based on those 2 values, but the action in the new thread, can't pick up what was inputted - getting nulls?
they're 2 separate classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic