Re: Handling session timeouts

2001-06-09 Thread Martin Cooper
Why not just add a property to your form bean to detect this? Then you can do the following: - When the bean is constructed, the 'valid' property is set to false. - When the action sets up the bean for display, it sets 'valid' to true. - The JSP checks the 'valid' property before using the values

cvs commit: jakarta-struts/src/share/org/apache/struts/util RequestUtils.java

2001-06-09 Thread craigmcc
craigmcc01/06/09 21:13:34 Modified:src/share/org/apache/struts/util RequestUtils.java Log: Port the fix for Bugzilla #2088. Revision ChangesPath 1.17 +6 -6 jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java Index: RequestUtils.java ==

cvs commit: jakarta-struts/src/share/org/apache/struts/util RequestUtils.java

2001-06-09 Thread craigmcc
craigmcc01/06/09 21:12:53 Modified:src/share/org/apache/struts/util Tag: STRUTS_1_0_BRANCH RequestUtils.java Log: Check for a missing bean before checking for property=null. This way, the documented JspException will be thrown if the bean is not found.

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html BaseHandlerTag.java CheckboxTag.java MultiboxTag.java OptionTag.java OptionsTag.java RadioTag.java SelectTag.java

2001-06-09 Thread craigmcc
craigmcc01/06/09 20:53:31 Modified:src/share/org/apache/struts/taglib/html BaseHandlerTag.java CheckboxTag.java MultiboxTag.java OptionTag.java OptionsTag.java RadioTag.java SelectTag.java Log: Port the fix for Bugzilla #1982 Revi

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html BaseHandlerTag.java CheckboxTag.java MultiboxTag.java OptionTag.java OptionsTag.java RadioTag.java SelectTag.java

2001-06-09 Thread craigmcc
craigmcc01/06/09 20:51:42 Modified:src/share/org/apache/struts/taglib/html Tag: STRUTS_1_0_BRANCH BaseHandlerTag.java CheckboxTag.java MultiboxTag.java OptionTag.java OptionsTag.java RadioTag.java SelectTag.java L

cvs commit: jakarta-struts/src/share/org/apache/struts/util GenericDataSource.java

2001-06-09 Thread craigmcc
craigmcc01/06/09 20:37:27 Modified:src/share/org/apache/struts/util GenericDataSource.java Log: Port fix for bugzilla #1980. Revision ChangesPath 1.7 +5 -5 jakarta-struts/src/share/org/apache/struts/util/GenericDataSource.java Index: GenericDataSource.ja

cvs commit: jakarta-struts/src/share/org/apache/struts/util GenericDataSource.java

2001-06-09 Thread craigmcc
craigmcc01/06/09 20:36:50 Modified:src/share/org/apache/struts/util Tag: STRUTS_1_0_BRANCH GenericDataSource.java Log: Correct stupid cut-n-paste typo that caused NPE when using pingQuery. PR: Bugzilla #1980 Submitted by: Howard Moore <[EMAIL PROTECTED

RE: Multiple request parameter for the html:link tag

2001-06-09 Thread Eric Fesler
Hi Ted, here follows a example of the tag usage with iterate. We assume that there is a collection ('catalog') of Book bean available in the page context. A book bean has 3 properties: a title, a publisher and a reference at the publisher (I know it exists a unique book reference names ISBN but t

Re: Work flow RFC

2001-06-09 Thread Ted Husted
"Frye, Dave" wrote: > Does any of this make sense? Yes, but it might be helpful to nitpick some vocabulary just to avoid later confusion. The best practice is for a JSP never to link to another JSP. All links should be to Action Mappings, which in turn help decide which JSP (or other view) to p

RE: Use of HashMaps via logic:iterate and bean:write

2001-06-09 Thread John J. Thomas
Thanks Martin, After reading the last few emails, I now realize that this thread is more appropriate for the Struts' users group. The trouble is I'm iterating over a collection of HashMaps. The collection represents the queried data, the HashMap represents a row of data. So, the iterate tag retr

Re: Handling session timeouts

2001-06-09 Thread Ron Smith
I think a hook into session creation would be good. I'd think the scenario you describe would be pretty common. I know we did pretty much what you describe for a non-struts based app. I wonder if people are doing no session handling by overriding processPreprocess() or perhaps in the action cla

Indexed bean properties in STRUTS 1.1?

2001-06-09 Thread Michael Mok
Hi   Is the sample code provided by Niall Pemberton going be to integrated into STRUTS. I have added the patch and it works quite. It may not be the best solution but it would be nice to know that STRUTS 1.1 will suppor index properties such we do not have to create an index counter prior to