struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ethan Michaels <elektroph...@yahoo.com>
Subject Re: <html:link> throws NPE
Date Wed, 29 Jan 2003 04:21:23 GMT

--- "David M. Karr" <dmkarr@earthlink.net> wrote:
> >>>>> "Ethan" == Ethan Michaels
> <elektrophyte@yahoo.com> writes:
> 
>     Ethan> Hi. I'm trying to get a simple link to
> work on a page.
>     Ethan> I use a link tag like this:
> 
>     Ethan> <html:link
> forward="search">Search</html:link>

> 
> Please, always, supply exact error messages and the
> entire exception and stack
> trace when describing a problem.  It's unlikely
> anyone can help you if you
> don't show us what happened.


Here is the exception that appeared. As I said, when I
uuse <html:link action="/search.do">Search</html:link>
 it did not cause the exeption, but when I use the
when I try to use the forward or page attributes, the
exception appears.

Ethan



01/28 20:03:35 error 
java.lang.NullPointerException
	at
org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1441)
	at
org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:456)
	at
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
	at
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
	at
jrun__welcome2ejspc._jspService(jrun__welcome2ejspc.java:69)
	at
jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
	at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
	at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
	at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
	at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
	at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
	at
jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message