Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : Jsp Custom Tags Signup · Login
Author Thread
Jsp Custom Tags
Posted in tutorial: Building Your first custom JSP Tag
·  thendral_raji
User
Joined: 19 Feb 2007
Total Posts: 2
Jsp Custom Tags
Posted: 19 Feb 2007
How to use scriptlets in custom tags?
I face one problem
<%@ page isELIgnored="true" %>
<%@ taglib uri="WEB-INF/tld/txt.tld" prefix="c" %>
<% String ss = "12345" ;
int s = 5;
%>
<c:Hello name="dfdsfds"/>
<c:Loop iterations="5">
<%=ss%>
</c:Loop>
above one is executed correctly.
if i give like this
<%@ page isELIgnored="true" %>
<%@ taglib uri="WEB-INF/tld/txt.tld" prefix="c" %>
<% String ss = "12345" ;
int s = 5;
%>
<c:Hello name="dfdsfds"/>
<c:Loop iterations="<%=s%>">
<%=ss%>
</c:Loop>
it said "According to TLD or attribute directive in tag file, attribute iterations does not accept any expressions"
how can i use

Rajalakshmi

Users Who Have Visited This Thread In Last 24 Hours
5 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.