Yeah, I know. I forgot to mention in my original post
that I had done so.

Thanks,

Ethan


--- David Graham <[EMAIL PROTECTED]> wrote:
> You need to define a forward named "search".
> 
> David
> 
> 
> 
> 
> 
> 
> >From: Ethan Michaels <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> >Subject: <html:link> throws NPE
> >Date: Tue, 28 Jan 2003 18:47:38 -0800 (PST)
> >
> >Hi. I'm trying to get a simple link to work on a
> page.
> >I use a link tag like this:
> >
> ><html:link forward="search">Search</html:link>
> >
> >When I try to load the page using JRun 4, a null
> >pointer exception shows up in standard output. The
> >method that thows the exception is
> >
> >RequestUtils.computeURL()
> >
> >In my struts-config.xml file, I have
> >
> ><action
> >     path="/search"
> >     type="org.apache.struts.actions.ForwardAction"
> >     parameter="/search.jsp"/>
> >
> >The exception message seems to be saying, I guess,
> >that it's having trouble figuring out the URL to
> use.
> >I've tried including an <html:base/> tag at the top
> of
> >the page, and defining the <action> differently,
> for
> >example...
> >
> ><action
> >     path="/search.do"
> >     type="org.apache.struts.actions.ForwardAction"
> >     parameter="/search.jsp"/>
> >
> ><action
> >     path="search"
> >     type="org.apache.struts.actions.ForwardAction"
> >     parameter="/search.jsp"/>
> >
> ><action
> >     path="/search"
> >     type="org.apache.struts.actions.ForwardAction"
> >     parameter="/newsarchive/search.jsp"/>
> >
> >Nothing seems to work. I've tried abandonning the
> link
> >tag altogether and just explicitly providing the
> link,
> >like so:
> >
> ><a href="/newsarchive/search.do">Search</a>
> >
> >But then I get an error saying that a GET request
> is
> >not supported by this URL.
> >
> >I would be grateful for any help with this.
> >
> >Thanks,
> >
> >Ethan
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> >http://mailplus.yahoo.com
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
_________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months
> FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to