I need to have a string var declared in default.jsp page and the string var has to be accessible in the other jsp pages. Using the "public" modifier doesn't seem to work. //var declaration in default.jsp <% public String X=""; X += "<begin>"; %> //accessing in test1.jsp <% X += "test"; %> //accessing in test2.jsp <% X += "<end>"; %> Thanks.
Roy, you are corect. It doesnot make it available to other JSP pages. It has to be added as an attribute to the session and have the other pages access the variable from the session. it can also be added to the request object and then forward that to the other pages.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley