SoftTeam Ranson Maxime wrote:
> Hello,
>
> I have the following problem when I try to pass <%=something%> on a call
> of a javascript function
>
> example :
>
> I have :
> session.putValue("something","value1");
> session.putValue("somethingElse","value2");
>
> <body onload
> ="Send('<%=session.getValue("something")%>',<%=session.getValue("somethingElse")%>)"
> >
>
> Where "Send" is a JavaScript function.
>
> The problem is that when the browser translate it, it gives :
>
> <body onload="Lancer('value1
> ',value2
> )">
If you look at the code generated, it gives out.println( ... ) - which is what <%= is
short for. You will have to use <% out.print( session.getValue( "something" ) ); %>
--
Richard Vowles, Senior Systems Engineer,
Inprise New Zealand
MAIL: [EMAIL PROTECTED], [EMAIL PROTECTED]
HTTP: http://www.esperanto.org.nz
[my messages contain my own opinions, not those of my employer]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".