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.
Hi, I have my application hosted in webappcabaret.com. Till yesterday my application was working. suddenly it is not able to track sessions, between servlets. My application: Login panel: If user enters proper userid, a session is created, then Main panel displayed. Main panel is static page consisting of frames. One of the frames has links to my applications. (url is hardcoded in the frames). On selecting my application, my other servlets get invoked. All of them use the sessions created in my Login Page for verification (This i have done so that a user cannot come to Main page with out logging). Now all my applications fail, as no session is passed to them. I was told that urls need to be encoded. But since my URLs are in a static html, how do i do this ? Please help. regards sankar
check out the class java.net.URLEncoder. It has a static method to accomplish encodeing (URLEncoder.encode(String). If there are static you should still be a abel to do it: String theLink = "www.javaranch.com?this=" + URLEncoder.encode("hello world") + "&that=" + URLEncoder.encode("good by world!") best of luck