Hi folks,

i got some problems with ActionErrors from Struts. If i tried to add some
Error, i will get a blank page without some error msg.

code snipplet:

ActionErrors errors = validate(form,request,mapping);
errors.add("foobar", new ActionError("abc12345"));

System.out.println("error status --- : "  + errors.isEmpty());

if (!errors.isEmpty()) {
  saveErrors(request, errors);
  return mapping.getInputForward();
}

----

i used the module config with multiple modular struts-application. first, i have 
to send my request to my Action (myAction.do) and init something. If some exception
comes up, i would add this as ActionError and show an error on the jsp.
Here my action config:

                <action path="/avr-ekzuordnung"
                        type="de.mycompany.MyAction"
                        name="myFoobarForm"
                        input="input"
                        scope="session"
                        validate="false">
                        <forward name="input"
                                 path="/protected/avr_ekzuordnung.jsp"
                                 redirect="false"
                                 contextRelative="true"/>
                 </action>

I've learned to set the synonym input for my forward, otherwise i will get also 
a blank page without a error msg. 

My main problem is the result of a blank page without some errors. Look up at my 
example code
and action config.

I'll be thankfull for help
Greetings
geramaya






                
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

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

Reply via email to