[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: RE : how to send the 'index' to javascript function
From: subramaniam.o () tcs ! com
Date: 2004-05-28 16:59:33
Message-ID: OF936BA2D9.8556393F-ON65256EA2.005C1C7A-65256EA2.005C3062 () tcs ! com
[Download RAW message or body]
--=_alternative 005C300C65256EA2_Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="ISO-8859-1"
Hi,
Thanks David. It Works
Subramaniam
"David Gagnon" <dgagnon@accovia.com>
05/28/2004 06:08 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>
To
"'Struts Users Mailing List'" <user@struts.apache.org>
cc
Subject
RE : how to send the 'index' to javascript function
Hi
If I remembrer correctly
1) Use: <html:text property="foo" value='<%= "I love sparrows!!!" %>' />
2) For the original example do it this way:
<html:text name="book" property="title" indexed="true"
onblur='<%="doThis(" + index.intValue() +
")" %>'/>
When using <%= %> you need to put
everything in it.
Hope it help .. hope I'm right :-)
Ciao
/David
-----Message d'origine-----
De : Mark Lowe [mailto:mark.lowe@boxstuff.com]
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to javascript function
I've just done the following in a struts html:text tag
<html:text property="foo" value="<%= "I love sparrows!!!" %>" />
This is using the 1.1 release version of struts.. On TC5 and with el
enabled on the page to boot.
The page rendered as I predicted.
Perhaps just a freak accident, and as I said before I wouldn't like to
go up against such a confident statement, but I fear I'm right.
On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:
> Hey Mark,
> I am sure you r wrong.
> If u check the struts-html.tld for 'text' u find -
> <attribute>
> <name>onblur</name>
> <required>false</required>
> <rtexprvalue>true</rtexprvalue>
> </attribute>
>
> This means we can specify the onblur value as a run time expression.
>
> Regards,
> Janarthan S
>
> -----Original Message-----
> From: Mark Lowe [mailto:mark.lowe@boxstuff.com]
> Sent: Friday, May 28, 2004 3:07 PM
> To: Struts Users Mailing List
> Subject: Re: how to send the 'index' to javascript function
>
>
>> Scirptlets will not work within a html struts tag. If you want to use
>> scriplets use a normal html tag instead.
>
> Thats the first I ever heard that.. Thanks for the tip Brati.
>
> So you're saying that
>
> <html:text property="foo" value="<%= "I love sparrows" %>" />
>
> wouldn't render (assuming the form and with the property foo is
> configured)
> to
> <input type="text" name="foo" value="I love sparrows">
>
> Despite my gratitude for your insights into this, may I be as bold as
> to ask "Are you absolutely sure?" ,because I'd say perhaps with less
> degree of certainty than your unambiguous statement communicates, that
> "scriptlets work in html struts tags" which I'd hesitate in putting
> forward in the face of such conviction.
>
>
> On 28 May 2004, at 11:25, brati.sankarghosh@tcs.com wrote:
>
>>
>> Scirptlets will not work within a html struts tag. If you want to use
>> scriplets use a normal html tag instead.
>>
>> Brati Sankar Ghosh
>> Tata Consultancy Services
>> Mailto: brati.sankarghosh@tcs.com
>> Website: http://www.tcs.com
>>
>>
>>
>>
>> Mark Lowe <mark.lowe@boxstuff.com>
>>
>> 05/28/2004 02:47 PM
>>
>>
>> Please respond to
>> "Struts Users Mailing List" <user@struts.apache.org>
>>
>>
>>
>> To
>> "Struts Users Mailing List" <user@struts.apache.org>
>>
>> cc
>>
>> Subject
>> Re: how to send the 'index' to javascript function
>>
>>
>>
>>
>>
>>
>>
>> What happens if you try this in your page?
>>
>> <%= "JSP Works!!!" %>
>>
>>
>> On 28 May 2004, at 11:05, subramaniam.o@tcs.com wrote:
>>
>>>
>>> Hi Janarthanan,
>>>
>>> I tried that, Im getting '<%= index.intValue()%>' in
>> doThis()
>>> and not the value.
>>>
>>> Regards
>>> Subramaniam
>>>
>>>
>>>
>>>
>>>
>>> "Janarthan Sathiamurthy" <janarthan.s@mphasis.com>
>>>
>>> 05/28/2004 02:12 PM
>>>
>>>
>>> Please respond to
>>> "Struts Users Mailing List" <user@struts.apache.org>
>>>
>>>
>>>
>>> To
>>> "Struts Users Mailing List" <user@struts.apache.org>
>>>
>>> cc
>>>
>>> Subject
>>> RE: how to send the 'index' to javascript function
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> try this -
>>> <html:text name="book" property="title" indexed="true"
>>> onblur="doThis('<%= index.intValue() %>')"/>
>>>
>>> Regards,
>>> Janarthan S
>>>
>>> -----Original Message-----
>>> From: subramaniam.o@tcs.com [mailto:subramaniam.o@tcs.com]
>>> Sent: Friday, May 28, 2004 9:55 AM
>>> To: Struts Users Mailing List
>>> Subject: how to send the 'index' to javascript function
>>>
>>>
>>>
>>> Hi,
>>> This is my jsp.
>>> <logic:iterate name="books" id="book" indexId="index">
>>> <html:text name="book" property="title"
>> indexed="true"
>>> onblur="doThis()"/>
>>> </logic:iterate>
>>>
>>> how to send the 'index' as input to 'doThis()' [javascript
>>> Function]
>>>
>>> Thanks
>>> Subramaniam
>>>
>>>
>>>
>>> ForwardSourceID:NT0000D4D2
>>>
>> <InterScan_Disclaimer.txt>--------------------------------------------
>> -
>>> ------------------------
>>> 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
>>
>>
>> ForwardSourceID:NT0000A1F6
>> <InterScan_Disclaimer.txt>--------------------------------------------
>> -
>> ------------------------
>> 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
>
>
---------------------------------------------------------------------
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
ForwardSourceID:NT0000D566
--=_alternative 005C300C65256EA2_Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="ISO-8859-1"
<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif"> Thanks
David. It Works</font>
<br><font size=2 face="sans-serif"><br>
Subramaniam<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"David Gagnon"
<dgagnon@accovia.com></b> </font>
<p><font size=1 face="sans-serif">05/28/2004 06:08 PM</font>
<br>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
"Struts Users Mailing List" <user@struts.apache.org></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">"'Struts Users Mailing
List'" <user@struts.apache.org></font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE : how to send the 'index'
to javascript function</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi <br>
<br>
If I remembrer correctly<br>
<br>
1) Use: <html:text property="foo" value='<%= "I love
sparrows!!!" %>' /> <br>
2) For the original example do it this way:<br>
<html:text name="book" property="title" indexed="true"
<br>
onblur='<%="doThis("
+ index.intValue() + ")" %>'/><br>
When
using <%= %> you need to put everything in it.<br>
<br>
Hope it help .. hope I'm right :-)<br>
<br>
Ciao<br>
/David<br>
<br>
<br>
<br>
-----Message d'origine-----<br>
De : Mark Lowe [mailto:mark.lowe@boxstuff.com] <br>
Envoyé : May 28, 2004 05:54<br>
À : Struts Users Mailing List<br>
Objet : Re: how to send the 'index' to javascript function<br>
<br>
I've just done the following in a struts html:text tag<br>
<br>
<html:text property="foo" value="<%= "I love
sparrows!!!" %>" /><br>
<br>
This is using the 1.1 release version of struts.. On TC5 and with el <br>
enabled on the page to boot.<br>
<br>
The page rendered as I predicted.<br>
<br>
Perhaps just a freak accident, and as I said before I wouldn't like to
<br>
go up against such a confident statement, but I fear I'm right.<br>
<br>
On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:<br>
<br>
> Hey Mark,<br>
> I am sure you r wrong.<br>
> If u check the struts-html.tld for 'text' u find -<br>
> <attribute><br>
> <name>onblur</name><br>
> <required>false</required><br>
> <rtexprvalue>true</rtexprvalue><br>
> </attribute><br>
><br>
> This means we can specify the onblur value as a run time expression.<br>
><br>
> Regards,<br>
> Janarthan S<br>
><br>
> -----Original Message-----<br>
> From: Mark Lowe [mailto:mark.lowe@boxstuff.com]<br>
> Sent: Friday, May 28, 2004 3:07 PM<br>
> To: Struts Users Mailing List<br>
> Subject: Re: how to send the 'index' to javascript function<br>
><br>
><br>
>> Scirptlets will not work within a html struts tag. If you want
to use<br>
>> scriplets use a normal html tag instead.<br>
><br>
> Thats the first I ever heard that.. Thanks for the tip Brati.<br>
><br>
> So you're saying that<br>
><br>
> <html:text property="foo" value="<%= "I
love sparrows" %>" /><br>
><br>
> wouldn't render (assuming the form and with the property foo is<br>
> configured)<br>
> to<br>
> <input type="text" name="foo" value="I
love sparrows"><br>
><br>
> Despite my gratitude for your insights into this, may I be as bold
as<br>
> to ask "Are you absolutely sure?" ,because I'd say perhaps
with less<br>
> degree of certainty than your unambiguous statement communicates,
that<br>
> "scriptlets work in html struts tags" which I'd hesitate
in putting<br>
> forward in the face of such conviction.<br>
><br>
><br>
> On 28 May 2004, at 11:25, brati.sankarghosh@tcs.com wrote:<br>
><br>
>><br>
>> Scirptlets will not work within a html struts tag. If you want
to use<br>
>> scriplets use a normal html tag instead.<br>
>><br>
>> Brati Sankar Ghosh<br>
>> Tata Consultancy Services<br>
>> Mailto: brati.sankarghosh@tcs.com<br>
>> Website: http://www.tcs.com<br>
>><br>
>><br>
>><br>
>><br>
>> Mark Lowe <mark.lowe@boxstuff.com><br>
>><br>
>> 05/28/2004 02:47 PM<br>
>><br>
>><br>
>> Please respond to<br>
>> "Struts Users Mailing List" <user@struts.apache.org><br>
>><br>
>><br>
>><br>
>> To<br>
>> "Struts Users Mailing List" <user@struts.apache.org><br>
>><br>
>> cc<br>
>><br>
>> Subject<br>
>> Re: how to send the 'index' to javascript function<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> What happens if you try this in your page?<br>
>><br>
>> <%= "JSP Works!!!" %><br>
>><br>
>><br>
>> On 28 May 2004, at 11:05, subramaniam.o@tcs.com wrote:<br>
>><br>
>>><br>
>>> Hi Janarthanan,<br>
>>><br>
>>> I tried that, Im getting '<%=
index.intValue()%>' in<br>
>> doThis() <br>
>>> and not the value.<br>
>>><br>
>>> Regards<br>
>>> Subramaniam<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> "Janarthan Sathiamurthy" <janarthan.s@mphasis.com><br>
>>><br>
>>> 05/28/2004 02:12 PM<br>
>>><br>
>>><br>
>>> Please respond to<br>
>>> "Struts Users Mailing List" <user@struts.apache.org><br>
>>><br>
>>><br>
>>><br>
>>> To<br>
>>> "Struts Users Mailing List" <user@struts.apache.org><br>
>>><br>
>>> cc<br>
>>><br>
>>> Subject<br>
>>> RE: how to send the 'index' to javascript function<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> try this -<br>
>>> <html:text name="book" property="title"
indexed="true" <br>
>>> onblur="doThis('<%= index.intValue() %>')"/><br>
>>><br>
>>> Regards,<br>
>>> Janarthan S<br>
>>><br>
>>> -----Original Message-----<br>
>>> From: subramaniam.o@tcs.com [mailto:subramaniam.o@tcs.com]<br>
>>> Sent: Friday, May 28, 2004 9:55 AM<br>
>>> To: Struts Users Mailing List<br>
>>> Subject: how to send the 'index' to javascript function<br>
>>><br>
>>><br>
>>><br>
>>> Hi,<br>
>>> This is my jsp.<br>
>>> <logic:iterate name="books"
id="book" indexId="index"><br>
>>> <html:text
name="book" property="title"<br>
>> indexed="true" <br>
>>> onblur="doThis()"/><br>
>>> </logic:iterate><br>
>>> <br>
>>> how to send the 'index' as
input to 'doThis()' [javascript <br>
>>> Function]<br>
>>><br>
>>> Thanks<br>
>>> Subramaniam<br>
>>><br>
>>><br>
>>><br>
>>> ForwardSourceID:NT0000D4D2 <br>
>>><br>
>> <InterScan_Disclaimer.txt>--------------------------------------------
<br>
>> -<br>
>>> ------------------------<br>
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org<br>
>>> For additional commands, e-mail: user-help@struts.apache.org<br>
>><br>
>><br>
>> ---------------------------------------------------------------------<br>
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org<br>
>> For additional commands, e-mail: user-help@struts.apache.org<br>
>><br>
>><br>
>> ForwardSourceID:NT0000A1F6 <br>
>> <InterScan_Disclaimer.txt>--------------------------------------------
<br>
>> -<br>
>> ------------------------<br>
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org<br>
>> For additional commands, e-mail: user-help@struts.apache.org<br>
><br>
><br>
> ---------------------------------------------------------------------<br>
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org<br>
> For additional commands, e-mail: user-help@struts.apache.org<br>
><br>
><br>
> ---------------------------------------------------------------------<br>
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org<br>
> For additional commands, e-mail: user-help@struts.apache.org<br>
><br>
><br>
<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org<br>
For additional commands, e-mail: user-help@struts.apache.org<br>
<br>
<br>
<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org<br>
For additional commands, e-mail: user-help@struts.apache.org<br>
<br>
</tt></font>
<br><font size=2 color=white face="sans-serif">ForwardSourceID:NT0000D566
</font>
<br>
--=_alternative 005C300C65256EA2_=--
["InterScan_Disclaimer.txt" (InterScan_Disclaimer.txt)]
DISCLAIMER: The information contained in this message is intended only and solely for \
the addressed individual or entity indicated in this message and for the exclusive \
use of the said addressed individual or entity indicated in this message (or \
responsible for delivery of the message to such person) and may contain legally \
privileged and confidential information belonging to Tata Consultancy Services. It \
must not be printed, read, copied, disclosed, forwarded, distributed or used (in \
whatsoever manner) by any person other than the addressee. Unauthorized use, \
disclosure or copying is strictly prohibited and may constitute unlawful act and can \
possibly attract legal action, civil and/or criminal. The contents of this message \
need not necessarily reflect or endorse the views of Tata Consultancy Services on any \
subject matter. Any action taken or omitted to be taken based on this message is \
entirely at your risk and neither the originator of this message nor Tata Consultancy \
Services takes any responsibility or liability towards the same. Opinions, \
conclusions and any other information contained in this message that do not relate to \
the official business of Tata Consultancy Services shall be understood as neither \
given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy \
Services. If you have received this message in error, you should destroy this message \
and may please notify the sender by e-mail. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic