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
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,
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
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]
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.
- 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
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;
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
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
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
10 matches
Mail list logo