Check the value that is held by the userName value.
I think it could be null after your call to the getHeader Method.
Just a guess :-).
One last piece of advice sometimes it could help you get a faster and
corrrect response to your problem if you posted the entire code.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: Blaney, Colin (CAP, CORP Contractor) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 3:28 AM
Subject: RequestDispatcher: forward call failed
> I am trying to chnge my application from grabbing the logon credentials
from a url (request.getParameter) to grabbing it from a http header
(request.getHeader). All I am switching
> is how a local variable is getting created and is crashes out to the
error.
> String userName = request.getParameter("user");
> to
> String userName = request.getHeader("global_id");
> Any suggestions?
> Colin
>
> Error:
> RequestDispatcher: forward call failed
> StackTrace:
> javax.servlet.ServletException: RequestDispatcher: forward call failed
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at javax.servlet.ServletException.(Compiled Code)
> at
com.netscape.server.http.servlet.NSRequestDispatcher.forward(Compiled Code)
> at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:355)
> at _jsps._cockpit._retry_jsp._jspService(_retry_jsp.java:124)
> at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at
com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets