That's interesting because WebSphere 2.02 doesn't do that with the following
example:
> setImg(top.search.results.document, '<%= requestData.getColValue(1,
> "ref_id") %>', '<%= requestData.getColValue(1, "status").substring(0,1)
> %>');
>
> yields...
>
> setImg(top.search.results.document, 'LOG0000001', 'P');
>
The code generated looks like...
out.print(ServletUtil.toString( requestData.getColValue(1, "ref_id") ));
not out.println(...)
So why the difference? Is this determined by the implementation, or is my
example different because I'm not going after "session", but a bean?
Dan
> ----------
> From: Richard Vowles[SMTP:[EMAIL PROTECTED]]
> Reply To: Richard Vowles
> Sent: Thursday, July 29, 1999 12:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Javascript and %>
>
> 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("something
> Else")%>)"
> > >
> >
> > 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".
>
===========================================================================
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".