You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by K Nataraj <kn...@prodapt.com> on 2002/11/06 06:47:36 UTC

Problem setting the template

Hello,
     i have a problem setting the template for a particular screen. Iam
using HTML Frames .
In one frameset i have navigation and in the second one i have a directory
tree structure and in the third one i have the actual screen.

 Since i have used session i need to validate on each user action as whether
his session is still alive or not. If alive i proceed with the action
requested else i need to redisplay the Login screen. Now what happens is
that on submitting the screen(3rd frameset) session is validated and if
session is expired then Login screen is appearing but in the third frameset.
Is it possible for me to replace the entire page by the Login screen???? I
want to Login screen to be displayed in the entire page rather than in
frameset. Note  : My Login.vm file is not a part of frames.

Thanks
nataraj



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem setting the template

Posted by Daniel Dekany <dd...@freemail.hu>.
Wednesday, November 6, 2002, 6:47:36 AM, K Nataraj wrote:

[snip]
> Now what happens is that on submitting the screen(3rd frameset)
> session is validated and if session is expired then Login screen is
> appearing but in the third frameset. Is it possible for me to
> replace the entire page by the Login screen???? I want to Login
> screen to be displayed in the entire page rather than in frameset.
> Note : My Login.vm file is not a part of frames.
[snip]

Not a Velocity question, but I guess you should print something like
this into the third frame:

...
<p>Login expired. Redirecting to login page...
<script>window.top.location='theURLOfLogin.vm';</script>
<p><i>Click <a href="theURLOfLogin.vm" target="_top">here</a> if
nothing happens.</i>
...


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>