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:59:51 UTC

Réf. : Re: Réf. : Re: imge submit tagerror

Patrice,
I've tried your suggestion and it works well !

I didn't know is was possible to nest image tag inside link tag.

thank you very much.

Meissa




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

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

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


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:   <
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: Réf. : Re: imge submit tag error

Posted by Patrice <pp...@nerim.net>.
oops, I made a mistake... that was a <img> tag instead of a <image> tag !

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

So, it is strange that it works with an image tag: I think it is not working
with all web browsers.

Sorry
Patrice

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


>
> Patrice,
> I've tried your suggestion and it works well !
>
> I didn't know is was possible to nest image tag inside link tag.
>
> thank you very much.
>
> Meissa
>
>
>
>
> "Patrice" <pp...@nerim.net> on 22/11/2002 15:37:46
>
> Veuillez répondre à "Struts Users Mailing List"
>        <st...@jakarta.apache.org>
>
> Pour : "Struts Users Mailing List" <st...@jakarta.apache.org>
> cc :
> Objet :     Re: Réf. : Re: imge submit tag error
>
>
> 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:   <
> 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>