• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rtexprvalue for JSP tag files

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<%-- WEB-INF/tags/simple.tag --%>
<%@ attribute name="city" %>
<%@ tag pageEncoding="utf-8"%>
This is ${city}.


<%-- output.jsp --%>
<%@ taglib prefix="ayo" tagdir="/WEB-INF/tags" %>
<% request.setAttribute("city", "Sparta");%>
<html>
<body>
<ayo:simple city="${city}"/>
</body>
</html>


If rtexprvalue value for tagfile is false by default.
Then why output.jsp code works fine.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think for tag files rtexprvalue is true if you don`t specify
 
Milan Sutaria
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, even I did not know. Just read the specs, its true for tag files and false for custom tags.
Older Post
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic