Re: scope & order of initialization of variabes & includes

2004-03-02 Thread Marc Hughes
Ah.. figured it out... <% bandbg = "ok"; %> is like <% bandbg = new String("ok"); %> I wasn't setting a string, I was creating a new one... doh. Thanks anyways! -Marc Marc Hughes wrote: I have the following situation: Page1.jsp: <% bandbg = "ok"; %> First page: <%= bandbg %>

Re: scope & order of initialization of variabes & includes

2004-03-02 Thread Christopher Schultz
Marc, I thought I should get the output: First page: ok Second page: ok I think this is what's happening. (You can probably verify this by looking at the java source code generated by Tomcat from your JSP): When you do a and declare where the bean lives, the translator essentially converts tha

Re: scope & order of initialization of variabes & includes

2004-03-02 Thread Asim Alp
I think you need to remove Asim On Mar 2, 2004, at 12:09 PM, Marc Hughes wrote: I have the following situation: Page1.jsp: <% bandbg = "ok"; %> First page: <%= bandbg %> Page2.jsp: Second page: <%= bandbg %> Viewing page1.jsp I get the output: First page: ok Second page: I thought I sh

scope & order of initialization of variabes & includes

2004-03-02 Thread Marc Hughes
I have the following situation: Page1.jsp: <% bandbg = "ok"; %> First page: <%= bandbg %> Page2.jsp: Second page: <%= bandbg %> Viewing page1.jsp I get the output: First page: ok Second page: I thought I should get the output: First page: ok Second page: ok I've tried with application & se