Not sure if you should call errors!=null && !errors.isEmpty()

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-----Original Message-----
From: Mervin Williams [mailto:[EMAIL PROTECTED] 
Sent: March 3, 2003 12:54 PM
To: 'Struts Users Mailing List'
Subject: RE: Problems with Struts 1.1 RC 1

Thanks. Importing the org.apache.struts.* fixed problem #1.  However,
problem #2 is still occurring.

Please help.

-----Original Message-----
From: p2 - apache [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 11:27 AM
To: 'Struts Users Mailing List'
Subject: RE: Problems with Struts 1.1 RC 1




Have you imported Globals which is a struts class?


-----Original Message-----
From: Mervin Williams [mailto:[EMAIL PROTECTED] 
Sent: March 3, 2003 12:16 PM
To: [EMAIL PROTECTED]
Subject: Problems with Struts 1.1 RC 1

I am receiving 2 errors with the Struts 1.1 RC 1.  The errors are: 

  (1) "Error #: 300: variable Globals not found in..." when compiling a
line of code in my Action class that reads, "DataSource dataSource =
(DataSource)servlet.getServletContext().getAttribute(Globals.DATA_SOURCE
_KEY);"

  (2) At runtime, a call to the ActionErrors isEmpty() method causes a
Servlet Exception.  For instance, in the call: "if(!errors.isEmpty())"

I have created a new Struts 1.1 JSP Tag Library and included it within
my WebApp project.  And I've copied all the Struts /lib folder to my
project's /lib folder.  Nonetheless, when I build the entire project I
continue to receive these errors.

Please help!

Mervin


---------------------------------------------------------------------
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]

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

Reply via email to