Matt,
Have you discovered any 'standard' way of putting up confirmation
message in Spring or you still advocate using HttpSession a a vehicle
as donein Equinox?
Regards,
ATTA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
Erik Weber wrote:
This is covered by JMX. For example, see javax.management.timer.Timer
(which can be initialized/destroyed by a ServletContextListener). The
idea is that you can schedule asynchronous operations but leave the
Threads to be managed by the server.
JBoss supports this but I haven
On Tue, 07 Dec 2004 13:41:06 +0800, Andrew Hill
<[EMAIL PROTECTED]> wrote:
>
> I would never, of course, dream of grabbing a request object, or
> similar things, and holding it in a new thread. I would never, ever,
> anytime dream of doing that. Yuk!
>
>
> hehe.
> What about the ServletContext
This is covered by JMX. For example, see javax.management.timer.Timer
(which can be initialized/destroyed by a ServletContextListener). The
idea is that you can schedule asynchronous operations but leave the
Threads to be managed by the server.
JBoss supports this but I haven't had any luck det
I would never, of course, dream of grabbing a request object, or
similar things, and holding it in a new thread. I would never, ever,
anytime dream of doing that. Yuk!
hehe.
What about the ServletContext object though?
Dakota Jack wrote:
Spawning threads is something I do almost as a matter of c
Spawning threads is something I do almost as a matter of course in my
programming. I don't know what I would do without doing that.
I would never, of course, dream of grabbing a request object, or
similar things, and holding it in a new thread. I would never, ever,
anytime dream of doing that. Y
I can only answer for the four hosts I've dealt with... two of them
wouldn't let you schedule jobs, the other two would allow cron jobs
after they were approved by the technical staff. So, I think the short
answer is that in a shared environment you can't count on being able to
schedule anythi
DON'T spawn threads inside a servlet container unless you really, REALLY
have to. It'll tend to save you headaches more times than not. But if
you gotta do it, do it with care :)
Or as they say "dont try this at home kids" :-)
a policy that prohibits them. (For example,
if I was running an
Craig McClanahan wrote:
You might be thinking of the J2EE platform spec, which identifies some
of the issues with threads in EJB containers, or when you're trying to
use transactions. The servlet spec describes a bunch of things that
are either likely to or guaranteed to not work when you deal wit
On Mon, 06 Dec 2004 22:12:35 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
> Interesting answer Craig...
>
> I'm sure we've all heard the admonishment that we should not spawn
> threads inside a servlet container, the container should be "handling
> all threading issues". In fact, I think I
:-)
I know, I know.
I am at about 50% lifetime on Struts vs Random topic.
.V
Andrew Hill wrote:
Yeah! This has nothing to do with rich clients and flash... uh , oops,
struts I mean... ;-)
bryan wrote:
-
To unsubscribe, e-mail: [
Hehe, It sounds rather like its one of those rules that are there for
novices to follow, while those who know what they are doing will know
when they can safely bend it and when they cant ;-)
A fair few libraries one might use in ones projects also do stuff with
threads internally (I believe Ja
Yeah! This has nothing to do with rich clients and flash... uh , oops,
struts I mean... ;-)
bryan wrote:
someone unsubscribe this muppet.
--b
On Sat, 04 Dec 2004 10:33:50 -0600, Vic <[EMAIL PROTECTED]> wrote:
http://contests.1up.com
All you have to do is:
#1: register
#2: invite most other people
I would think that, reading from all the responses in this thread,
creating multiple threads inside a servlet container is NOT a bad
thing as long as the developer takes care of business properly -- in
the same way that C++ developers take care to clean up to prevent
memory leaks.
Regards,
-Yves-
Interesting answer Craig...
I'm sure we've all heard the admonishment that we should not spawn
threads inside a servlet container, the container should be "handling
all threading issues". In fact, I think I even remember something about
it in the spec, or at least being told there was something
You're using the typical pattern for this use case (although it's also
feasible you could use something like JMS to accomplish the
asynchronicity). The most important thing to do, though, is to ensure
that you eventually kill the thread no matter what actually happens,
so that you don't have somet
Here's a follow-up question:
I remember creating a thread in one of my Action classes because I
needed to show a "Wait while your request is being processed..." page.
The flow goes something like:
1. the MAIN thread returns an ActionForward right away that
contains the "processing" page;
Donie,
What version of the Commons Validator (or Struts) do you have? I've looked
at the raw code of the Validator for a few versions and that line 188 seems
to be related to problems with your validation.xml form. I can't tell if it
is a problem with the form name of one of the fields. I recomm
You can now buy a book on JDNC RiA-SoA or download a free preview w/ TOC
and a toolkit at sandrasf.com
This will be a nice xmass gift for all of us.
Sun JDNC has recently posted development of new Swing Extensions. This
is much improved Swing. Combined with WebStart one can now make a
powerful
Any thoughts on this would be appreciated.
1) What do people think about Resin 3.x?
2) I've seen quite a few people say that Resin is faster than Tomcat. Is
this still true for Tomcat 5.x (not 5.5, but the latest one still using JDK
1.4)?
3) In general, what do you feel about the differences betwe
How about Pow2ACL?
http://pow2acl.sourceforge.net/
Regards,
David
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 5:46 PM
To: Dahnke, Eric (Company IT); Struts Users Mailing List
Subject: Re: Flexible ACLs using Struts
Assuming you can def
Theres a typo in your declaration (you have "DTD Struts Configuration 1.1"):
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
Upgrade notes are here:
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTE
Well, I tried that and now I get the same error in the struts-config file. I
have tried:
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
as well as:
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020
Well, I tried that and now I get the same error in the struts-config file. I
have tried:
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
as well as:
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020
Well, I tried that and now I get the same error in the struts-config file. I
have tried:
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
as well as:
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020
Assuming you can define an interface (like "AccessControlManager")
and instantiate an implementation of the instance at servlet init
time (using ServletContextListener or PlugIn), it should be pretty
straightforward.
In the RequestProcessor you'd use the reference to the servlet to
retrieve yo
> -Original Message-
> From: josh [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 3:08 PM
> To: Struts Users Mailing List
> Subject: Session Invalidation in JSP
>
>
> Hi,
>
> I have been working on a portal style collection of apps. There is a
> central app that functions
Did you get my earlier reply to this?
> -Original Message-
> From: You Xu [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: tiles and message internationalization
>
>
>
> In the xml definition file, I have to write name="title"
Hi,
I have been working on a portal style collection of apps. There is a
central app that functions as a simple content management tool. It
generates dynamic Header, footer, navigation, etc... Other apps that
are "in the portal" then do imports of the central application's
Header/footer/nav.
In the xml definition file, I have to write . This is why the extra JSP file title.jsp is created. I
can not just put the for the value attribute. I am
wondering if there is any simpler way so you can put the message directly into
the xml file.
__
Hello, For a few Struts apps in a row now, we've used the roles
attribute and an overriden processRoles() method in a custom request
processor to handle access control within struts apps. A user's Roles
are gotten from the database at login and stored in the User object in
the session. The User ob
I tend to give just the opposite answer :)
I agree that frames can be difficult in a number of ways, however, once
you get a handle on them it's really not a big deal to deal with. More
importantly, depending on your application, you may find that
performance is significantly increased.
Also,
> -Original Message-
> From: You Xu [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 2:38 PM
> To: [EMAIL PROTECTED]
> Subject: RE: tiles and message internationalization
>
>
> In the xml definition file, I have to write value="title.jsp" />. This is why the extra JSP file t
In the xml definition file, I have to write . This is why the extra JSP file title.jsp is
created. I can not just put the for the "value"
attribute. I am wondering if there is any simpler way so you can put
the message directly into the xml file.
As has been noted by others, JMS would be the better solution for an
asynchronous 'process'.
But, if you have to use threads then it is probably a better approach to
create a thread pool at appliction initialization and have the actions use
those threads via a common synchronized data structur
>
> If the brass monkeys upstairs would let me, I would. However, they won't,
> and I've used up all of my "oops I did it anyway" cards for a while. So,
> while helpful, doesn't really answer my question.
>
> As for a finite resource.. as someone else said so is memory, disk
> space, CPU, e
>
> If the brass monkeys upstairs would let me, I would. However, they won't,
> and I've used up all of my "oops I did it anyway" cards for a while. So,
> while helpful, doesn't really answer my question.
>
> As for a finite resource.. as someone else said so is memory, disk
> space, CPU, e
>
>
>
> > -Original Message-
> > From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 06, 2004 1:24 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT]Threads and Servlets Question
> >
> >
> > If you're running on a J2EE app server, or a servlet container
>
>
>
>
> > -Original Message-
> > From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 06, 2004 1:24 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT]Threads and Servlets Question
> >
> >
> > If you're running on a J2EE app server, or a servlet container
>
Makes sense,
will have to look into JMS I guess, cron is the easiest and it work for 90% of
the stuff, oh, well, it rocks.
P.S. In the mean time, this thread about threads, is spinning up new threads,
but that's OK, we are all thread safe.
Jf
On Mon, 06 Dec 2004 14:43:55 -0600
Vic <[EMAIL PRO
> -Original Message-
> From: You Xu [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 12:18 PM
> To: [EMAIL PROTECTED]
> Subject: tiles and message internationalization
>
>
> I have the following:
> . I need to make the
> title message a tile because several pages differ in the
> -Original Message-
> From: bryan [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 1:15 PM
> To: Struts Users Mailing List
> Subject: Re: [OT]Threads and Servlets Question
>
>
> threads are also a finite resource ( particularly on Linux ).
>
> --b
>
>
> On Mon, 6 Dec 200
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic
> Sent: Monday, December 06, 2004 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OT]Threads and Servlets Question
>
>
> A common solution I use is to have async processes run by cron or
> similar to prepare and
A common solution I use is to have async processes run by cron or
similar to prepare and massage data. A sperate application that runs
every few minutes and dies.
A long time ago it was said "Batch is bread and butter of IT. View is
only the icing on the cake."
.V
Jan Fetyko wrote:
This is int
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 1:24 PM
> To: Struts Users Mailing List
> Subject: Re: [OT]Threads and Servlets Question
>
>
> If you're running on a J2EE app server, or a servlet container
> configured with appro
This is interesting,
let me ask another related question :
What about a thread (started from the Action) that just resizes an image and
saves it to a file system ? Would that be also a bad idea ?
Jano
On Mon, 6 Dec 2004 15:18:12 -0500
[EMAIL PROTECTED] wrote:
>I don't understand your respons
Thank you, Luiz!!!
Nadia
-Original Message-
From: Luiz Esmiralha [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 3:10 PM
To: Struts Users Mailing List
Subject: Re: Tiles or Frames or Both
Hi Nadia,
I would bet on tiles. I avoid frames like the plague, for many
reasons. So, use
If you're running on a J2EE app server, or a servlet container
configured with appropriate security policies, you won't be allowed to
start a new thread.
As to why it might be a bad idea, servlet containers make the
assumption that the request and response objects they hand to your
servlet will on
I don't understand your response. Memory (physical and virtual) are also
finite resources. Does this mean that instantiating new objects is a Bad
Thing within an action?
Dennis
bryan <[EMAIL PROTECTED]>
12/06/2004 03:14 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
Hi Nadia,
I would bet on tiles. I avoid frames like the plague, for many
reasons. So, use tiles. It's the struts way of doing what you want.
A great tutorial on tiles: http://www.arc-mind.com/papers/advanced-tiles.pdf
Best regards,
Luiz Esmiralha
On Mon, 6 Dec 2004 14:43:44 -0500, Nadia Kunkov
threads are also a finite resource ( particularly on Linux ).
--b
On Mon, 6 Dec 2004 21:13:57 +0100, bryan <[EMAIL PROTECTED]> wrote:
> because you should use a message driven bean to do something like that.
>
> --b
>
>
>
>
> On Mon, 6 Dec 2004 11:48:15 -0700, Jim Barrows <[EMAIL PROTECTED
because you should use a message driven bean to do something like that.
--b
On Mon, 6 Dec 2004 11:48:15 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote:
> Okay... I know I've read this somewhere, but can't remember.
> Why is it recommended you NOT start a thread inside a servlet, which would
> tra
-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 2:44 PM
To: Struts help (E-mail)
Subject: Tiles or Frames or Both
I had to fix the picture below.
Here it is:
Hi,
This is a struts newbie question.
I'm building an application with the follow
Hi,
This is a struts newbie question.
I'm building an application with the following layout:
|
Some header |
|
--
I have the following:
. I need to make the
title message a tile because several pages differ in the title. I can do
it by creating a JSP file that contains only one line . Is there any simpler way so that no additional JSP
is needed?
Okay... I know I've read this somewhere, but can't remember.
Why is it recommended you NOT start a thread inside a servlet, which would
translate to "Why is it a bad idea to start a thread inside an action?".
And, can you point me at some documentation?
Sorry Marco I didn'yt read your question.
If you've a getVector() method
${vector[0].x}
unless getX() returns a vector.
On Mon, 6 Dec 2004 10:58:06 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote:
> I believe:
>
> will work.
>
>
>
>
> > -Original Message-
> > From: Marco Mistroni [
Hi Marco
Should be the same as a List backed form.
((SomeObject) vector.get(0)).getX();
Mark
On Mon, 6 Dec 2004 17:54:10 -, Marco Mistroni
<[EMAIL PROTECTED]> wrote:
> Hi all,
> 'silly' question...but if I have an ActionForm
> which has a Property of type Vector, how can I say
> 'p
I believe:
will work.
> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 10:54 AM
> To: 'Struts Users Mailing List'
> Subject: getting value of object in a collection via tag
>
>
> Hi all,
> 'silly' question...but if I have an
Hi all,
'silly' question...but if I have an ActionForm
which has a Property of type Vector, how can I say
'print property x' of the first element?
Thanx and regards
marco
-
To unsubscribe, e-mail: [EMAIL PROTECTE
> I have a html:options collection where the beans have a deep
> hierarchy. I'd like to set the labelproperty of my html:options
> to one of the bean's property like
mybean.getCustomer().getParent().getName();
>
> how can I do this with html:options. Does it suport
> expression language?
The E
Hi there!
I have a html:options collection where the beans have a deep hierarchy.
I'd like to set the labelproperty of my html:options to one of the
bean's property like
mybean.getCustomer().getParent().getName();
how can I do this with html:options. Does it suport expression language?
Thanks
-
So does your translation code handle user input errors, like a number/date
in wrong format or does it make a "best guess"?
Do you keep your translations.xml file upto date by hand or use ant to
generate at build time? My app has hundreds of forms with multiple
date/number fields.
I hadn't though
I changed the implementation of the validateNumber etc validation
functions in
struts to versions which take account of locale, but driven off the same
file.
the translator assumes that by the time it has got it for population, it
will be
correct, if there is any error, then it reverts back to th
Currently thats all in the actual "static" validators in Commons:
http://cvs.apache.org/viewcvs.cgi/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/
So if you look at validateByte.js for example - it checks "byte" errors for
all fields and pops up an alert box for
Yes, I have the resource file specified and I use it to load text into
pages. This is working ok. I'm lost as to what might casuse this...
Thanks
Donie
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 03 December 2004 17:08
To: Struts Users Mailing List
Subject: Re
Derek,
Better co-existence with Tiles is something we'll have in the production
version. It's a feature that got dropped from the preview cut, the team
had to get the JSF navigation modeller out of the door as a priority.
Regards
Duncan Mills
Derek Broughton wrote:
On Monday 06 December 2004 0
On Monday 06 December 2004 09:21, Duncan Mills wrote:
> I'll bypass the fluff and get to the point - Oracle have just released a
> preview (read beta) version of JDeveloper 10.1.3 for developers to have
> a play with on OTN
> (http://www.oracle.com/technology/products/jdev/101/index.html) .
> The n
I'll bypass the fluff and get to the point - Oracle have just released a
preview (read beta) version of JDeveloper 10.1.3 for developers to have
a play with on OTN
(http://www.oracle.com/technology/products/jdev/101/index.html) .
The new features in this release are many and varied and fortunate
hmm, that's what I've been trying to avoid.
I went for a somewhat sicker route :-)
I extended the request processor, so it called a new method called
processTranslate() just
after the validator is called! This then does exactly the same as the
population of the form
beans, but calls a translation
Hi
It was something along those lines.
My business objects tend to have convert methods where I take the strings of
the value object (which have been created in the Action from the form) and
turn them into their correct types. I have a NumberUtil class which I use
for converting locale specific
Using a local dev server (each developer runs their own server locally)
and pointing it to one of your working directories that contains an
exploded app is nice. The time it takes to deploy changes needs to be
short to keep productivity up -- it seems unlikely that a process that
involved creating
someone unsubscribe this muppet.
--b
On Sat, 04 Dec 2004 10:33:50 -0600, Vic <[EMAIL PROTECTED]> wrote:
> http://contests.1up.com
>
> All you have to do is:
> #1: register
> #2: invite most other people to register
> So if you have free time and a fast conection . . .
>
> I love MLM.
>
> All
huw,
how did you handle this input on the server side? did you have some
cunning scheme
or just a lot of
NumberFormat.getNumberInstance(request.getLocale()).parse(formBean.getFi
eld())?
thanks
simon
> -Original Message-
> From: Huw Richards [mailto:[EMAIL PROTECTED]
> Sent: 03 Decemb
Huw Richards writes:
> The one problem I had with i18n input was with European locales where "," is
> used as the decimal separator. The number would be formatted with "," as the
> decimal separator but as the input boxes are just text, the numeric keypad
> which produces "," in excel when "." is
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Saturday, December 04, 2004 2:30 AM
> To: Struts Users Mailing List
> Subject: Re: Using a key as var-value in validator
> Validator. I've create a bugzilla ticket for this so it doesn't get
> forgotten.
Thanks
Niall
(Sorry to change the subject Richard) I was looking for where the
alert box is generated in the struts source and could find that bit. I
found where the JS is generated and such like.
Where should I be looking (other than the javascript tag as i can see
an alert box in there)?
Mark
On M
Hi Rich
My applogies for replying not early.
It will be my honour to work with you.
What exactly help you need from my side?
regards
Amanpreet
Richard <[EMAIL PROTECTED]> wrote:
Hi Guys,
I am tasked to create a sort of forum website for our product support.
I hope you guys dont mind if I as
78 matches
Mail list logo