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:11:43 GMT
I tried forming the link tag like this

<html:link action="/search.do">Search</html>

Now, unlike before, the JSP will render without
throwing an exception and causing a 500 error to
appear in the browser.

However, when I click on the link, I still get 

"HTTP method GET is not supported by this URL"

(I'm still wondering why the previous ways of forming
the link tag were causing errors, since they
correspond to what's given in the docs.)

Ethan


--- Michael Cardon <mic@bendcable.com> wrote:
> Did you try it with a forward slash like this?
> 
> <html:link page="/search.do">Search</html:link>
> 
> 
> 
> -----Original Message-----
> From: Ethan Michaels [mailto:elektrophyte@yahoo.com]
> Sent: Tuesday, January 28, 2003 7:34 PM
> To: Struts Users Mailing List
> Subject: RE: <html:link> throws NPE
> 
> 
> Thank you for the suggestion. I did try that, but
> it's
> still throwing an exception. I tried...
> 
> <html:link page="search.do">Search</html:link>
> 
> Now the method RequestUtils.pageURL is added to the
> exception message.
> 
> I forgot to mention in my original post that in my
> struts-config, I've also defined a global forward
> for
> this action...
> 
> <forward
>     name="search"
>     path="/search.do"/>
> 
> 
> Thanks,
> 
> Ethan
> 
> 
> 
> 
> --- Nadeemullah Hussain
> <nadeemullah.hussain@wipro.com> wrote:
> > Hi,
> > 	Use the link tag as I have mentioned below
> instead
> > of the one u have used.
> >
> > <html:link page="/search.do?>Search</html:link>
> >
> > Thanks,
> > Nadeem,
> > Wipro Technologies,Chennai
> > Tel - 91-44-4500200 X : 2111
> > Mobile : 98401 47663
> >
> >
> > -----Original Message-----
> > From: Ethan Michaels
> [mailto:elektrophyte@yahoo.com]
> >
> > Sent: Wednesday, January 29, 2003 8:18 AM
> > To: Struts Users Mailing List
> > Subject: <html:link> throws NPE
> >
> >
> > 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:
> > struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
> > >
>
**************************Disclaimer****************************************
> **********
> >
> >
> >  Information contained in this E-MAIL being
> > proprietary to Wipro Limited is 'privileged'
> > and 'confidential' and intended for use only by
> the
> > individual or entity to which it is
> > addressed. You are notified that any use, copying
> or
> > dissemination of the information
> > contained in the E-MAIL in any manner whatsoever
> is
> > strictly prohibited.
> >
> >
>
****************************************************************************
> ************
> >
> >
> >
> >
> 
> 
> __________________________________________________
> 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
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________________________
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