The example is as follows:
<% @ page import = "java.util. *, java.text. *"%> <% @ page contenttype = "text / html; charSet = GB2312"%> <% @ 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 "%> <% @ Taglib URI =" / Web-inf / struts-nested.tld "prefix =" NESTED "%> <% @ Taglib URI =" / Web-INF / Struts-template.tld "prefix =" template "%> <% @ Taglib URI =" / Web-inf / struts-tiles.tld "prefix =" tiles "%> <% HashMap Animals = new hashmap (); Animals. PUT (New Integer (1)); Animals.Put (New Integer (2), "Dog"); Animals.Put (New Integer (3), "Horse"); Animals.put (New Integer (NEWEGER 4), "Rabbit"); Animals.Put (New Integer (5), "Goldfish"); Request.SetaTribute ("Animals", Animals);%>
body> html>