On Wed, Sep 25, 2013 at 7:29 AM, Muniasamy Kanthasamy wrote:
> CGI will do that. But Struts/servlet has designed to overcome that.
> It will create one service and serve for all requests
>
Servlets and Struts 1 actions are instantiated "once" (not strictly true,
but in general).
Struts 2 actions
I think Dave is right. in struts 1 action is a singleton but in 2 it gets
created per request. Anyway thank.
*Thanks and Regards,*
Muralidhar Yaragalla.
*
*
On Wed, Sep 25, 2013 at 4:58 PM, Dave Newton wrote:
> Yes. Actions are created per-request.
> On Sep 25, 2013 7:19 AM, "Yaragalla Muralid
Short answer is Yes, for every new request , a new instance will be created
reason for this is simple, your action classes also work as Model in MVC
and in order to take care of thread safety, its better to create a new
instance.
On Wed, Sep 25, 2013 at 4:39 PM, Yaragalla Muralidhar <
yaragallam
Yes. Actions are created per-request.
On Sep 25, 2013 7:19 AM, "Yaragalla Muralidhar"
wrote:
> will action class gets created for every new request even when new request
> is also to the previous actionclass?
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
> *
> *
>
Here is my idea,
CGI will do that. But Struts/servlet has designed to overcome that.
It will create one service and serve for all requests
On Wed, Sep 25, 2013 at 7:09 AM, Yaragalla Muralidhar <
yaragallamur...@gmail.com> wrote:
> will action class gets created for every new request even when n
Thanks for the information Dave
On Mon, Mar 12, 2012 at 1:17 AM, Dave Newton wrote:
> On Sun, Mar 11, 2012 at 6:33 AM, muralidhar uttarkar wrote:
>
> > I want to know why do we need WAR file? Why should we use ANT build
> tool.?
> >
>
> War files are the de facto web application deployment file.
On Sun, Mar 11, 2012 at 6:33 AM, muralidhar uttarkar wrote:
> I want to know why do we need WAR file? Why should we use ANT build tool.?
>
War files are the de facto web application deployment file.
Ant allows repeatable, environment-independent builds (for developers
regardless of their IDE, fo
2012/3/11 muralidhar uttarkar :
> I want to know why do we need WAR file? Why should we use ANT build tool.?
It's up to you and how are you deploying application on production server
Regards
--
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conferenc
It seems there is some problem with my ant build. I am getting that error
only If I generate WAR file with Ant Build tool. and then run that WAR on
server.
Otherwise, if I run the whole project as it is, It is running without any
error.
I want to know why do we need WAR file? Why should we use ANT
Check if class file is in the folder, try to use clean build
file:/E:/murali/my%20office/New%20folder/Eclipse%20Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/abc/WEB-INF/classes/
Regards
--
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Well i would say, tha action implementation (action class) is the
controller, formBean is in one way the interface between view and
controller and model is implementation of some third part (f.e.
hibernate)... Thats my view of the 'story'. If i'm wrong, please
correct me.
Gregor
Arindam Rajbansh
ya, i understand, but action class is a part of controller or model.
and formBean is a part of model or controller.
On Mon, Oct 12, 2009 at 3:59 PM, Terry Gardner wrote:
> Broadly speaking, the Controller is the filter, the Model is the action,
> and the result leads to the View.
>
>
> On Oct 12,
Broadly speaking, the Controller is the filter, the Model is the
action, and the result leads to the View.
On Oct 12, 2009, at 5:58 AM, Arindam Rajbanshi wrote:
i am doing struts 1.2 . Please tell me action is a part of
controller or
model.
and formbean is a part of controller or model. eve
wow, sometimes u really need to switch to another project... play some
games, walk around...jejeje, after ur email and put again the breakpoint
and then I notice that wasn't passing for that area... and of course,
all the error was a mistake on one character on the href for the jquery
submit bu
put a breakpoint in setRelMedpackage, and see if struts is passing a
new instance of RelMedpackage. Also make sure that class has a default
constructor.
On Tue, Aug 18, 2009 at 8:38 AM, Mileidys Gonzalez
Prieto wrote:
> setRelMedpackage
--
"Hey you! Would you help me to carry the stone?" Pink
On 7/5/07, Nhut Thai Le <[EMAIL PROTECTED]> wrote:
Hi,
I have configured my app as follow:
$CATALINA_HOME/conf/server.xml
This tells the servlet container that the Core1 application has a connection
pool ready to be used
Then in the WEB-INF/web.xml i have:
co
I means this
http://www.nabble.com/Re%3A-How-to-creae-Action-class-in-struts2.0.8-p11340666.html
On 6/28/07, MK Tan <[EMAIL PROTECTED]> wrote:
Wasn't you have the answer from this reply
http://www.nabble.com/How-to-creae-Action-class-in-struts2.0.8-tf3993602.html#a11340518
?
On 6/28/07, man
Wasn't you have the answer from this reply
http://www.nabble.com/How-to-creae-Action-class-in-struts2.0.8-tf3993602.html#a11340518?
On 6/28/07, manohar-AB <[EMAIL PROTECTED]> wrote:
I want the code for the Action class and struts.xml in the struts2.0.8
version
--
View this message in context
Narayanan, Shiva wrote:
> How do we design reusable action forms and action classes(possibly a super
> action class and a sub action class) to meet these criteria?
>
You give me another Harley and I'll do your work for you--I miss my old one.
Dave
---
John Andrews wrote:
Is there someway to get the validator to only return directly to the jsp
page only after a submit - not after an initial request? - or is there
some other good way to solve/design around this issue?
I simply turn off auto-validation.
In my Actions I forward to the inpu
like as they could never be specified
in struts-config?
John
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 13 October 2005 05:02
To: Struts Users Mailing List
Subject: RE: action class not being called for repeat initial requests
when using validation
John,
Can
TED]
Sent: 12 October 2005 17:00
To: Struts Users Mailing List
Subject: Re: action class not being called for repeat initial requests
when using validation
John
There are a number of solutions I would suggest looking at JBuilder doc
located at
http://bdn.borland.com/borcon2004/article/paper/0,1963,3
problem since the action class is neccessary
to populate the form's formbean correctly.
John
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 12 October 2005 17:00
To: Struts Users Mailing List
Subject: Re: action class not being called for repeat initial requests
John
There are a number of solutions I would suggest looking at JBuilder doc
located at
http://bdn.borland.com/borcon2004/article/paper/0,1963,32246,00.html
the fastest way is for your button to route to your jsp page is to route to
the page identified by the action mapping in struts-config.xm
http://struts.apache.org/api/org/apache/struts/action/Action.html#execute(org.apache.struts.action.ActionMapping,%20org.apache.struts.action.ActionForm,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)
Basically, take HttpResponse from execute() arguments, write t
Rob
validation would be my first guess but I see you have that set to false
remember that you need to validate the form bean properties as needed and
anything in the request
then it finds the ActionForward
Are you able to access the JSPs defined in 'success' and 'failure'
independently
What do
ous [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 29, 2005 6:52 AM
To: Struts Users Mailing List
Subject: RE: Action class defined in action-mappings not being executed
- without 2mb webapp source
I fixed the dtd to be struts 1.2 as thats the version of my struts.jar
(Struts 1.2.4).
http://stru
d setMessage(String message) {
this.message = message;
}
public String getFoundUsVia() {
return foundUsVia;
}
public void setFoundUsVia(String foundUsVia) {
this.foundUsVia = foundUsVia;
}
}
- Original Message -
From: "David G. Friedman" &
Robbie,
I see you are using Struts v1.1 (your included DTD lists it as such) so are
you using execute() or perform()? What is your Action method's signature?
Regards,
David
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
On Wed, 1 Sep 2004 18:13:08 +0530, Jitesh Sinha <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Is there a way we can make our Action Classes reusable across different
> modules?
> Generally we have one Action class for every module.Maybe,if we put our
> business logic in different business classes (part
> -Original Message-
> From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 5:43 AM
> To: Struts Users Mailing List
> Subject: Action Class Reusable
>
>
> Hi All,
>
> Is there a way we can make our Action Classes reusable across
> different
> modules?
> G
Thanks Leonthat was useful..
I have never used DispatchAction ...need to study it a little.
-Original Message-
From: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 6:51 PM
To: Struts Users Mailing List
Subject: AW: Action Class Reusable
If you want
Thanks Yves...that was valuable input
-Original Message-
From: Yves Sy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 6:42 PM
To: Struts Users Mailing List
Subject: Re: Action Class Reusable
Hi,
Some action classes can be made reusable, such as actions that add
Hi,
Some action classes can be made reusable, such as actions that add
attachments. You have to try to make your code as generic as possible
in these actions and simply define a different path in the forward of
the corresponding ActionMapping.
But these are generally rare cases. Often times, its
Erwin Cabral wrote:
1. Are there any performance issues involved when an
Action class forwards to another?
Any RequestDispatcher.forward() call has roughly the same performance
impact as what the container has to do on any original HTTP request (map
the request to a particular servlet, start tha
Senthivel U S wrote:
Greetings,
Thanks Mr Craig and Mr Niall.
Yes we are having sub application modules and we are having one common
action Class for some action mappings (design based on struts-scaffold -
Refer: Struts In Action).I have to check it whether it is for module or for
application. A
s
slightly different)
Rgds,
Sen
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 10:32 PM
To: Struts Users Mailing List
Subject: Re: Action Class - No of instances
I think it is per Struts module rather than webapp (in Struts 1.1) -
actions are
aig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 06, 2004 6:56 PM
Subject: Re: Action Class - No of instances
> Senthivel U S wrote:
>
> >Greetings,
> >
> >Programming Jakarta Struts by C
Senthivel U S wrote:
Greetings,
Programming Jakarta Struts by Chuck Cavaness book says always there will be
only one instance of Action Class but we have checked with the application
and found that there are more than one instance of same action class even
though the same instance is serving simu
Should be one per classloader...
A user could create one in the code base as well if the wanted to.
sandeep
-Original Message-
From: Senthivel U S [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 1:58 AM
To: 'Struts Users Mailing List'
Subject: Action Class - No of instances
Gr
40 matches
Mail list logo