struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kishore Senji <kse...@gmail.com>
Subject Re: Message Resources not displayed
Date Wed, 19 Jan 2005 18:19:10 GMT
I would debug this problem in the following ways:

* Verify if you are saving the "errors" to the request
* Make sure you are using "saveErrors" and not "saveMessages"
* Write a "StrutsTestCase" or a similiar testcase to verify the ActionErrors
* Have a dump of the request and see that the ActionErrors are put
into the request
* Try the suggestion suggested here [
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg67135.html
]
  Although I can't answer why 2.2 in web.xml wouldn't show the ActionErrors. 

On Wed, 19 Jan 2005 09:15:15 -0500, eid4k@netscape.net
<eid4k@netscape.net> wrote:
> Sorry James, I thought you wanted to know if the file is there.
> 
> I package the application as a war file with Websphere Studio and deploy it as a war
file via the iPlanet interface.
> 
> I have also packaged the war file on the comand line with the jar toll.
> 
> Any idea
> 
> 
> "James Mitchell" <jmitchell@apache.org> wrote:
> 
> >That's not what I was asking.
> >
> >
> >
> >--
> >James Mitchell
> >Software Engineer / Open Source Evangelist
> >EdgeTech, Inc.
> >678.910.8017
> >AIM: jmitchtx
> >
> >----- Original Message -----
> >From: <eid4k@netscape.net>
> >To: ""Struts Users Mailing List"" <user@struts.apache.org>
> >Sent: Wednesday, January 19, 2005 8:42 AM
> >Subject: Re: Message Resources not displayed
> >
> >
> >> It is there because Tomcat does display the messages.
> >>
> >>
> >>
> >> "James Mitchell" <jmitchell@apache.org> wrote:
> >>
> >>>How are you deploying your app? Packaged with Ant?
> >>>
> >>>Many times, people forget to have resources copied during the build
> >>>process.
> >>>This is automatically done for us with most IDEs, but Ant won't do it
> >>>unless
> >>>you tell it to.
> >>>
> >>>Open your .war and make sure it is there under
> >>>/WEB-INF/classes/org/app/resources
> >>>
> >>>
> >>>
> >>>--
> >>>James Mitchell
> >>>Software Engineer / Open Source Evangelist
> >>>EdgeTech, Inc.
> >>>678.910.8017
> >>>AIM: jmitchtx
> >>>
> >>>----- Original Message -----
> >>>From: <eid4k@netscape.net>
> >>>To: <user@struts.apache.org>
> >>>Sent: Wednesday, January 19, 2005 8:26 AM
> >>>Subject: Message Resources not displayed
> >>>
> >>>
> >>>> <!--Since I got no answer yesterday I thought I try again -->
> >>>>
> >>>> Hi there,
> >>>>
> >>>> I have a small Struts application which requires a user to login before
> >>>> he
> >>>> can call an admin action.
> >>>>
> >>>> The application is running fine under Tomcat 4.1 on my local system.
> >>>>
> >>>> When I deploy it to iPlanet WebServer 6.0 SP5 I have the problem that
> >>>> the
> >>>> error messages in ApplicationResouces.properties are not displayed.
> >>>> The ApplicationResources.properties is specified within
> >>>> struts-config.xml.
> >>>> Everything else works correct.
> >>>>
> >>>> So for example if I call an admin action and the user is not logged
in
> >>>> yet, he will be redirect to the login screen. (This works fine)
> >>>> When I submit wrong credentials for the login the login page shall be
> >>>> displayed again with the appropriate error message.
> >>>>
> >>>> This is the line where I add the error in my LoginAction...
> >>>>
> >>>> errors.add("ActionErrors.GLOBAL_ERROR", new
> >>>> ActionError("error.login.failed"));
> >>>>
> >>>> In the JSP page I use ...
> >>>> <html:errors/>
> >>>>
> >>>> and the in the ApplicationResources.properties I have a line like ...
> >>>> error.login.failed = <b>Your username or password is not valid</b>
> >>>>
> >>>> The struts-config.xml has this line ...
> >>>> <message-resources parameter="org.app.resources.ApplicationResources"/>
> >>>>
> >>>> As I said before on Tomcat the error messages are displayed when needed.
> >>>>
> >>>> Your input is much appreciated,
> >>>>
> >>>> Thanks
> >>>>
> >>>>
> >>>> Karim
> >>>>
> >>>>
> >>>> __________________________________________________________________
> >>>> Switch to Netscape Internet Service.
> >>>> As low as $9.95 a month -- Sign up today at
> >>>> http://isp.netscape.com/register
> >>>>
> >>>> Netscape. Just the Net You Need.
> >>>>
> >>>> New! Netscape Toolbar for Internet Explorer
> >>>> Search from anywhere on the Web and block those annoying pop-ups.
> >>>> Download now at http://channels.netscape.com/ns/search/install.jsp
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>
> >> __________________________________________________________________
> >> Switch to Netscape Internet Service.
> >> As low as $9.95 a month -- Sign up today at
> >> http://isp.netscape.com/register
> >>
> >> Netscape. Just the Net You Need.
> >>
> >> New! Netscape Toolbar for Internet Explorer
> >> Search from anywhere on the Web and block those annoying pop-ups.
> >> Download now at http://channels.netscape.com/ns/search/install.jsp
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> __________________________________________________________________
> Switch to Netscape Internet Service.
> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
> 
> Netscape. Just the Net You Need.
> 
> New! Netscape Toolbar for Internet Explorer
> Search from anywhere on the Web and block those annoying pop-ups.
> Download now at http://channels.netscape.com/ns/search/install.jsp
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message