Hi! 2 Questions:
First Question:
<%
ArrayList werkeList= SimpleQuery.getAemWerkUnique();
pageContext.setAttribute("werkeList", werkeList);
%>
Datensaetze anzeigen
I've got this working code. Now I don't want to import the
>
> Struts
>
> NewsgroupTo: [EMAIL PROTECTED]
>
>
Struts
NewsgroupTo: [EMAIL PROTECTED]
Subject: Re: Hi Folks, 2 questions about
Actions and their
Subject: Re: Hi Folks, 2 questions about Actions and their instance
From: Vic Cekvenich <[EMAIL PROTECTED]>
===
Imeditely calling is not good enough. You must use a JDBC driver
specific call that returns the last "affected rows" ID.
This gives you the new PK.
Vic
[EMAIL
[EMAIL PROTECTED] writes:
> > I don't know, but it doesn't matter. You should always assume that
> > any specific instance of an Action class could potentially serve multiple
> > threads at once. Or else what's the point of putting your app on the
> > web? ;-)
>
> Reason I brought this up is
<[EMAIL PROTECTED]>
cc:
04/01/02 Subject: Re: Hi Folks, 2 questio
[EMAIL PROTECTED] wrote:
> 1. I then assume that "perform()" is synchronized
No it's not, and that's why it needs to be thread-safe. You may have two
different threads executing the perform() method simultaneously.
> 2. What about those cases where 2 different action mappings resort
[EMAIL PROTECTED] writes:
[...]
> So here's my 2 question(s):
>
> 1. I then assume that "perform()" is synchronized
No. If all data objects are local to the perform method, there's no
reason for it to be synchronized. If the data objects referred to in
perform are shared, then their access
In a book I have it says:
"It is also important to note that the Action class must be designed in a
thread-safe manner. This is because there's only a single instance of an
Action class per action element in the action-mapping configuration file."
So here's my 2 question(s):
1. I then assu
9 matches
Mail list logo