The generated link must look like:

<a href="/context/shipmentTracking.do?param1=value1">link</a>

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:

<action
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 <html:link> 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:
>
><html:link href="/vcsc/shipmentTracking.do" paramId="equipmentNumber"
>paramName="container" paramProperty="equipmentNumber">
><bean:write name="container" property="equipmentNumber"/></html:link>
>
>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 <html:link/> 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:
> >
> > <a href="/vcsc/shipmentTracking.do?equipmentNumber="MATU33445">
> >
> > 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>

Reply via email to