Were are attempting to do the same thing. (Have an action return an image) everything works great but we have the following error in the server log.

StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java: 836)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja va:165)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.ja va:146)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:184)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java: 176)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java: 174)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF actoryImpl.java:204)
at org.apache.jasper.runtime.JspFactoryImpl.access$000(JspFactoryImpl.java: 83)
at org.apache.jasper.runtime.JspFactoryImpl$PrivilegedReleasePageContext.ru n(JspFactoryImpl.java:132)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm pl.java:197)


We are only calling that method one in our action.

Nathan

On Feb 3, 2004, at 11:41 AM, Ben Anderson wrote:

if <img src="/some/dir/myAction.do">doens't work for you,
then adding an <base> tag isn't going to help you.
You just need to add your application context in there.  Check out:
http://jakarta.apache.org/struts/userGuide/struts-html.html#img

Also here's another archive site:
http://marc.theaimsgroup.com

-Ben

From: Manfred Wolff <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: img tag with action as src
Date: Tue, 03 Feb 2004 19:27:03 +0100

Greg

use the <html:base/> Tag. Then Struts appends the base uri like

http://localhost:0000/MyApp/

to your relative path. Your image might be then

<img src="/some/dir/mypicture.jpg">

Manfred


Greg Blomquist wrote:


I apologize in advance if this question has already been answered somewhere.
Looks like basebeans is down so I can't search the struts-user archives.


I'm trying to do the following:
<img src="/some/dir/myAction.do">

The only problem is that it doesn't like the relative path. I have to code
the absolute path:
<img src="http://localhost:0000/MyApp/some/dir/myAction.do";>


Which is fine until I move to production.

Is there a way to use a relative path when using an action for the src
attribute of an image tag?


Thanks!

Btw, I'm running WSAD 5.1 and the error message I get when trying a relative
path is:
Virtual Host/WebGroup Not Found : The web group
/secure/isa/performance/graph.do has not been defined





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




--
===========================================
Dipl.-Inf. Manfred Wolff
-------------------------------------------
phone neusta : +49 421 20696-27
phone : +49 421 534522
mobil : +49 178 49 18 434
eFax : +49 1212 6 626 63 965 33
-------------------------------------------
____________________________________________________
Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.


This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



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


_________________________________________________________________
Find high-speed ‘net deals — comparison-shop your local providers here. https://broadband.msn.com



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



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



Reply via email to