• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Threads and Forms and Displays

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic