tions in Struts Tiered
Architecture
I think the "null" is generated because the exception's message String was
set to null. It's helped me to print out the various scopes' attributes at
the bottom of the page because the exceptions show up in there.
David
>From
Since you guys are having a good discussion on the exceptions handling in
Struts, I would like to ask a lower level question on this topic.
On my JSP I always get a "null" exception something like "[Exception on
\myPage.jsp: null]". At the beginning this exception was very frustrating
since no more
I got the following exception when deploying a web app using Struts--rc1.
weblogic.management.UndeploymentException
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1520)
at
weblogic.servlet.internal.WebAppHelper.res
According to the ActionForm API, the reset() method "is called before the
properties are repopulated by the controller servlet. "
So by overriding it in your form, the field value should be reset prior to
the next action regardless the form scope.
-Erica
-Original Message-
From: apachep2
To subclass a base actionForm is the design used in our project.
e.g. The baseSearchForm contains fields common to all the objects and the
subSearchForm specifies the fields that are unique for the object.
And also, the action is object specific, so you can assign the sub form to
each action.
I a
5 matches
Mail list logo