[Logo]
Forums Register Login
How to supply jsp variable to Javascript function
Hi Friends,
I have developed jsp file which contains javascript as below.


One.jsp[/b]




1. Initially i have called the above jsp, So there is no session value. then writeRichText('rte1', '', 380, 100, true, false) called successfully, I got output. Suppose if it will redirect to another page, in that page session is set some value(i have written code to set session scope in another jsp page) then redirect to One.jsp file. At this movement we have session scope value. So obviously if condition is true. But writeRichText('rte1', '<%=str_htmlValue1%>', 380, 100, true, false) is not called.

Please tell me the reason & give solution for this problem.



Thanks inadvance.
Satyaprasad
Poor practice to write Java code in JSPs, everything you are doing you can do it with JSTL tags.

I don't know if it is obvious that second time you have the attribute in the session, have you debug it to check that you actually have it? What's the generated html you get for that piece of page?
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 25, 2017 00:58:08.