This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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