html errors with thrown exceptions
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Todd_Withers
Posted On:   Sunday, July 13, 2003 07:54 PM

i have some actions configured in struts-config like this: name="newRegistrationForm" type="NewRegistrationAction" input="/MyRegistration.jsp" scope="session" path="/registration"> key="AccountLockedException" type="AccountLockedException" scope="request" path="/MyRegistration.jsp" /> ... In MyRegistration.jsp I have created these tags based on an HTH tip: <%=Action.ERROR_KEY%>"> <%=ActionErrors.GLOBAL_ERROR%>"/> I have then configured my action to throw the AccountLockedException which ma   More>>
			
i have some actions configured in struts-config like this:


name="newRegistrationForm"
type="NewRegistrationAction"
input="/MyRegistration.jsp" scope="session"
path="/registration">

key="AccountLockedException"
type="AccountLockedException"
scope="request" path="/MyRegistration.jsp" />
...

In MyRegistration.jsp I have created these tags based on an
HTH tip:

<%=Action.ERROR_KEY%>">
<%=ActionErrors.GLOBAL_ERROR%>"/>



I have then configured my action to throw the
AccountLockedException which may be thrown during execute.
The problem is that I never see the error.

I added a to make sure it was in scope
and the message shows just fine.

I also did some debugging to make sure that it was a
GLOBAL_ERROR and it clearly is.

Should this work?

   <<Less
About | Sitemap | Contact