You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by me...@bpam.fr on 2002/11/22 15:29:02 UTC

Réf. : Re: imge submit tag error

If I specify only src, which attribute do I use to tell the action to
perform ?






"Patrice" <pp...@nerim.net> on 22/11/2002 15:17:19

Veuillez répondre à "Struts Users Mailing List"
       <st...@jakarta.apache.org>

Pour : "Struts Users Mailing List" <st...@jakarta.apache.org>
cc :
Objet :     Re: imge submit tag error


You must specify only src or only page, but not both.

Best regards
Patrice

----- Original Message -----
From: <me...@bpam.fr>
To: <st...@jakarta.apache.org>
Sent: Friday, November 22, 2002 3:00 PM
Subject: imge submit tag error


> hi all,
>
> I've a problem when I try to use the image tag.
>
> I do use it like this
>
> <html:image src="images/icADMdelete.gif" page="<%=editUrl%>" alt=
> "Supprimer" border="0"/>
>
> The following ServletException is raised
>
> javax.servlet.ServletException: You must specify exactly one of src,
> srcKey, page, or pageKey
>
> And I don't have any exception when I remove the page attribute.
>
> It seems like I'm using it wrongly.
>
> can someone tells me what I've missed.
>
> thanks
>
> Meissa
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Réf. : Re: imge submit tag error

Posted by Patrice <pp...@nerim.net>.
The <html:image> render an input tag of type "image". The action that will
be performed is those defined in the <html:form action="...">.
If you want to call dirrectly an action, without sumit a form, I suggest you
to use a simple link:

<html:link page="<%=editUrl%>">
  <html:image src="images/icADMdelete.gif" page="<%=editUrl%>" alt=
"Supprimer" border="0"/>
</html:link>

Best Regards
Patrice

----- Original Message -----
From: <me...@bpam.fr>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, November 22, 2002 3:29 PM
Subject: Réf. : Re: imge submit tag error


>
> If I specify only src, which attribute do I use to tell the action to
> perform ?
>
>
>
>
>
>
> "Patrice" <pp...@nerim.net> on 22/11/2002 15:17:19
>
> Veuillez répondre à "Struts Users Mailing List"
>        <st...@jakarta.apache.org>
>
> Pour : "Struts Users Mailing List" <st...@jakarta.apache.org>
> cc :
> Objet :     Re: imge submit tag error
>
>
> You must specify only src or only page, but not both.
>
> Best regards
> Patrice
>
> ----- Original Message -----
> From: <me...@bpam.fr>
> To: <st...@jakarta.apache.org>
> Sent: Friday, November 22, 2002 3:00 PM
> Subject: imge submit tag error
>
>
> > hi all,
> >
> > I've a problem when I try to use the image tag.
> >
> > I do use it like this
> >
> > <html:image src="images/icADMdelete.gif" page="<%=editUrl%>" alt=
> > "Supprimer" border="0"/>
> >
> > The following ServletException is raised
> >
> > javax.servlet.ServletException: You must specify exactly one of src,
> > srcKey, page, or pageKey
> >
> > And I don't have any exception when I remove the page attribute.
> >
> > It seems like I'm using it wrongly.
> >
> > can someone tells me what I've missed.
> >
> > thanks
> >
> > Meissa
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@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:
<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>