Struts already appends the context path.

<html:img src="./images/cal.gif"
onClick="popUpCalendar(this, ParameterEditForm.endDate,
'dd-mmm-yyyy',46,735)" />

...should be enough

-Yves-

-----Original Message-----
From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 17, 2003 4:33 PM
To: Struts Users Mailing List
Subject: html:img is not getting recognised.

Dear friends,

I am substituting the normal HTML image tag 
                <img src="<%=contextPath%>/images/cal.gif"
onClick="popUpCalendar(this, ParameterEditForm.endDate,
'dd-mmm-yyyy',46,735)" >
with the shown below but is not getting recognised, can somebody guide
me
out how to use it, I am new to struts.
                <html:img src="<%=contextPath%>/images/cal.gif"
onClick="popUpCalendar(this, ParameterEditForm.endDate,
'dd-mmm-yyyy',46,735)" />

Regards,
Amit Kumar Sharma
SysArris Software Pvt Ltd
120A, Elephant Rock Road,
3rd Block, Jayanagar, 
Bangalore - 560011
Tel.: 91-80-665 4965 / 665 5052
[EMAIL PROTECTED]
  
 





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to