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
-
Mask URL in the adress bar! (3 messages)
- Posted by: BENMIRA Nabil
- Posted on: October 27 2003 06:58 EST
Threaded Messages (3)
- Mask URL in the adress bar! by Bruce Lee on October 28 2003 00:31 EST
- you can use frames by Aaron Held on October 28 2003 10:06 EST
- why not use session by Bruce Lee on October 28 2003 08:20 EST
- you can use frames by Aaron Held on October 28 2003 10:06 EST
-
Mask URL in the adress bar![ Go to top ]
- Posted by: Bruce Lee
- Posted on: October 28 2003 00:31 EST
- in response to BENMIRA Nabil
you can use "<INPUT TYPE="hidden" name="login" value="">".
there is no other method to do that.
if you find.tell me.
thank you. -
you can use frames[ Go to top ]
- Posted by: Aaron Held
- Posted on: October 28 2003 10:06 EST
- in response to Bruce Lee
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 -
why not use session[ Go to top ]
- Posted by: Bruce Lee
- Posted on: October 28 2003 20:20 EST
- in response to Aaron Held
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");