RE: href to perform an action

2002-10-30 Thread David Graham
you have to add an input attribute to your action definition that points to 
the jsp that has your form on it.  Struts needs to know where to forward to 
when there are errors.  Validation is done in the ActionForm.validate() 
method.  See the users guide for details.

David






From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: href to perform an action
Date: Wed, 30 Oct 2002 15:25:23 -0800

This is the error I have in the log:

<[WebAppServletContext(852414,vcsc,/vcsc)] action:   No input form, but
validation returned errors>

Where is this validation taking place?

-Original Message-
From: James Mitchell [mailto:jmitchtx@;telocity.com]
Sent: Wednesday, October 30, 2002 2:24 PM
To: Struts Users Mailing List
Subject: RE: href to perform an action


500 is an internal server error.

Can you check your log files and try to find more detail or even a stack
trace?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm 
not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 5:15 PM
> To: 'Struts Users Mailing List'
> Subject: RE: href to perform an action
>
>
> Then why would this not work?  The first line I have in my
> perform method is
> a debug line and this is not showing up.  It's behaving as though
> it can not
> find the action class.  Here is my definition in the config file:
>
> 
>   path="/shipmentTracking"
>   type="com.matson.shipment.web.ShipmentTrackingAction"
>   name="shipmentTrackingForm"
>   scope="session"
>     >
>
> -Original Message-
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Wednesday, October 30, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: href to perform an action
>
>
> Actions do accept GET requests.
>
>
> >From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject: RE: href to perform an action
> >Date: Wed, 30 Oct 2002 12:25:32 -0800
> >
> >I've tried the  tag and I get a 500:
> >
> >10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
> >/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
> >
> >This is the tag I'm using:
> >
> >
> >paramName="container" paramProperty="equipmentNumber">
> >
> >
> >I have debugging lines in my Action class and those are not getting
> >invoked.
> >Does the action class not accept a GET?
> >
> >-Original Message-
> >From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
> >Sent: Wednesday, October 30, 2002 10:17 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: Re: href to perform an action
> >
> >
> >You might want to checkout  tag. Using that tag, you need 
to
> >use
> >attributes page="/vcsc/shipmentTracking.do". You can even pass 
parameters
> >using other attributes like paramProperty,paramId and paramName etc
> >
> >Thanks,Rajani.
> >
> >
> >
> >"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
> >news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > > I have a jsp with a list of shipment data where hrefs are
> defined on the
> > > equipment keys.  I would like the client to click on the link to 
drill
> >down
> > > from the list to a detailed jsp.  If I do the following:
> > >
> > > 
> > >
> > > I get a 404 url not found.  How do I get the link to go to the
> > > shipmentTracking Action?  Do I need to create a form on the
> jsp and use
> >the
> > > onClick javascript to set the action of the form?
> > >
> > > Thanks in advance,
> > >
> > > Cindy
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
> > >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
> ><ma

RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
This is the error I have in the log:

<[WebAppServletContext(852414,vcsc,/vcsc)] action:   No input form, but
validation returned errors> 

Where is this validation taking place?

-Original Message-
From: James Mitchell [mailto:jmitchtx@;telocity.com]
Sent: Wednesday, October 30, 2002 2:24 PM
To: Struts Users Mailing List
Subject: RE: href to perform an action


500 is an internal server error.

Can you check your log files and try to find more detail or even a stack
trace?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 5:15 PM
> To: 'Struts Users Mailing List'
> Subject: RE: href to perform an action
>
>
> Then why would this not work?  The first line I have in my
> perform method is
> a debug line and this is not showing up.  It's behaving as though
> it can not
> find the action class.  Here is my definition in the config file:
>
>path="/shipmentTracking"
>   type="com.matson.shipment.web.ShipmentTrackingAction"
>   name="shipmentTrackingForm"
>   scope="session"
> >
>
> -Original Message-----
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Wednesday, October 30, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: href to perform an action
>
>
> Actions do accept GET requests.
>
>
> >From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject: RE: href to perform an action
> >Date: Wed, 30 Oct 2002 12:25:32 -0800
> >
> >I've tried the  tag and I get a 500:
> >
> >10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
> >/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
> >
> >This is the tag I'm using:
> >
> > >paramName="container" paramProperty="equipmentNumber">
> >
> >
> >I have debugging lines in my Action class and those are not getting
> >invoked.
> >Does the action class not accept a GET?
> >
> >-Original Message-
> >From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
> >Sent: Wednesday, October 30, 2002 10:17 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: Re: href to perform an action
> >
> >
> >You might want to checkout  tag. Using that tag, you need to
> >use
> >attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
> >using other attributes like paramProperty,paramId and paramName etc
> >
> >Thanks,Rajani.
> >
> >
> >
> >"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
> >news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > > I have a jsp with a list of shipment data where hrefs are
> defined on the
> > > equipment keys.  I would like the client to click on the link to drill
> >down
> > > from the list to a detailed jsp.  If I do the following:
> > >
> > > 
> > >
> > > I get a 404 url not found.  How do I get the link to go to the
> > > shipmentTracking Action?  Do I need to create a form on the
> jsp and use
> >the
> > > onClick javascript to set the action of the form?
> > >
> > > Thanks in advance,
> > >
> > > Cindy
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
> > >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
>
>
> _
> Surf the Web without missing calls! Get MSN Broadband.
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>



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

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




