RE: ActionError problem

2002-01-29 Thread Phil Maher

Do you have error.noCurrentObject in your
ApplicationResources.properties file?  In your struts config, if there
is a validate=true then there needs to be and input=

cheers,

Phil Maher 

-Original Message-
From: Bryan P. Glennon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 4:19 PM
To: Struts Users Mailing List
Subject: RE: ActionError problem


Alex-

I do need to get the session object from the request, so that I can
insure that an object has been set for the operation. It seems to make
no difference if I use it or not - I tried just creating/populating the
ActionErrors object and doing nothing else, and I got the same
results...

Thanks,
Bryan

--
Bryan Glennon (mailto:[EMAIL PROTECTED])
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:[EMAIL PROTECTED])


-Original Message-
From: Brown, Alex [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 29, 2002 6:13 PM
To: 'Struts Users Mailing List'
Subject: RE: ActionError problem


Does this approach work for you?
Make sure your messages are filled in
("eng.admin.group.error.groupname.required") etc.
You should have no need to play with Request, the GET/SET methods should
be populated.

-Alex

public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
try {
if (this.group_name == null) {
errors.add("group_name", new
ActionError("eng.admin.group.error.groupname.required"));
}
return errors;
}
catch (Exception e) {
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("eng.error.general",e.getMessage()));
return errors;
}
}

-Original Message-
From: Bryan P. Glennon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 7:09 PM
To: [EMAIL PROTECTED]
Subject: ActionError problem


Sorry to keep bugging this list, but you have all been so helpful...

I am getting an HTTP error 500 (internal server error) sometime after
the validate method in my form bean returns. I see all of my logging
messages, and there is one entry in the errors list. I see no indication
of problems in any of the tomcat or application logs. The validate
method looks like this:


public ActionErrors validate(ActionMapping mapping,
 javax.servlet.http.HttpServletRequest
request)
{
cat.debug("Validate");

ActionErrors errors = new ActionErrors();

cat.debug("errors created");

Object o = request.getSession().getAttribute("currentObject");

o = null;  // Force error for testing...

if(o == null) {
   errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError("error.noCurrentObject"));
}
cat.debug("Returning error with " + errors.size() + "
entries.");

return errors;
}

Any ideas?

Thanks,
Bryan


--
Bryan Glennon (mailto:[EMAIL PROTECTED])
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:[EMAIL PROTECTED])

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

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


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


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




Tiles, ActionComponentServlet, WebLogic 6.0sp1, NoSuchMethodError

2001-11-13 Thread Phil Maher

I'm having a problem replacing the struts 'ActionServlet' with tiles
'ActionComponentServlet', I keep getting this exception (using WebLogic
6.0sp1) :

-=-=-
Error loading servlet: 'action' 
java.lang. NoSuchMethodError
at org.apache.commons.digester.Digester.getReader(Digester.java:527)
at org.apache.commons.digester.Digester.parse(Digester.java:120)
at
org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:255
)
-=-=-

I've tried to upgrade some library files, including: 

1. add jaxp_1.1 to my /WEB-INF/lib directory

2. add xerces_1.4.3 to my /WEB-INF/lib directory (before the weblogic
classes...to overide the default SAX parser, this just gave me a
java.lang.AbstractMethodError, instead of the
java.lang.NoSuchMethodError

3. added the below to web.xml


  SAXParser
  org.apache.xerces.parsers.SAXParser



...but I keep getting the same error...anyone ideas?

Philip Maher 
 

  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Imbedding tags in a tag

2001-07-12 Thread Phil Maher

Hi,

I've having the problem of embedding tags in a  tag. 
For example, If I have the line:

" />

Where the below is in ApplicationResources.properties: 

project.nsync.Header.alt=Welcome Header Logo

Does anyone know how to do this?