vijayakumaar ramasamy

Greenhorn
+ Follow
since Jun 04, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vijayakumaar ramasamy

please use this link:
http://forum.java.sun.com/thread.jsp?thread=514352&forum=136&message=2448594

or
remove the commons-logging.jar from <installed-ri>\Tomcat4.1\common\lib directory
20 years ago
Hi all,
How to disable the "Close ICon" in InternetExplorer(IE)?
Please provide the code if any body having that.

Regards'
Vijay
it returns Null
how should handle that?
Actaullly i need that context object.
how can i get that

vijay
20 years ago
Hi all,
How to disable the "Close ICon" in InternetExplorer(IE)?
Please provide the code if any body having that.

Regards'
Vijay
20 years ago
Hi All,
I have one servlet class which setMessage() method as follows for global count of users accessing a site.here we want to restrict the number of users.so that we used to avoid that.



public void setMessage(String msg){
str = msg;
System.out.println("Testing of servlet in isde setMessage*************"+msg);
ServletContext context =null;
try{
context = getServletContext();
}catch(Exception e){
e.printStackTrace();
}
Integer count = (Integer)context.getAttribute("SessionCount");
if(count != null){
int ct = count.intValue();
ct++;
context.setAttribute("SessionCount",new Integer(ct));
System.out.println("Count starting from exsiting session count now the updated in the applciation scope*************"+ct);
}else{
context.setAttribute("SessionCount",new Integer(1));
System.out.println("Count starting for session user is new so now it is 1");
}

}


java.lang.NullPointerException
at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:204)
at com.panache.pcalife.action.TestServlet.setMessage(TestServlet.java:20)
at com.panache.pcalife.action.AuthenticateAction.execute(AuthenticateAction.java:109)

While accessing from the URL,ServletContext throws Nullpointer........
Please help me to overcome this problem


Regards
Vijay
20 years ago
It is real scenario happening in my project now also.. i am looking for solution
i have one Test.jsp which is running in websphere4.0 and it is going to invoke another two.jsp which is running in
websphere5.0.The one.jsp called two.jsp after that the session getting invalidated due to new session created
after hit the two.jsp in the websphere5.0.
this was identified by tracking the different session id generated from WS4 to WS5 server called.
How can i resolve this?
where should i change server configuration for websphere5.0?
Is this server configuartion is required?
Please provide how to track and reslove this issue?

Regards
Vijay
20 years ago
JSP
It is real scenario happening in my project now also.. i am looking for solution
i have one Test.jsp which is running in websphere4.0 and it is going to invoke another two.jsp which is running in
websphere5.0.The one.jsp called two.jsp after that the session getting invalidated due to new session created
after hit the two.jsp in the websphere5.0.
this was identified by tracking the different session id generated from WS4 to WS5 server called.
How can i resolve this?
where should i change server configuration for websphere5.0?
Is this server configuartion is required?
Please provide how to track and reslove this issue?

Regards
Vijay
20 years ago
I have an webapplication developed by jsp/struts.for that How can the number of simultaneous users be restricted?

Regards
Vijay
20 years ago
I have an webapplication developed by jsp/struts.for that How can the number of simultaneous users be restricted?

Regards
Vijay
20 years ago
JSP