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
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
==
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.
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
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
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
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
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
"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
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
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
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
12 matches
Mail list logo