i have a shopping cart struts application, when update button of a jsp is
clicked, some action is performed and after the successful excution of that
action, a servlet which takes certain parameters should be called from the
action class.
The servlets which i am talking about are non-struts
-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 10:37 AM
To: Struts Users Mailing List
Subject: can a non struts application be called from inside stuts
application.
i have a shopping cart struts application, when update
To: Struts Users Mailing List
Subject: RE: can a non struts application be called from inside stuts
application.
-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 10:37 AM
To: Struts Users Mailing List
Subject: can a non struts
Well, you can't call a servlet from an Action with a Java method call
but you can easily forward the request to the servlet from the action. I
suggest creating a local or global forward element for the servlet.
action path=/MyAction
type=com.foo.MyAction
forward name=LegacyServlet
-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 10:53 AM
To: Struts Users Mailing List
Subject: RE: can a non struts application be called from inside stuts
application.
Servlets are accessed by URLs, action classes
, 2004 2:01 PM
To: Struts Users Mailing List
Subject: RE: can a non struts application be called from inside stuts
application.
-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 10:53 AM
To: Struts Users Mailing List
Subject: RE: can
-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 11:03 AM
To: Struts Users Mailing List
Subject: RE: can a non struts application be called from inside stuts
application.
O.k thats great, but i have make a 3 different servlet
: Thursday, August 26, 2004 2:13 PM
To: Struts Users Mailing List
Subject: RE: can a non struts application be called from inside stuts
application.
-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 11:03 AM
To: Struts Users Mailing List
Mailing List'
Subject: RE: can a non struts application be called from inside stuts
application.
How about using HTTP Client package like this:
public static String getUrlResponse(String url) {
String result = null;
HttpClient client = new HttpClient();
// Create a method
have never used httpClient Package, so can you point me to the
correct resource..
-Original Message-
From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 2:17 PM
To: 'Struts Users Mailing List'
Subject: RE: can a non struts application be called from inside stuts
The old servlets takes lots of parameters, how and where can i pass those
parameters in struts config...
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Thursday, August 26, 2004 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: can a non struts application
Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Thursday, August 26, 2004 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: can a non struts application be called from inside stuts
application.
Well, you can't call a servlet from an Action with a Java method call
but you can
12 matches
Mail list logo