struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemle" <eric.le...@ihc.com>
Subject RESOLVED FYI Re: ??? action returning multiple attachments?
Date Tue, 01 Mar 2005 21:21:59 GMT
THIS was SOLVED by adding an onclick to a submit button that called a
javascript method that then called an action via window.open which
returned the attachment
then called it again and again for however many attachments were to be
sent.  Then after the javascript was done the normal submit action was
executed.
he he he! :)


Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111 
United States of America (USA)
(801) 442-3688 -- e-mail: Eric.Lemle@IHC.com


>>> Joe@Germuska.com 3/1/2005 10:52:39 AM >>>
An Action can only return one ActionForward, because there is only 
one response.  Theoretically, you could return a response with a 
content type of "multipart/mixed", but I doubt many browsers would 
know what to do with that.  I guess I've never tried it; maybe they 
take that into account.

Would it be easier to return a single page with links to each of the 
materials which might otherwise be sent as an attachment?  As Erik 
pointed out, the idea of "attachments" is not a natural fit for an 
HTTP response.

Joe


At 12:28 PM -0500 3/1/05, Erik Weber wrote:
>Could it be accomplished by a single ActionForward with a path that 
>specifies the attachments in a query string? Sorry, I don't exactly 
>know what you mean by "attachments".
>
>Erik
>
>
>Eric Lemle wrote:
>
>>Is there a way I can have an action return more than one action
forward,
>>meaning some are going to be attachments and then the normal forward
is
>>returned like usual?
>>
>>
>>
>>
>>
>>Eric D. Lemle
>>Senior Programmer / Analyst
>>Intermountain Health Care
>>36 South State Street, Suite 1100
>>Salt Lake City, Utah 84111 United States of America (USA)
>>(801) 442-3688 -- e-mail: Eric.Lemle@IHC.com 
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org 
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org 
>For additional commands, e-mail: user-help@struts.apache.org 


-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"Narrow minds are weapons made for mass destruction"  -The Ex

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


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


Mime
View raw message