You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2004/06/27 04:59:49 UTC

Tag

<%@ taglib uri="/tags/struts-html" prefix="html" %>

in the beginning of my JSP.

This statement that makes an image clickable:
<td nowrap><%if ( previousTopic != 0 ) {%><a
href="viewthread?thread=<%=previousTopic%>"><html:img
page="/article/common/images/left.gif" border="0"
alt="[previous topic]"></a><%}%></td>

gives me an error message:
/article/content/viewpostings.jsp(163,101) According
to TLD, tag html:img must be empty, but is not'

I have checked two things:

1. the JSP works if I replace the <html:img ...> tag
with some text:

<td nowrap><%if ( previousTopic != 0 ) {%><a
href="viewthread?thread=<%=previousTopic%>">[previous
topic]</a><%}%></td>  

2. the image left.gif ( I have checked the spelling
and the extension) is in the
MyApplication/article/common/images directory.

I do not understand the error message.  Please help.



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tag

Posted by Michael McGrady <mi...@michaelmcgrady.com>.
Looks as if the value of the page attribute begins with " and ends with 
'.  That won't work if that is accurate.

At 07:59 PM 6/26/2004, Caroline Jen wrote:
><%@ taglib uri="/tags/struts-html" prefix="html" %>
>
>in the beginning of my JSP.
>
>This statement that makes an image clickable:
><td nowrap><%if ( previousTopic != 0 ) {%><a
>href="viewthread?thread=<%=previousTopic%>"><html:img
>page="/article/common/images/left.gif" border="0"
>alt="[previous topic]"></a><%}%></td>
>
>gives me an error message:
>/article/content/viewpostings.jsp(163,101) According
>to TLD, tag html:img must be empty, but is not'
>
>I have checked two things:
>
>1. the JSP works if I replace the <html:img ...> tag
>with some text:
>
><td nowrap><%if ( previousTopic != 0 ) {%><a
>href="viewthread?thread=<%=previousTopic%>">[previous
>topic]</a><%}%></td>
>
>2. the image left.gif ( I have checked the spelling
>and the extension) is in the
>MyApplication/article/common/images directory.
>
>I do not understand the error message.  Please help.
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>http://promotions.yahoo.com/new_mail
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Never Mind.Re: Tag

Posted by Caroline Jen <ji...@yahoo.com>.
Never mind, I have found the problem.  Thank you.
--- Caroline Jen <ji...@yahoo.com> wrote:
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
> 
> in the beginning of my JSP.
> 
> This statement that makes an image clickable:
> <td nowrap><%if ( previousTopic != 0 ) {%><a
>
href="viewthread?thread=<%=previousTopic%>"><html:img
> page="/article/common/images/left.gif" border="0"
> alt="[previous topic]"></a><%}%></td>
> 
> gives me an error message:
> /article/content/viewpostings.jsp(163,101) According
> to TLD, tag html:img must be empty, but is not'
> 
> I have checked two things:
> 
> 1. the JSP works if I replace the <html:img ...> tag
> with some text:
> 
> <td nowrap><%if ( previousTopic != 0 ) {%><a
>
href="viewthread?thread=<%=previousTopic%>">[previous
> topic]</a><%}%></td>  
> 
> 2. the image left.gif ( I have checked the spelling
> and the extension) is in the
> MyApplication/article/common/images directory.
> 
> I do not understand the error message.  Please help.
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org