Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-08-13       - By Cameron, David

 Back
Hi

I believe I'm using the redirect-action result type in the recommended
way, but I'm seeing warnings from OgnlUtil in my log4j logs. Is there a
way to avoid the warnings, short of adjusting log4j.xml? The stack
traces are very deep, so they spam the logs. But I don't really want to
exclude all warnings from OgnlUtil from my logs, because I want the
application to be as easy to maintain as possible.

The current exception is correct: there is no property 'pageName' on
'org.apache.struts2.dispatcher.ServletActionRedirectResult'. I want the
'pageName' parameter passed as a parameter to the next action. The
struts documentation at
http://struts.apache.org/2.x/docs/redirect-action-result.html suggests
that my struts config file is following the correct usage to achieve
this effect.

Here's a snippet from my struts.xml:
<action name="savePagePart5"
   class="com.zzz.actions.SaveApplicationAction">
   <result name="success" type="redirect-action">
       <param name="actionName">viewPage.action</param>
       <param name="pageName">${page.nextPage}</param>
   </result>
</action>

And an excerpt from the resulting stack trace:
[2007-08-09 12:41:40,246] WARN  [SocketListener0-0]
com.opensymphony.xwork2.util.OgnlUtil:369 - Caught OgnlException while
setting property 'pageName' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.pageName
  at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
  at
com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(O
gnlValueStack.java:68)
  at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
  at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
  at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
  at ognl.SimpleNode.setValue(SimpleNode.java:246)
  at ognl.Ognl.setValue(Ognl.java:476)
  at
com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
  at
com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(OgnlUtil.java:
360)
  at
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
  at
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
  at
org.apache.struts2.impl.StrutsObjectFactory.buildResult(StrutsObjectFact
ory.java:95)
  at
com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActi
onInvocation.java:195)
  at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
ionInvocation.java:342)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:253)
  ......
  at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
  at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245
)
  at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
  at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)


Cheers!
Dave


"This e-mail and any attachments to it (the "Communication") is, unless
otherwise stated, confidential,  may contain copyright material and is for the
use only of the intended recipient. If you receive the Communication in error,
please notify the sender immediately by return e-mail, delete the Communication
and the return e-mail, and do not read, copy, retransmit or otherwise deal with
it. Any views expressed in the Communication are those of the individual sender
only, unless expressly stated to be those of Australia and New Zealand Banking
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ
National Bank Limited (together "ANZ"). ANZ does not accept liability in
connection with the integrity of or errors in the Communication, computer virus
, data corruption, interference or delay arising from or in respect of the
Communication."

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.