daiyna wrote:
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"/>

What does that do? It makes no sense to put image data in-line in an HTML page; does your servlet return image data, or is it returning a URL or something?

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:

[...]

Have you looked at the generated HTML? What's the URL in the <img> tag? Maybe <s:url> is prepending something to the URL that shouldn't be there for this use case, or appending an unwanted .action suffix or something.

L.


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

Reply via email to