Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 21389 invoked from network); 17 Dec 2009 14:38:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 14:38:58 -0000 Received: (qmail 30535 invoked by uid 500); 17 Dec 2009 14:38:55 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 30504 invoked by uid 500); 17 Dec 2009 14:38:55 -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 30494 invoked by uid 99); 17 Dec 2009 14:38:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 14:38:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elephantium@gmail.com designates 209.85.219.210 as permitted sender) Received: from [209.85.219.210] (HELO mail-ew0-f210.google.com) (209.85.219.210) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 14:38:47 +0000 Received: by ewy2 with SMTP id 2so2317788ewy.27 for ; Thu, 17 Dec 2009 06:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=3fL8+7WvQmbn6yGF3UPZPc0YBTPixe5itJUXpXZ99H4=; b=vK6B7xaV+bdt9bVuMAyLiHLCmrVbThiCvfY3VjgCqwCVZv6WxcSCaD+E4fbAp4HYLz 7/+/UgKLc8dJdVbB6dZwkVGKAdibIv//udfzTuk8Uszc4pCssr9FnEZ4r9VNjxKiGUoZ ++v5IfGbpb92HyCXb1zuhFbDNJU8oKO231jCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VO3GyEmAt0PCWMFPM1AQfuD3TH606eSfd3tXQevEAtnmJzmaoTSPr1x0YAnh2DXLSZ fBWXzWo/Z0fpW5EeexCR5HmaTeuOH/tkA5KjOMPeX9MxXky6TJd9g/Qk3bjJr2O28Yk1 JCba9qYoLHXyT9H4+4FKZc9TnGqkkXbaeLPRg= MIME-Version: 1.0 Received: by 10.216.87.11 with SMTP id x11mr991533wee.16.1261060706900; Thu, 17 Dec 2009 06:38:26 -0800 (PST) In-Reply-To: <8e3bcb0c0912170633m7b28406cx915b504a2d10df6b@mail.gmail.com> References: <8e3bcb0c0912170211o3c189644k263ec5ec7370c99a@mail.gmail.com> <5e5424000912170235w3b12c5b4je8aaecdc914accb8@mail.gmail.com> <8e3bcb0c0912170633m7b28406cx915b504a2d10df6b@mail.gmail.com> Date: Thu, 17 Dec 2009 08:38:26 -0600 Message-ID: <7d3e1a010912170638vc9fa1c2xc28f8d7504fb170f@mail.gmail.com> Subject: Re: JavaScript / AJAX + Struts 2? From: Brian Thompson To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=0016e6d6453a799b27047aed93e1 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d6453a799b27047aed93e1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bwuh? Just because your fridge doesn't have a built-in toaster, it's worthless? Struts is helpful for stuff you'd want to do on the server side. An easy way to make stuff from the value stack available in javascript is t= o do this in the jsp: Hope that helps, -Brian On Thu, Dec 17, 2009 at 8:33 AM, Jim Collings wrote: > So it's impossible? JavaScript and Struts 2 don't interact at all? > What good is Struts 2 then? > > 2009/12/17 Pawe=C5=82 Wielgus : > > Hi Jim, > > action is on server side and javascript is on browser side, > > they don't interact, You can generate js server side but that's it. > > Js will be run in browser so it has no access to stack or action > variables. > > > > Best greetings, > > Pawe=C5=82 Wielgus. > > > > > > > > 2009/12/17 Jim Collings : > >> So I have two actions and one jsp. The idea is that one is for the > >> entire page and another is for putting into a
via a JavaScript > >> method. > >> > >> Question: How do I get items off of the value stack for use in > JavaScript? > >> > >> > >> Jim C. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> For additional commands, e-mail: user-help@struts.apache.org > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > > For additional commands, e-mail: user-help@struts.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --0016e6d6453a799b27047aed93e1--