RE: href to perform an action

2002-10-30 Thread David Graham
The generated link must look like:

link

If you have that link and it still doesn't work, it's likely to be your 
Action class.  Try substituting your action for the struts ForwardAction and 
see what happens.

David




From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: href to perform an action
Date: Wed, 30 Oct 2002 14:15:06 -0800

Then why would this not work?  The first line I have in my perform method 
is
a debug line and this is not showing up.  It's behaving as though it can 
not
find the action class.  Here is my definition in the config file:


  path="/shipmentTracking"
  type="com.matson.shipment.web.ShipmentTrackingAction"
  name="shipmentTrackingForm"
  scope="session"
>

-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Wednesday, October 30, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: href to perform an action


Actions do accept GET requests.


>From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>Subject: RE: href to perform an action
>Date: Wed, 30 Oct 2002 12:25:32 -0800
>
>I've tried the  tag and I get a 500:
>
>10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
>/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
>
>This is the tag I'm using:
>
>
>paramName="container" paramProperty="equipmentNumber">
>
>
>I have debugging lines in my Action class and those are not getting
>invoked.
>Does the action class not accept a GET?
>
>-Original Message-
>From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
>Sent: Wednesday, October 30, 2002 10:17 AM
>To: '[EMAIL PROTECTED]'
>Subject: Re: href to perform an action
>
>
>You might want to checkout  tag. Using that tag, you need to
>use
>attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
>using other attributes like paramProperty,paramId and paramName etc
>
>Thanks,Rajani.
>
>
>
>"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
>news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > I have a jsp with a list of shipment data where hrefs are defined on 
the
> > equipment keys.  I would like the client to click on the link to drill
>down
> > from the list to a detailed jsp.  If I do the following:
> >
> > 
> >
> > I get a 404 url not found.  How do I get the link to go to the
> > shipmentTracking Action?  Do I need to create a form on the jsp and 
use
>the
> > onClick javascript to set the action of the form?
> >
> > Thanks in advance,
> >
> > Cindy
> >
> > --
> > To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
><mailto:struts-user-help@;jakarta.apache.org>
> >
>
>--
>To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@;jakarta.apache.org>


_
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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

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


_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


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



RE: href to perform an action

2002-10-30 Thread James Mitchell
500 is an internal server error.

Can you check your log files and try to find more detail or even a stack
trace?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 5:15 PM
> To: 'Struts Users Mailing List'
> Subject: RE: href to perform an action
>
>
> Then why would this not work?  The first line I have in my
> perform method is
> a debug line and this is not showing up.  It's behaving as though
> it can not
> find the action class.  Here is my definition in the config file:
>
>path="/shipmentTracking"
>   type="com.matson.shipment.web.ShipmentTrackingAction"
>   name="shipmentTrackingForm"
>   scope="session"
> >
>
> -Original Message-
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Wednesday, October 30, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: href to perform an action
>
>
> Actions do accept GET requests.
>
>
> >From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject: RE: href to perform an action
> >Date: Wed, 30 Oct 2002 12:25:32 -0800
> >
> >I've tried the  tag and I get a 500:
> >
> >10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
> >/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
> >
> >This is the tag I'm using:
> >
> > >paramName="container" paramProperty="equipmentNumber">
> >
> >
> >I have debugging lines in my Action class and those are not getting
> >invoked.
> >Does the action class not accept a GET?
> >
> >-Original Message-
> >From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
> >Sent: Wednesday, October 30, 2002 10:17 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: Re: href to perform an action
> >
> >
> >You might want to checkout  tag. Using that tag, you need to
> >use
> >attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
> >using other attributes like paramProperty,paramId and paramName etc
> >
> >Thanks,Rajani.
> >
> >
> >
> >"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
> >news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > > I have a jsp with a list of shipment data where hrefs are
> defined on the
> > > equipment keys.  I would like the client to click on the link to drill
> >down
> > > from the list to a detailed jsp.  If I do the following:
> > >
> > > 
> > >
> > > I get a 404 url not found.  How do I get the link to go to the
> > > shipmentTracking Action?  Do I need to create a form on the
> jsp and use
> >the
> > > onClick javascript to set the action of the form?
> > >
> > > Thanks in advance,
> > >
> > > Cindy
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
> > >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
>
>
> _
> Surf the Web without missing calls! Get MSN Broadband.
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>



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




RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
Then why would this not work?  The first line I have in my perform method is
a debug line and this is not showing up.  It's behaving as though it can not
find the action class.  Here is my definition in the config file:



