Mask URL in the adress bar!

Discussions

Web tier: servlets, JSP, Web frameworks: Mask URL in the adress bar!

  1. Mask URL in the adress bar! (3 messages)

    Hi All,

    I have have written a web application using servlets/jsp and I have just a little problem: I want to mask the URL in the adress bar-> for example instead to see http://server/index.jsp?login=true i want just to see http://server/index.jsp or http://server/ !
    if someone have some suggestions i'll be gratefull ;)

    Nabil BENMIRA

    Threaded Messages (3)

  2. Mask URL in the adress bar![ Go to top ]

    you can use "<INPUT TYPE="hidden" name="login" value="">".
    there is no other method to do that.
    if you find.tell me.
    thank you.
  3. you can use frames[ Go to top ]

    I personally hate this approach but---
    make this your index something like
     <FRAMESET cols="0,*" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
         <FRAME id="head" src="blank.html">
         <FRAME id="content" src="login.jsp">
         </FRAMESET>
     </FRAMESET>

    The browser will only show the url of the main frameset page, regadless of where the 'content' frame goes
  4. why not use session[ Go to top ]

    I personally hate that approach too, but I haven't other approach.
    like this
     <FRAMESET cols="0,*" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
         <FRAME id="head" src="blank.html">
         <FRAME id="content" src="login.jsp">
         </FRAMESET>
     </FRAMESET>

    why not use session.
    like
    session.setAttribute("login","true");
    <FRAMESET cols="0,*" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
         <FRAME id="head" src="blank.html">
         <FRAME id="content" src="login.jsp">
         </FRAMESET>
     </FRAMESET>

    and in the 'login.jsp'.
    use String login= (String)session.getValue("login");