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;
-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
/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
: 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
- 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
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
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
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
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,
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
10 matches
Mail list logo