Is there any Template engine for jsp? For example, I use Frontpage create A.htm. A.htm ------ <table><tr><td>MYWORD</td></tr></table> And now, I want to write a jsp that could replace "MYWORD" in A.htm. But I don't know how to do. Is there any tool or class could do this? Thanks a lot!!
I think you can modify that page using JSTL like this : <table> <tr> <td> <c: out value="MyOtherWords"/> </td> </tr> </table> Correct me if i am wrong daniel [ April 01, 2003: Message edited by: Fisher Daniel ]
There are lots of template engines out there for JSPs. Just go to Apache Jakarta and have a look at Velocity or Struts. I am not sure how complex your requirements actaully are but I tend to use use Struts Tiles to define page layouts for my web-sites. I find it pretty intuitive to use and there are plenty of examples.
Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com