Home > Archive > EAserver > March 2005 > Session problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Session problem
fds

2005-03-30, 7:08 pm

I've a session checking page with this simple lines of code
/csession.jsp
<%@ page session="false" %>
<%
String username = (String)session.getAttribute("username");
if (username == null)
{
out.println( "<script type='text/javascript'>alert('Session Failed!Please Login
Again.')</script>" );
}
%>
after which i redirect..


i call this pages in my other pages at the top like
<%@ page autoFlush="true" %>
<%@ page import="org.omg.CORBA.ORB" %>
<%@ page import="org.omg.CosNaming.NamingContext" %>
<%@ page import="org.omg.CosNaming.NamingContextHelper" %>
<%@ page import="org.omg.CosNaming.NameComponent" %>
<%@ page import="packagename.*" %>
<%@include file="/csession.jsp"%>


Now whats happening is that even if i do some changes in the csession.jsp it
does not get reflected in the page.So for example if i change the message
"Session Failed!Please Login Again." to "Session Lost" it still shows the old
message of "Session Failed!Please Login Again.". I restarted the server and
deleted the file and still it doesnt show any change . I add any more alerts to
the page and still nothing ?
What am i doinf wrong ?
EASERRVER 5.0 with PB(
Please reply soon
Thanks

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp
Mark Maslow

2005-03-30, 7:08 pm

You are using a static include. It inserts the file at compile time. If
you make changes to the included file, they will not be reflected in pages
that use it until those pages are recompiled.

If you wish to use dynamic includes (which are somewhat less efficient than
static includes) use <jsp:include>. .


"fds" <fd@> wrote in message news:4237c9fa$1@foru
ms-2-dub...
> I've a session checking page with this simple lines of code
> /csession.jsp
> <%@ page session="false" %>
> <%
> String username = (String)session.getAttribute("username");
> if (username == null)
> {
> out.println( "<script type='text/javascript'>alert('Session Failed!Please
> Login
> Again.')</script>" );
> }
> %>
> after which i redirect..
>
>
> i call this pages in my other pages at the top like
> <%@ page autoFlush="true" %>
> <%@ page import="org.omg.CORBA.ORB" %>
> <%@ page import="org.omg.CosNaming.NamingContext" %>
> <%@ page import="org.omg.CosNaming.NamingContextHelper" %>
> <%@ page import="org.omg.CosNaming.NameComponent" %>
> <%@ page import="packagename.*" %>
> <%@include file="/csession.jsp"%>
>
>
> Now whats happening is that even if i do some changes in the csession.jsp
> it
> does not get reflected in the page.So for example if i change the message
> "Session Failed!Please Login Again." to "Session Lost" it still shows the
> old
> message of "Session Failed!Please Login Again.". I restarted the server
> and
> deleted the file and still it doesnt show any change . I add any more
> alerts to
> the page and still nothing ?
> What am i doinf wrong ?
> EASERRVER 5.0 with PB(
> Please reply soon
> Thanks
>
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp



fds

2005-03-30, 7:08 pm

So how can i ensure taht it is always recompiled ?
Thanks
On 16 Mar 2005 07:24:10 -0800,
in sybase.public.easerver.general
Mark Maslow <mark.maslow@sierraclub.org> wrote:
>You are using a static include. It inserts the file at compile time. If
>you make changes to the included file, they will not be reflected in pages
>that use it until those pages are recompiled.
>
>If you wish to use dynamic includes (which are somewhat less efficient than
>static includes) use <jsp:include>. .
>
>
>"fds" <fd@> wrote in message news:4237c9fa$1@foru
ms-2-dub...
>
>

Dave Wolf

2005-03-30, 7:08 pm

Use <jdp:include> instead.

Dave Wolf
Cynergy Systems
http://www.cynergysystems.com

fds wrote:[color=darkred
]
> So how can i ensure taht it is always recompiled ?
> Thanks
> On 16 Mar 2005 07:24:10 -0800,
> in sybase.public.easerver.general
> Mark Maslow <mark.maslow@sierraclub.org> wrote:
>
Jim Egan

2005-03-30, 7:09 pm

If you clear your work files then they will get recompiled and the updated csession.jsp
will be reflected in the compiled pages.
--
Jim Egan [TeamSybase]
Sybase product enhancement requests:
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

"fds" <fd@> wrote...
> I've a session checking page with this simple lines of code
> /csession.jsp
> <%@ page session="false" %>
> <%
> String username = (String)session.getAttribute("username");
> if (username == null)
> {
> out.println( "<script type='text/javascript'>alert('Session Failed!Please Login
> Again.')</script>" );
> }
> %>
> after which i redirect..
>
>
> i call this pages in my other pages at the top like
> <%@ page autoFlush="true" %>
> <%@ page import="org.omg.CORBA.ORB" %>
> <%@ page import="org.omg.CosNaming.NamingContext" %>
> <%@ page import="org.omg.CosNaming.NamingContextHelper" %>
> <%@ page import="org.omg.CosNaming.NameComponent" %>
> <%@ page import="packagename.*" %>
> <%@include file="/csession.jsp"%>
>
>
> Now whats happening is that even if i do some changes in the csession.jsp it
> does not get reflected in the page.So for example if i change the message
> "Session Failed!Please Login Again." to "Session Lost" it still shows the old
> message of "Session Failed!Please Login Again.". I restarted the server and
> deleted the file and still it doesnt show any change . I add any more alerts to
> the page and still nothing ?
> What am i doinf wrong ?
> EASERRVER 5.0 with PB(
> Please reply soon
> Thanks
>
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp
>

Dave Wolf

2005-03-30, 7:09 pm

Or simply use <jsp:include>

:)

Dave Wolf
Cynergy Systems
http://www.cynergysystems.com

Jim Egan wrote:
> If you clear your work files then they will get recompiled and the updated csession.jsp
> will be reflected in the compiled pages.

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com