You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cindy Horn at SF x4874 <CH...@matson.com> on 2002/10/30 18:58:13 UTC

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:

<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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: href to perform an action

Posted by James Mitchell <jm...@telocity.com>.
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)

 <a href="/vcsc/shipmentTracking.do?equipmentNumber="MATU33445">
           ^^^^ ^^^^^^^^^^^^^^^^
            #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:
>
> <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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>