-
WEB4J is now Open Source (5 messages)
- Posted by: John O'Hanley
- Posted on: March 23 2009 07:00 EDT
The WEB4J web app framework has been released as open source under the BSD License. (This license was chosen to make it friendly to commercial projects.) The author hopes that open sourcing WEB4J will allow it to be considered by a much wider audience than previously possible. Any suggestions for improvement of the tool are always welcome. Regards, John O'Hanley (creator of web4j).Threaded Messages (5)
- Wonderful by Florin Gheorghies on March 23 2009 09:51 EDT
- How Web4j handles sessions by Pushpinder Singh on March 23 2009 22:55 EDT
- Re: sessions by John O'Hanley on March 24 2009 06:25 EDT
-
Re: sessions by Pushpinder Singh on March 24 2009 04:59 EDT
- Re: sessions by John O'Hanley on March 24 2009 07:28 EDT
-
Re: sessions by Pushpinder Singh on March 24 2009 04:59 EDT
- Re: sessions by John O'Hanley on March 24 2009 06:25 EDT
-
Wonderful[ Go to top ]
- Posted by: Florin Gheorghies
- Posted on: March 23 2009 09:51 EDT
- in response to John O'Hanley
I've been following your project. Thank you for your effort. -
How Web4j handles sessions[ Go to top ]
- Posted by: Pushpinder Singh
- Posted on: March 23 2009 22:55 EDT
- in response to John O'Hanley
How Web4j handles sessions to support multiple users? -
Re: sessions[ Go to top ]
- Posted by: John O'Hanley
- Posted on: March 24 2009 06:25 EDT
- in response to Pushpinder Singh
It simply uses HttpSession objects - part of the Servlet API. In addition, there are some simple convenience methods available to Actions, to allow reading/writing objects to the user's session. There are also simple ways of storing error messages and information messages in session scope (which allows such messages to survive redirect operations). Is there perhaps a more specific use case you are concerned with? - John -
Re: sessions[ Go to top ]
- Posted by: Pushpinder Singh
- Posted on: March 24 2009 16:59 EDT
- in response to John O'Hanley
Coming from WebObjects and Tapestry background, I was wondering whether Action created for a jsp page has session scope by default or Action object has request scope and any session specific logic need to be coded in Action. -
Re: sessions[ Go to top ]
- Posted by: John O'Hanley
- Posted on: March 24 2009 19:28 EDT
- in response to Pushpinder Singh
Here is an example of a typical Action. There is usually no default scope. In the Action, you explicitly call addToRequest or addToSession, according to need (see the ActionImpl class). The only exception to that rule is error and information messages passed to the addError and addMessage methods: such messages are always placed in session scope by ActionImpl, since they often need to survive a redirect.