You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Raghu.Ramakrishnan" <Ra...@target.com> on 2003/09/30 19:19:05 UTC
Retrieving value of java script variable in a Scriplet
Hi,
Does any one know how I could retrive a Java script variable between a
scriplet code????
Eg:
for (var i = 0; i<= (listSize-1); i++)
{
var pay = '<%= orgAmcStmt %>';
alert ("The current Index is Before the Scriplet is:" +
pay);
<%
if (list.size()!= 0)
{
// I would like to get the Value of i
here ....
}
%>
}
I would like to get the value of i withing the scriplet....
Raghu
-----Original Message-----
From: Matthias Fraass [mailto:matthias.fraass@tricoder.net]
Sent: Tuesday, September 30, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: html:errors indexed?
Hi,
I've got a JSP page with some elements which are drawn by iterating
through a collection. Each of these elements can be validated
individually. The problem is that html:errors doesn't handle the
"indexed" tag as the other controls (e.g. html:text) do.
How can I show specific error messages for the controls?
Do I have to expand ErrorsTag =)?
I hope my description is sufficient - otherwise I can provide some
example code but I think it's quite a straightforward problem.
Regards,
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Retrieving value of java script variable in a Scriplet
Posted by Mike Jasnowski <mj...@bea.com>.
The two are evaluated at different times, one on the server, and one on the
client
-----Original Message-----
From: Raghu.Ramakrishnan [mailto:Raghu.Ramakrishnan@target.com]
Sent: Tuesday, September 30, 2003 1:19 PM
To: Struts Users Mailing List
Subject: Retrieving value of java script variable in a Scriplet
Hi,
Does any one know how I could retrive a Java script variable between a
scriplet code????
Eg:
for (var i = 0; i<= (listSize-1); i++)
{
var pay = '<%= orgAmcStmt %>';
alert ("The current Index is Before the Scriplet is:" +
pay);
<%
if (list.size()!= 0)
{
// I would like to get the Value of i
here ....
}
%>
}
I would like to get the value of i withing the scriplet....
Raghu
-----Original Message-----
From: Matthias Fraass [mailto:matthias.fraass@tricoder.net]
Sent: Tuesday, September 30, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: html:errors indexed?
Hi,
I've got a JSP page with some elements which are drawn by iterating
through a collection. Each of these elements can be validated
individually. The problem is that html:errors doesn't handle the
"indexed" tag as the other controls (e.g. html:text) do.
How can I show specific error messages for the controls?
Do I have to expand ErrorsTag =)?
I hope my description is sufficient - otherwise I can provide some
example code but I think it's quite a straightforward problem.
Regards,
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org