struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sakari.Isoni...@tietoenator.com>
Subject VS: Struts2, DisplayTags OGNL-error
Date Sun, 17 Dec 2006 09:02:05 GMT
Hai,
 
Mark Shifman wrote:
 
Are you using jsp, freemarker or velocity?
Where is displaytags getting its table from?
Here are a couple of pages that may help.
http://struts.apache.org/2.x/docs/application-session-request-objects-in-jsp.html <http://struts.apache.org/2.x/docs/application-session-request-objects-in-jsp.html>

http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html
<http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html>

http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html <http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html>

mas

=> DisplayTag makes html / hrefs like
 
<th class="sortable">
<a href="CustSearch.action?d-49653-o=2&amp;dog=Hello+from+%27dog%27&amp;attr1=Hello+from+getAttr1&amp;d-49653-p=1&amp;cat=Hello+from+%27cat%27&amp;d-49653-s=2&amp;bttra=Hello+from+getBttra&amp;attra=Hello+from+getAttra">dayOfBirth</a></th>
<th class="sortable">
<a href="CustSearch.action?d-49653-o=2&amp;dog=Hello+from+%27dog%27&amp;attr1=Hello+from+getAttr1&amp;d-49653-p=1&amp;cat=Hello+from+%27cat%27&amp;d-49653-s=3&amp;bttra=Hello+from+getBttra&amp;attra=Hello+from+getAttra">address</a></th>
<th>postalCode</th>

How these "d-49653-.." parameters could be reaplaced to another syntax that OGNL accepts ?
 
I tried also with Servlet / Filter, but didn't managed to replace (haven't done much servlets
).
 
/Sakke

________________________________

Lähettäjä: Sakari.Isoniemi@tietoenator.com [mailto:Sakari.Isoniemi@tietoenator.com]
Lähetetty: ke 13.12.2006 7:53
Vastaanottaja: user@struts.apache.org
Aihe: Struts2, DisplayTags OGNL-error



Hi,


DisplayTags (SourceForge) sends a HTTP / GET-method to retrive next page
data.

It uses a parameter like 'd-49653-o'  to control request (for
application).

OGNL don't accept this syntax and throws an exception.

Solution is to make an interpreter before Action to convert this to
another syntax ?

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -


OGNL / Error

ERROR (061212 20:29:29) Error setting expr 'd-49653-o' with value
'[Ljava.lang.String;@9b777a'
ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d
- 49653) - o
 at ognl.SimpleNode.setValueBody(SimpleNode.java:257)
 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:184)
 at
com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
:162)
 at
com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
:150)
 at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(
ParametersInterceptor.java:173)
 at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(Para
metersInterceptor.java:139)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercep
t(StaticParametersInterceptor.java:105)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInt
erceptor.java:80)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploa
dInterceptor.java:204)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(Mod
elDrivenInterceptor.java:74)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.interce
pt(ScopedModelDrivenInterceptor.java:120)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(
ProfilingActivationInterceptor.java:59)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(
DebuggingInterceptor.java:174)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(Chaini
ngInterceptor.java:115)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterc
eptor.java:143)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.intercept(Prepare
Interceptor.java:115)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Servle
tConfigInterceptor.java:156)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInte
rceptor.java:124)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercep
t(ExceptionMappingInterceptor.java:180)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:200)
 at
org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:
27)
 at
org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:
26)
 at
org.apache.struts2.impl.RequestContextImpl.callInContext(RequestContextI
mpl.java:152)
 at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
:25)
 at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:3
30)
 at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:256)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
 at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
 at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
 at java.lang.Thread.run(Thread.java:595)
ERROR (061212 20:29:29) Developer Notification (set webwork.devMode to
false to disable this message):





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


Mime
View raw message