Re: Discussion forum software -- open source

2005-12-26 Thread Vikrama Sanjeeva
I'm not aware of any such forum. But I would vote to convert this "Struts Users Mailing List " to dicussion forum like: http://saloon.javaranch.com It will be more easy to read and keep track of individual posts. Is there any software for reading posts mailed in this mailing list? I use simple

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Vikrama Sanjeeva
Hi, Having separate Actions for insert, update and delete is better. Your approch for making SetUpAction is right, but it's better to make separate JSP's instead of writing if-else logic for headers and other related messages. Bye, Viki. Note: When u'r done with lesson, please sent in this g

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Rick Reumann
On 12/26/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > >>I would use the Request for such a List and wouldn't even bother putting > it in the ActionForm > > But that of course doesn't make the list persist. Most frameworks heavily > rely on the user session > and I am now a strong believer that'

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Paul Benedict
>>ActionForm should be removed from session manually, this is the price to pay. >>I thought about automating this, but Hubert pointed out that a user can open several browser windows for one app, so I gave up on this. One of the biggest concerns I had too was that using the session means only on

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Michael Jouravlev
I guess it is not surprising that I would do a completely orthogonal thing ;-) ActionForm is an I/O buffer, it aggregates BO/DTO + lists/options for selectboxes + error messages for the aggregated BO. BO exposes properties that are editable and "persistable". BO does not care about option lists be

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Paul Benedict
>>I would use the Request for such a List and wouldn't even bother putting it >>in the ActionForm But that of course doesn't make the list persist. Most frameworks heavily rely on the user session and I am now a strong believer that's the better way of doing things. I wonder if allowing the de

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Rick Reumann
I would use the Request for such a List and wouldn't even bother putting it in the ActionForm (unless of course the list is something the user is actually editing, then yes, you'd add that List as an ActionForm property). I try to keep my ActionForm with 'only' properties that the user can edit - n

Discussion forum software -- open source

2005-12-26 Thread Jonnalagadda, Sumithra
Is there a open source "Discussion Forum Software" ?. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Paul Benedict
I am going to ask a related question... so take your best shot :-) I have an edit form in which I have to load a list from the database. The list is actually based on locale. What's the best solution here? I am using real action forms - not that dynafluff stuff ;) Is it to simply make my form s

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Michael Jouravlev
If you treat inserts like updates, things get much easier. When you show employee in edit mode, just pull his data from database into BO/DTO and show it. When you add new employee, create a new empty BO/DTO first. Then show it just like you would do it in edit mode. If user clicks "Save", insert da

Re: tabs is struts

2005-12-26 Thread Michael Jouravlev
Oops, the live demo uses old tag classes and works in Ajax mode only now. Have to redeploy the app, should take an hour or so. On 12/26/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > It is possible to have both types of functionality (with full page > reload and with asynchronous request) in j

Re: tabs is struts

2005-12-26 Thread Michael Jouravlev
It is possible to have both types of functionality (with full page reload and with asynchronous request) in just one component. Check this out, does it look like something you need: http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp If you have modern browser that supports XMLHTTPReque

[ANNOUNCEMENT] JSP Controls Tag Library 0.2 is released

2005-12-26 Thread Michael Jouravlev
(1) New features * Hidden field in component HTML form is no more needed * It is possible to update several components in Ajax mode * The transition between Ajax and non-Ajax mode is undetectable, you can switch Javascript support on or off and see no visual difference. * It is possible to set targ

Re: pre-populating form fields when called in edit mode.

2005-12-26 Thread Rick Reumann
I'm going to have a good lesson that will show exactly what you want, but until then, if you want a quick preview of the Action class, put it here: http://www.reumann.net/misc/EmployeeAction.txt You are following an example where I showed using a separate Action for each behaviour whereas the lin

Re: custom server side validation in shale

2005-12-26 Thread Wendy Smoak
On 12/26/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > it would be nice if Commons Validator > would read more than one resource bundle file without needing to extract it > and add the file to WEB-INF/classes yourself I think it already does. :) Looking at CommonsValidator.getErrorMessage ag

Re: what is diffrent between Struts Datasource and Tomcat datasource

2005-12-26 Thread Craig McClanahan
On 12/26/05, Legolas Woodland <[EMAIL PROTECTED]> wrote: > > Craig McClanahan wrote: > > On 12/26/05, Legolas Woodland <[EMAIL PROTECTED]> wrote: > > > >> Hi > >> thank you for reading my post. > >> we can define data-source inside Struts-config.xml > >> also it is possible to define a data-source

Re: what is diffrent between Struts Datasource and Tomcat datasource

2005-12-26 Thread Legolas Woodland
Craig McClanahan wrote: On 12/26/05, Legolas Woodland <[EMAIL PROTECTED]> wrote: Hi thank you for reading my post. we can define data-source inside Struts-config.xml also it is possible to define a data-source in tomcat admin page. no my question is : what is differences between them , are th

Re: what is diffrent between Struts Datasource and Tomcat datasource

2005-12-26 Thread Craig McClanahan
On 12/26/05, Legolas Woodland <[EMAIL PROTECTED]> wrote: > > Hi > thank you for reading my post. > we can define data-source inside Struts-config.xml > also it is possible to define a data-source in tomcat admin page. > no my question is : > what is differences between them , are they the same ? >

what is diffrent between Struts Datasource and Tomcat datasource

2005-12-26 Thread Legolas Woodland
Hi thank you for reading my post. we can define data-source inside Struts-config.xml also it is possible to define a data-source in tomcat admin page. no my question is : what is differences between them , are they the same ? Which requirement each of this data-source has ? Thank you

Re: custom server side validation in shale

2005-12-26 Thread Craig McClanahan
On 12/26/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > On 12/22/05, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI > <[EMAIL PROTECTED]> wrote: > > > Please let me know about how can we do server side validation in shale. > Like > > user validation, > > > > when user enters some value that time we need

Re: custom server side validation in shale

2005-12-26 Thread Wendy Smoak
On 12/22/05, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI <[EMAIL PROTECTED]> wrote: > Please let me know about how can we do server side validation in shale. Like > user validation, > > when user enters some value that time we need to check with database whether > that is correct one or not. This is