Re: ServletContext NullPointerException

2005-12-27 Thread Stanislav
Tnx! It works just fine :-) > Hi Stanislav, > Use these lines to avoid the NullPointerException > > import javax.servlet.ServletContext; > import javax.servlet.http.HttpSession; > > >HttpSession ses = request.getSession(); >ServletContext cfg = ses.getServletContext(); > > Ho

Re: ServletContext NullPointerException

2005-12-27 Thread ganesh kannusamy
Hi Stanislav, Use these lines to avoid the NullPointerException import javax.servlet.ServletContext; import javax.servlet.http.HttpSession; HttpSession ses = request.getSession(); ServletContext cfg = ses.getServletContext(); Hope this piece of code helps you, Thanks & Bye,

ServletContext NullPointerException

2005-12-27 Thread Stanislav
I found out what is wrong :-) In non servlet class you need to pass context from servlet class if you want to have context there :-) Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
lto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 3:15 PM To: user@struts.apache.org Subject: Fwd: RE: ServletContext NullPointerException Importance: Low - Message Forwarded on 27/12/05 10:45 - From: "Stanislav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

Re: ServletContext NullPointerException

2005-12-27 Thread Shiva Narayana
Hi All, Need Info about WBI(Websphere Business Integration). Basically I am a struts developer. I have to use WBI tool to get the data from mainframes servers and has to display the data on webpages using struts. Please give me any suggestion or reference materials or guidence. Thanks in advance.

Fwd: RE: ServletContext NullPointerException

2005-12-27 Thread Stanislav
- Message Forwarded on 27/12/05 10:45 - From: "Stanislav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: ServletContext NullPointerException Date: Tue, 27 Dec 2005 10:44:00 +0100 I'm sorry :-(( I didn't see you code comments. I changed my code i

RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 27, 2005 2:33 PM > To: user@struts.apache.org > Subject: ServletContext NullPointerException > Importance: Low > > This is my code: > > import java.text.DecimalFormat; > import java.text.DecimalFormatSymbols;

RE: ServletContext NullPointerException

2005-12-27 Thread Stanislav
uesday, December 27, 2005 2:33 PM > To: user@struts.apache.org > Subject: ServletContext NullPointerException > Importance: Low > > This is my code: > > import java.text.DecimalFormat; > import java.text.DecimalFormatSymbols; > import java.text.NumberFormat; > import

RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
utions.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 2:33 PM To: user@struts.apache.org Subject: ServletContext NullPointerException Importance: Low This is my code: import java.text.DecimalFormat; import java.text.DecimalFormatSymbo

ServletContext NullPointerException

2005-12-27 Thread Stanislav
This is my code: import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.NumberFormat; import java.text.ParseException; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.HashMap; import java.text.DateFormat; import java.util.Date; impo