You can use *either* literals or RT expressions to provide an attribute value to a JSP tag. You cannot use both. See JSP.2.13.1 in the JSP 1.2 spec.
So, src="<%=request.getContextPath() + "/images/a.gif"%>" should work, though as other posters have noted this is unnceessary as html:img does this kind of thing for you. Paul > -----Original Message----- > From: ashwini jagtap [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 10, 2004 7:57 AM > To: [EMAIL PROTECTED] > Subject: Scriptlet in html:img > > > > Hi All, > > following ing tag givin me error > > can anyone correct this > > <html:img border="0" vspace="0" hspace="0" align="left" height="146" > > src="<%=request.getContextPath()%>/images/a.gif "/ > > > > > Thanks > > Ashwini > > > > --------------------------------- > Do you Yahoo!? > Express yourself with Y! Messenger! Free. Download now. > ********************************************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]