• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Template?

 
Grady Jamyson
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic