You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Nils-Helge Garli (JIRA)" <ji...@apache.org> on 2008/03/02 10:28:08 UTC

[jira] Commented: (WW-2519) Cannot call servlet from portlet using tag

    [ https://issues.apache.org/struts/browse/WW-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43430#action_43430 ] 

Nils-Helge Garli commented on WW-2519:
--------------------------------------

I assume this is because you have configured the FilterDispatcher in your web.xml. That should not be necessary when running a portlet. Remove the filter definition, at it should work. If you experience otherwise, please reopen the issue.

> Cannot call servlet from portlet using <img> tag
> ------------------------------------------------
>
>                 Key: WW-2519
>                 URL: https://issues.apache.org/struts/browse/WW-2519
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>         Environment: Windows XP, Liferay 4.3.5, Java build 1.6.0_03-b05, Tomcat6
>            Reporter: Mike Gardiner
>
> I have an imageservlet used to server dynamic images with the following mapping in the web.xml file:
> <servlet-mapping>
>         <servlet-name>ImageViewer</servlet-name>
>         <url-pattern>/imageview/*</url-pattern>
> </servlet-mapping>
> From within my JSP I can call the servlet using the include tag:
>      <s:include value="/imageview"/>
> but when I try to access it from an <img> it fails.
>     <s:url var="imgURL" value="/imageview"/>
>      <img src="${imgURL}" alt="img" width="40", height="40"/>  T H I S    F A I L S
> I get the following exception:
> 2008-02-28 20:08:29,096 [http-8080-1    ] WARN  OgnlValueStack                 -
>  Could not find property [struts.valueStack]
> 2008-02-28 20:08:29,096 [http-8080-1    ] ERROR Dispatcher                     -
>  Could not find action or result
> There is no Action mapped for namespace / and action name imageview. - [unknown location]
>         at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)
>         at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:60)
>         at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:38)
>         at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
>         at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:466)
>         at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:458)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.