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



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

_________________________________________________________________
Get faster connections -- switch to MSN Internet Access! http://resourcecenter.msn.com/access/plans/default.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