java - JSP Struts to Velocity Struts conversion -
I am asking one of my students - "Do anyone have an idea how JSP Straits For beginners, you do not have to do this once
/ strong>. Important - You only need to convert pages because you have time to test or you will get some results. Personally, I usually do not have this You just need to map VelocityView servlet (in web.xml):
Define - & gt; & lt; servlet & gt; & lt; servlet-name & gt; velocity & lt; / servlet-name & gt; & lt; servlet category & gt; Org.apache.velocity.tools. View.servlet.VelocityViewServlet & lt; / servlet-class & gt; & lt; init-param & gt; & lt; param-name & gt; org.apache.velocity.toolbox & lt; / param-name & gt; & Lt; param-pricing & gt; /WEB-INF/toolbox.xml< / Super-valued & gt; & Lt; / Init-param & gt; & Lt; Init-param & gt; & Lt; Ultimate Name & gt; Org.apache.velocity.properties & lt; / Lastname & gt; & Lt; Ultimate Price & gt; /WEB-INF/velocity.properties< / Super-valued & gt; & Lt; / Init-param & gt; & Lt; / Servlet & gt; & Lt ;! - Map * .vm files velocity - & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; Velocity & lt; / Servlet-name & gt; & Lt; URL pattern & gt; * V.M. & Lt; / Url pattern & gt; & Lt; / Servlet-mapping & gt;
You will also need to create the toolbox.xml file, and by putting any tool you can speed Properties , which is not very different from other examples of this file.
For observation and overview and how to configure the Valcee servlet, see.
Comments
Post a Comment