struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Return text to jsp, plus image and imageMap from a single Data query?
Date Sat, 03 Sep 2011 14:06:51 GMT
Okay, so I guess my question is "Why do you want to deliver the result in
three separate parts?" Without a clear understanding of what you're trying
to do and why, it's difficult to answer in a helpful way.

In any case, you can return a single stream from a single request.

Dave

On Sat, Sep 3, 2011 at 6:09 AM, AndyLaw <andy.law@roslin.ed.ac.uk> wrote:

> Indeed.
>
> I guess my question is "How best to store the results of the action so they
> can be delivered as separate parts?" - particularly the image stream which I
> would really prefer to deliver as a stream rather than fiddling about with
> temporary files on the server.
>
> On 2 Sep 2011, at 18:23, Dave Newton-6 [via Struts] wrote:
>
> Why would you need to call the DB three separate times? If you're already
> returning a JSP why wouldn't you build everything you needed from the
> action
> that processes the original submit? All you're doing is composing the
> results of a few services--no need to call actions to do that, call the
> same
> services.
>
> Dave
>
> On Fri, Sep 2, 2011 at 11:21 AM, AndyLaw <[hidden
> email]<x-msg://15/user/SendEmail.jtp?type=node&node=4763202&i=0>> wrote:
>
> > I have an application that I need to develop that requires the following:
> >
> > Following selection by the user of the item of interest plus up and
> > downstream padding, report the locations and characteristics of features
> of
> > interest found in the region and display the data graphically with
> > clickable
> > links embedded in the image to allow navigation to further descriptions
> of
> > those features.
> >
> > So, I have a single set of inputs, (item, up and down) and I need to
> > generate three things from them.
> >
> > If I were just generating the text display, I would return "success" from
> > my
> > action and dispatch to a jsp. In fact, that seems to be the simplest
> thing
> > to do. I can then embed in the JSP code to call another action to
> generate
> > the image and one to generate the imagemap.
> >
> > But what's the best way to do that from a single database hit (rather
> than
> > fetching the same data in three separate actions)? Initial instinct says
> > "stick it in the session". Is that the best option?
> >
> > Thanks in advance for any help/suggestions you can provide.
> >
> > Later,
> >
> > Andy
> >
> >
> > --
> > View this message in context:
> >
> http://struts.1045723.n5.nabble.com/Return-text-to-jsp-plus-image-and-imageMap-from-a-single-Data-query-tp4762757p4762757.html
> > Sent from the Struts - User mailing list archive at Nabble.com<
> http://Nabble.com>.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden
> email]<x-msg://15/user/SendEmail.jtp?type=node&node=4763202&i=1>
> > For additional commands, e-mail: [hidden
> email]<x-msg://15/user/SendEmail.jtp?type=node&node=4763202&i=2>
> >
> >
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://struts.1045723.n5.nabble.com/Return-text-to-jsp-plus-image-and-imageMap-from-a-single-Data-query-tp4762757p4763202.html
> To unsubscribe from Return text to jsp, plus image and imageMap from a
> single Data query?, click here<
> http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4762757&code=YW5keS5sYXdAcm9zbGluLmVkLmFjLnVrfDQ3NjI3NTd8LTEzOTMxMzMxMg==
> >.
>
> Later,
>
> Andy
> --------
> Yada, yada, yada...
>
> The University of Edinburgh is a charitable body, registered in Scotland,
> with registration number SC005336
> Disclaimer: This e-mail and any attachments are confidential and intended
> solely for the use of the recipient(s) to whom they are addressed. If you
> have received it in error, please destroy all copies and inform the sender.
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Return-text-to-jsp-plus-image-and-imageMap-from-a-single-Data-query-tp4762757p4765172.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message