You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dmitrii CRETU <dc...@fromru.com> on 2004/12/27 09:55:47 UTC
Re[2]: accessing Actionform properties from javascript
try this
=====================================================================
function doCancel(p_btn) {
var v_url = "";
<c:choose><c:when test="${not empty xxxForm.someJavaField}">
v_url = '<html-el:rewrite action="/an/actoin?operation=view"/>';
...
=====================================================================
Dima.
Rj> Hi,
Rj> Let me give more details.
Rj> The actionForm is used through many pages. The page where the
Rj> javascript is implemented does not contain the actionform property, that I would
Rj> like to check before triggering an action.
Rj> This property is dynamically evaluated in an action.
Rj> That is why I would like to access actionform properties in a
Rj> javascript function, mainly those not represented as element in the HTML;
Rj> Thanks for your reply.
Rj> ---------------------------------
Rj> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Rj> Créez votre Yahoo! Mail
--
Best regards,
Dmitrii mailto:dcretu@fromru.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org