RE: Struts Error Handling Problem

2003-07-30 Thread Yansheng Lin
I didn't finish the first paragraph!!  Sorry.  See [[append]]

---
What do you mean if there is a reason for this?  In the case of an error, you
can output error msg through  [[append]] and all the data entered
will be retained if you return to the original jsp page.
---

Outlook is horrible for editing! But anyways, I guess what I wanted to emphasis
was that you can display errors along with all the form data retained.


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: July 30, 2003 3:10 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Error Handling Problem

What do you mean if there is a reason for this?  In the case of an error, you
can output error msg through 

In your case, you might want to try return back to your input instead of
forwarding it to the .jsp page.  I know they are almost the same, but they is a
mirror difference.  So here comes the harder part.  If you believe that this is
what's supposed to happen, then you found a bug.  You can submit your bug
through bugzilla.apache.org.

Hope this helps!


-Original Message-
From: Rodney Paul [mailto:[EMAIL PROTECTED] 
Sent: July 29, 2003 11:28 PM
To: Struts Users Mailing List (E-mail)
Subject: Struts Error Handling Problem


Hi All,

I am currently using the Struts framework to develop a wizard application.
When using the Struts framework I notice that form data does not get
re-displayed after
issuing ActionErrors. Is there any reason for this?

I use the following code structure for developing the wizard:

OrganisationNameSearch.jsp
OrganisationNameSearchActionForm.java
OrganistaionNameSearchAction.java

and here are the important configuration settings I use to execute code:

---OrganisationNameSearch.jsp---



---Struts Configuration---













Can someone please give me an indication as to why this is happening?

Cheers
Rodney

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts Error Handling Problem

2003-07-30 Thread Yansheng Lin

What do you mean if there is a reason for this?  In the case of an error, you
can output error msg through 

In your case, you might want to try return back to your input instead of
forwarding it to the .jsp page.  I know they are almost the same, but they is a
mirror difference.  So here comes the harder part.  If you believe that this is
what's supposed to happen, then you found a bug.  You can submit your bug
through bugzilla.apache.org.

Hope this helps!


-Original Message-
From: Rodney Paul [mailto:[EMAIL PROTECTED] 
Sent: July 29, 2003 11:28 PM
To: Struts Users Mailing List (E-mail)
Subject: Struts Error Handling Problem


Hi All,

I am currently using the Struts framework to develop a wizard application.
When using the Struts framework I notice that form data does not get
re-displayed after
issuing ActionErrors. Is there any reason for this?

I use the following code structure for developing the wizard:

OrganisationNameSearch.jsp
OrganisationNameSearchActionForm.java
OrganistaionNameSearchAction.java

and here are the important configuration settings I use to execute code:

---OrganisationNameSearch.jsp---



---Struts Configuration---













Can someone please give me an indication as to why this is happening?

Cheers
Rodney

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts Error Handling Problem

2003-07-29 Thread Rodney Paul
Hi All,

I am currently using the Struts framework to develop a wizard application.
When using the Struts framework I notice that form data does not get re-displayed after
issuing ActionErrors. Is there any reason for this?

I use the following code structure for developing the wizard:

OrganisationNameSearch.jsp
OrganisationNameSearchActionForm.java
OrganistaionNameSearchAction.java

and here are the important configuration settings I use to execute code:

---OrganisationNameSearch.jsp---



---Struts Configuration---













Can someone please give me an indication as to why this is happening?

Cheers
Rodney

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts Error Handling Problem

2003-07-07 Thread Rodney Paul
I am currently experiencing a problem with the Struts error handling framework. 
I am trying to use the error handling framework from ActionForm and 
LookupDispatchAction classes. 

The problem I have is in regards to display of error messages. I have found 
that error messages are being displayed correctly using the  tag 
from a ActionForm validate method, but are not being displayed using the 
LookupDispatchAction methods. Please see below: 

ActionForm 
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest 
httpServletRequest) { 
ActionErrors errors = new ActionErrors(); 
errors.add("field", new ActionError("messageKey")); 
return errors; 
} 

LookupDispatchAction 
public ActionForward next(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response) { 
... 
ActionErrors errors = new ActionErrors(); 
errors.add("field", new ActionError("messageKey")); 
if(!errors.isEmpty()) { 
saveErrors(request, errors); 
} 
return (ActionForward)mapping.findForward(target); 
} 


Could someone please tell me why this is so. I would be most interested if 
anyone could provide a solution for this. 

NOTE: 
I am using the Struts version 1.1 release with tomcat version 4.1.24 


Yours Sincerely 
Rodney Paul 

ps. You can contact me via email at [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]