Steve, you should use forward="page2". You could use page="page2.do" if
you're using a ".do" suffix. The message is saying that you need forward,
href or page for a link. You have action and probably don't have forward,
href or page attributes specified in your tag.
action is not a parameter of the link tag (see the Struts 1.1
struts-html.tld file).
action is however specified in the struts-html.tld file in Struts 1.2.5
and it works, because I've used it. The benefit (or the thought behind
this) vs. JSTL is that you don't have to have your URL references littered
in your code. You can change what the forward (or action) will do inside
your struts-config.xml file.
Brian
"Hill, Richard" <Rich.Hill@xxxxxxxxxx> wrote on 12/08/2004 08:47:23 AM:
> Try changing the action parameter value to action="page2.do". I've
> seen this be the culprit in the
> action attribute for html:form. Additionally, I would suggest using
> the JSTL url tag instead of the
> struts link tag.
>
> -----Original Message-----
> From: steve.gutter@xxxxxxxxxx [mailto:steve.gutter@xxxxxxxxxx]
> Sent: Tuesday, December 07, 2004 7:47 AM
> To: users@xxxxxxxxxx
> Subject: [cinjug-users] Problem with html:link action= in WSAD 5.1
>
>
>
>
>
> I'm getting an error message in WSAD 5.1 with Struts 1.1.
> When I try to set up an html:link with the parameter action="page2",
> I receive the message (in Design mode) of
> "Exactly one of the forward, page or href attributes has to be
specified."
> The link works fine, and its OK per the Struts doc to use the action
> attribute without forward/page/href.
> Is there some setting I need to change?
>
>
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
>
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
>
>
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
>
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
>
|