Re: html:link throws NPE

2003-02-24 Thread Keishi Yamashita
Hi.

Check struts-config.xml syntax.

If syntax errors exist, it may occur.


Keishi.

Ethan Michaels wrote:
 Hi. I'm trying to get a simple link to work on a page.
 I use a link tag like this:
 
 html:link forward=searchSearch/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.doSearch/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]
 
 



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



Re: html:link throws NPE

2003-01-29 Thread David Graham
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=searchSearch/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.doSearch/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]



Re: html:link throws NPE

2003-01-29 Thread Ethan Michaels
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=searchSearch/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.doSearch/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]




RE: html:link throws NPE

2003-01-28 Thread Nadeemullah Hussain
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:[EMAIL PROTECTED]] 
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=searchSearch/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.doSearch/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]


**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.







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


RE: html:link throws NPE

2003-01-28 Thread Ethan Michaels
Thank you for the suggestion. I did try that, but it's
still throwing an exception. I tried...

html:link page=search.doSearch/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
[EMAIL PROTECTED] 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:[EMAIL PROTECTED]]
 
 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=searchSearch/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.doSearch/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]
 
 
**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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: html:link throws NPE

2003-01-28 Thread Mohan Radhakrishnan
Hi,
We have something like this

  action  path=/search
   type=org.apache.struts.actions.ForwardAction
   name=noDataForm
   validate=false
   scope=request
   parameter=search.jsp
   input=search.jsp 
   /action

   It works.

Mohan
-Original Message-
From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 9:04 AM
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.doSearch/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
[EMAIL PROTECTED] 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:[EMAIL PROTECTED]]
 
 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=searchSearch/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.doSearch/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]
 
 
**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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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




RE: html:link throws NPE

2003-01-28 Thread Michael Cardon
Did you try it with a forward slash like this?

html:link page=/search.doSearch/html:link



-Original Message-
From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
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.doSearch/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
[EMAIL PROTECTED] 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:[EMAIL PROTECTED]]

 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=searchSearch/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.doSearch/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]

 
**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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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




RE: html:link throws NPE

2003-01-28 Thread Ethan Michaels
Thanks for the reply. I tried to set up the action
config element exactly as you suggestion, but it's
still throwing the same exception.

Ethan



--- Mohan Radhakrishnan [EMAIL PROTECTED]
wrote:
 Hi,
 We have something like this
 
   actionpath=/search
  type=org.apache.struts.actions.ForwardAction
  name=noDataForm
  validate=false
  scope=request
  parameter=search.jsp
input=search.jsp 
/action
 
It works.
 
 Mohan
 -Original Message-
 From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 29, 2003 9:04 AM
 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.doSearch/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
 [EMAIL PROTECTED] 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:[EMAIL PROTECTED]]
  
  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=searchSearch/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.doSearch/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]
  
  

**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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 

-
 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]




RE: html:link throws NPE

2003-01-28 Thread Ethan Michaels
Yeah, I gave that a try. Same result. I thought maybe
my Ant build.xml was somehow messing up the
application when it assembled everything and copied
the .war file to JRun, so I openned up the webapp on
the server. But everything appears to be as it should
be in the right place.

Ethan


--- Michael Cardon [EMAIL PROTECTED] wrote:
 Did you try it with a forward slash like this?
 
 html:link page=/search.doSearch/html:link
 
 
 
 -Original Message-
 From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
 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.doSearch/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
 [EMAIL PROTECTED] 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:[EMAIL PROTECTED]]
 
  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=searchSearch/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.doSearch/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]
 
  

**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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 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]




Re: html:link throws NPE

2003-01-28 Thread David M. Karr
 Ethan == Ethan Michaels [EMAIL PROTECTED] 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=searchSearch/html:link

Ethan When I try to load the page using JRun 4, a null
Ethan pointer exception shows up in standard output. The
Ethan method that thows the exception is

Ethan RequestUtils.computeURL()

Ethan In my struts-config.xml file, I have

Ethan action
Ethan path=/search
Ethan type=org.apache.struts.actions.ForwardAction
Ethan parameter=/search.jsp/

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.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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




RE: html:link throws NPE

2003-01-28 Thread Ethan Michaels
I tried forming the link tag like this

html:link action=/search.doSearch/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 [EMAIL PROTECTED] wrote:
 Did you try it with a forward slash like this?
 
 html:link page=/search.doSearch/html:link
 
 
 
 -Original Message-
 From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
 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.doSearch/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
 [EMAIL PROTECTED] 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:[EMAIL PROTECTED]]
 
  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=searchSearch/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.doSearch/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]
 
  

**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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 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]




Re: html:link throws NPE

2003-01-28 Thread Ethan Michaels

--- David M. Karr [EMAIL PROTECTED] wrote:
  Ethan == Ethan Michaels
 [EMAIL PROTECTED] 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=searchSearch/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.doSearch/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]