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;

RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
-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.DecimalFormatSymbols; import

RE: ServletContext NullPointerException

2005-12-27 Thread Stanislav
/services.asp i-flex solutions limited - Bangalore Phone : (080) 5759-6873 Email : Rakesh.Bhat@ iflexsolutions.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 2:33 PM To: user@struts.apache.org Subject: ServletContext

RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
: ServletContext NullPointerException Importance: Low 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

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 still get nullpointerexp in the line

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

RE: RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
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] Subject: RE: ServletContext

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: 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,

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(); Hope this