[jdom-interest] parsing jsp file

Oleg Timofeyev oleg at olnix.com
Tue Aug 19 20:46:50 PDT 2003

Hey guys I am trying to parse a file that has a mix of html and jsp,
basically here it is:

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL=stylesheet TYPE="text/css" HREF="Style.css">
<BODY marginheight=0 marginwidth=0 topmargin=0 leftmargin=0>
  <TD><tiles:insert attribute="welcome"/></TD>
  <TD><tiles:insert attribute="header"/></TD>
  <TD COLSPAN=2><tiles:insert attribute="menu" /></TD>
  <TD COLSPAN=2><tiles:insert attribute="news" /></TD>
  <TD COLSPAN=2><tiles:insert attribute="footer" /></TD>

I want to extract <tiles:insert attributes. Of course its not
well-formed and quits parsing at first line because of <%@

Any ideas? Or I shouldn't be using JDOM for that at all. Thank you. 



More information about the jdom-interest mailing list