[Opensource] Swing client
Michael Rimov
rimovm at centercomp.com
Sat Jul 6 16:19:02 PDT 2002
At 04:18 PM 7/6/2002 +0300, you wrote:
>Hello all,
>Tsanko, you're right: I thought this would be very simple but I was wrong!
>I think that I'll need to build an object (a servlet) to handle the
>coordination between the client and Expresso.
>
>I was trying to call a controller and display the results since yesterday,
>but I was not successful. Let me explain:
>Expresso places a "CurrentLogin" object in the session in "processLogin()"
>method, if the login is successful. When I try to run a controller after
>the login, Expresso cannot find the "CurrentLogin" object it placed in the
>session before. Because of this, stateAllowed() returns false and the
>controller is not called.
Turgay,
StateAllowed() can always be overridden to serve your own needs. Also
check out ControllerRun, which is a command line program that Mike N. made
to tie in cron with the healthcheck controller.
Finally, although it's less efficient, if you share the password secret
between the client and the server, you can always add cookies to your
client request which then logs you in with each controller
invocation. It's not as efficient, but it isn't too bad either. That's
what I did to do Cactus test cases with Expresso.
HTH!
-Mike
>After a simple example with sessions and servlets, I thought that the
>"session" object would not be a problem here, but I think that's not true.
>
>If I come up with a solution, I'll let you know.
>By the way, I am still working on HTTP communication, because I don't know
>how to do RMI.
>
>Kai, thanks for the info about ULC and Oracle Forms. Sorry, we don't use
>Mozilla and I don't know about XUL.
>
>Himanshu, can you share some more ideas about your "generic browser in
>JAVA-SWINGS"? The area I need help is how you make the client and Expresso
>communicate.
>
>Bye,
>Turgay Zengin.
>
>_________________________________________________________________
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list