views:

102

answers:

2

Hi, I'm tried using tiles but it seems that it's not parsing the Struts tags, It outputs them directly e.g. instead of ... What seems to be the problem?

A: 

I've seen evaluation-order things with netsed tags in jsp's - you're likely to run into problems with things like

 <t:x name="<c:out ...

Can you post code and output? (I'm guessing you're code got parsed out because you didn't use the nice binary-logo button)

Steve B.
A: 

You need to include the taglib library header in each JSP file, regardless of whether it's a tile or not:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

etc...

Without this the tags will not be parsed.

Pool