-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Wednesday, October 30, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: href to perform an action


Actions do accept GET requests.


>From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>Subject: RE: href to perform an action
>Date: Wed, 30 Oct 2002 12:25:32 -0800
>
>I've tried the  tag and I get a 500:
>
>10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
>/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
>
>This is the tag I'm using:
>
>paramName="container" paramProperty="equipmentNumber">
>
>
>I have debugging lines in my Action class and those are not getting 
>invoked.
>Does the action class not accept a GET?
>
>-Original Message-
>From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
>Sent: Wednesday, October 30, 2002 10:17 AM
>To: '[EMAIL PROTECTED]'
>Subject: Re: href to perform an action
>
>
>You might want to checkout  tag. Using that tag, you need to 
>use
>attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
>using other attributes like paramProperty,paramId and paramName etc
>
>Thanks,Rajani.
>
>
>
>"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
>news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > I have a jsp with a list of shipment data where hrefs are defined on the
> > equipment keys.  I would like the client to click on the link to drill
>down
> > from the list to a detailed jsp.  If I do the following:
> >
> > 
> >
> > I get a 404 url not found.  How do I get the link to go to the
> > shipmentTracking Action?  Do I need to create a form on the jsp and use
>the
> > onClick javascript to set the action of the form?
> >
> > Thanks in advance,
> >
> > Cindy
> >
> > --
> > To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
><mailto:struts-user-help@;jakarta.apache.org>
> >
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@;jakarta.apache.org>


_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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

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




RE: href to perform an action

2002-10-30 Thread David Graham
Actions do accept GET requests.



From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Subject: RE: href to perform an action
Date: Wed, 30 Oct 2002 12:25:32 -0800

I've tried the  tag and I get a 500:

10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53

This is the tag I'm using:


paramName="container" paramProperty="equipmentNumber">


I have debugging lines in my Action class and those are not getting 
invoked.
Does the action class not accept a GET?

-Original Message-
From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
Sent: Wednesday, October 30, 2002 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: Re: href to perform an action


You might want to checkout  tag. Using that tag, you need to 
use
attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
using other attributes like paramProperty,paramId and paramName etc

Thanks,Rajani.



"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> I have a jsp with a list of shipment data where hrefs are defined on the
> equipment keys.  I would like the client to click on the link to drill
down
> from the list to a detailed jsp.  If I do the following:
>
> 
>
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp and use
the
> onClick javascript to set the action of the form?
>
> Thanks in advance,
>
> Cindy
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>

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


_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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



RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
I've tried the  tag and I get a 500:

10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53 

This is the tag I'm using:




I have debugging lines in my Action class and those are not getting invoked.
Does the action class not accept a GET?  

-Original Message-
From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
Sent: Wednesday, October 30, 2002 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: Re: href to perform an action


You might want to checkout  tag. Using that tag, you need to use
attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
using other attributes like paramProperty,paramId and paramName etc

Thanks,Rajani. 



"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> I have a jsp with a list of shipment data where hrefs are defined on the
> equipment keys.  I would like the client to click on the link to drill
down
> from the list to a detailed jsp.  If I do the following:
> 
> 
> 
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp and use
the
> onClick javascript to set the action of the form?
> 
> Thanks in advance,
> 
> Cindy
> 
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
> 

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




RE: href to perform an action

2002-10-30 Thread James Mitchell
No, if #1 is your application name (i.e. you deployed vcsc.war) and #2 is
correctly defined in your struts-config, then all should be fine (btw. case
matters)

 
    
#1#2






James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 12:58 PM
> To: Struts (E-mail)
> Subject: href to perform an action
>
>
> I have a jsp with a list of shipment data where hrefs are defined on the
> equipment keys.  I would like the client to click on the link to
> drill down
> from the list to a detailed jsp.  If I do the following:
>
> 
>
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp
> and use the
> onClick javascript to set the action of the form?
>
> Thanks in advance,
>
> Cindy
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [href to perform an action]

2002-10-30 Thread Josh Berry
Responses below...

Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]> wrote:
> I have a jsp with a list of shipment data where hrefs are defined
> on the equipment keys.  I would like the client to click on the
> link to drill down from the list to a detailed jsp.  If I do the
> following:
>
> 
>
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp
> and use the onClick javascript to set the action of the form?

First, that should technically work, assuming that that is the correct
relative path to the action.  Make sure you have the correct path being
defined.  (As a hint, when you click the link and get a 404, look at what is
in the address bar at that point.  I have found that the webapp base is
usually lost if you do an HREF such as this.)

Second, though, I would recommend using the  tag for things such as
this.  Used in conjunction with global-forwards for your actions, this
relieves you of having to worry about keeping the web-app base, and it also
gives a lot of flexibility with the creation of the queryString.  Examples are
in the users guide, though I would be happy to provide you with some more, if
you need.

-josh


--
To unsubscribe, e-mail:   
For additional commands, e-mail: