[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: RE: multithreaded with taglibs
From: "Yair Ben-Meir" <yair.ben-meir () sundaysky ! com>
Date: 2007-11-26 11:29:41
Message-ID: 002001c8301f$a39fd6e0$480aa8c0 () YAIR
[Download RAW message or body]
You're right about that - it is not for using over the web. Anyway, that's
just an example. The main issue is to run the work of the tag in a thread
without making the rest of the page wait.
-----Original Message-----
From: David Cassidy [mailto:david@twocats.co.uk]
Sent: Monday, November 26, 2007 12:15 PM
To: Tomcat Users List
Subject: RE: multithreaded with taglibs
Errr
how will you allow people to access the file over the internet with a
file:// protocol ?
are you only running the app and the users browser on the same machine ?
file://C:\My Documents\image.gif
?
Can't see that working over the internet....
On Sun, 2007-11-25 at 13:56 +0200, Yair Ben-Meir wrote:
> Thanks, but that's not good for me, I need the page to be with a real file
> link (file://), not through a servlet.
>
>
> -----Original Message-----
> From: Pid [mailto:p@pidster.com]
> Sent: Sunday, November 25, 2007 11:53 AM
> To: Tomcat Users List
> Subject: Re: multithreaded with taglibs
>
> Yair Ben-Meir wrote:
> > Let say that the tag will have to generate the image with a text given
as
> an
> > attribute, and it takes "time" so I want the page to continue:
> >
> > <my:img src="file" text="first"/>
> >
> > .
> >
> > <my:img src="file" text="first"/>
>
> Why are you doing this with a tag, rather than sending the parameter to
> a servlet that serves an image into it's output stream?
>
> You exploit the browsers own request handling capabilities this way.
>
> <img src="/img-app/generate?param1=some+text+here" alt="an image" />
>
>
> p
>
>
>
> > -----Original Message-----
> > From: David Cassidy [mailto:david@twocats.co.uk]
> > Sent: Thursday, November 22, 2007 6:08 PM
> > To: Tomcat Users List
> > Subject: Re: multithreaded with taglibs
> >
> > Hi
> >
> > What is your tag going to produce ?
> > is it an <IMG SRC="....."> type tag ?
> >
> > or how are you allowing the browser to access the image ?
> >
> > Ta
> >
> > D
> >
> > On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote:
> >> Hi
> >>
> >> Is there a way to write a taglib that will do a multithreading work?
> >> Meaning, that tomcatwill not wait till the first instance of the tag
> >> will end, and continue to the rest of the page, and maybe start with
> >> another instance, and than it will insert the result of each instance
> >> in the right place?
> >>
> >>
> >>
> >> Example:
> >>
> >> <my:img name=""/>
> >>
> >> .
> >>
> >> <my:img name=""/>
> >>
> >>
> >>
> >> And let say that each my:img is supposed to download the image and
> >> save it locally or something like that, and I don't want tomcat to
> >> wait till the first tag is finished.
> >>
> >>
> >>
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >>
> >>
> >> Yair Ben-Meir
> >>
> >>
> >>
> >> Office: 073-7997801
> >>
> >> Fax: 073-7997800
> >>
> >> Mob: 054-5769681
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic