This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSP and the fly likes Problem for getServletConfig in JRun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem for getServletConfig in JRun" Watch "Problem for getServletConfig in JRun" New topic

Problem for getServletConfig in JRun

Donald Fung

Joined: Oct 27, 2004
Posts: 18

My company has bought JRUN4.0 and migrate some JSP from tomcat to it. However, I get problem when run the web.
I hope someone can help me.
I had some values (context parameter) in the web.xml and want to get them from the JSP. However, the JSP can't get the value.
The Jrun shows that can't find the method and the system can't retrieve the value of SESSION_N with return null. I can get the value in tomcat but not JRun. What's the problem?


<%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.util.*,java.text.*,*, profile.userObject.*"%>
String session_n = getServletConfig().getInitParameter("SESSION_N");
UsrLoginObject usrInfo = (UsrLoginObject)session.getAttribute(session_n);

In web.xml,
[ February 01, 2005: Message edited by: Donald Fung ]
I agree. Here's the link:
subject: Problem for getServletConfig in JRun
It's not a secret anymore!