Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 92742 invoked from network); 17 Mar 2006 20:38:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Mar 2006 20:38:10 -0000 Received: (qmail 49602 invoked by uid 500); 17 Mar 2006 20:38:01 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 49571 invoked by uid 500); 17 Mar 2006 20:38:01 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 49558 invoked by uid 99); 17 Mar 2006 20:38:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 12:38:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [200.55.139.19] (HELO cujae.cujae.edu.cu) (200.55.139.19) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 12:38:00 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by cujae.cujae.edu.cu (Postfix) with ESMTP id 8560B10B65 for ; Fri, 17 Mar 2006 16:37:34 -0400 (AST) Received: from cujae.cujae.edu.cu ([127.0.0.1]) by localhost (cujae.cujae.edu.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27710-02 for ; Fri, 17 Mar 2006 16:37:24 -0400 (AST) Received: from newton.cujae.edu.cu (newton.cujae.edu.cu [10.8.1.69]) by cujae.cujae.edu.cu (Postfix) with ESMTP id 3766410663 for ; Fri, 17 Mar 2006 16:37:24 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by newton.cujae.edu.cu (Postfix) with ESMTP id 97EBC140325 for ; Fri, 17 Mar 2006 16:31:31 -0400 (AST) Received: from newton.cujae.edu.cu ([127.0.0.1]) by localhost (newton.cujae.edu.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30896-05 for ; Fri, 17 Mar 2006 16:31:31 -0400 (AST) Received: from ceis.cujae.edu.cu (ceis.cujae.edu.cu [10.8.176.4]) by newton.cujae.edu.cu (Postfix) with ESMTP id 118FB140323 for ; Fri, 17 Mar 2006 16:31:31 -0400 (AST) Received: from ceis.cujae.edu.cu (localhost [127.0.0.1]) by ceis (Postfix) with SMTP id 85E294B6B6 for ; Fri, 17 Mar 2006 16:37:23 -0400 (AST) Received: from Mordor (unknown [10.8.182.12]) by ceis.cujae.edu.cu (Postfix) with ESMTP id 6A9194B6B2 for ; Fri, 17 Mar 2006 16:37:23 -0400 (AST) Message-ID: <005e01c64a02$98f37580$0cb6080a@Mordor> From: "Yariel Ramos Moreno" To: "Struts" Subject: Fw: Applet and Struts Date: Fri, 17 Mar 2006 16:37:24 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_005B_01C649E1.11DD1A90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.1830 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 X-Virus-Scanned: Debian amavisd-new at newton.cujae.edu.cu X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at cujae.edu.cu X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_005B_01C649E1.11DD1A90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks very much Frank... your answer is very helpful... ----- Original Message -----=20 From: Frank W. Zammetti=20 To: Struts Users Mailing List=20 Cc: Struts=20 Sent: Friday, March 17, 2006 4:22 PM Subject: Re: Applet and Struts Yes you can... it will certainly be more work on your part, but yes. In the end, the "calls" made to Struts Actions are just HTTP GETs or POSTs. = You can fire these yourself from an applet. You can construct a query string and append it to the URL when doing GETs, or you can populate an HTTP request if doing a POST. What you get back may be different than usual though... you could of course render HTML in an applet, but if your using an applet in the = first place my guess is you are interested in getting back data, not a = rendered UI. So, maybe your JSPs that your Actions forward to render XML, set = the content-type appropriately, and your applet parses it and does something with it. Maybe the response is just a flag that tells your applet to display a nother screen. And so on. The basic question though is yes... simply make an HTTP request to the appropriate URL in the Struts-based application, and handle the response as appropriate. No problem :) --=20 Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: fzammetti@hotmail.com Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Fri, March 17, 2006 3:16 pm, Yariel Ramos Moreno said: > Hi everybody: > > Is it possible to use a java applet with struts? If I have menu in the = web > application that is an applet, how can I call a struts action from = this > apple passing the correct parameters to it? > > Thanks very much, > > Yariel. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org ------=_NextPart_000_005B_01C649E1.11DD1A90--