将JSP渲染为字符串 [英] rendering JSP to a string
本文介绍了将JSP渲染为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将jsp文件呈现为字符串的方法是什么?是否可以不使用spring/struts/etc之类的框架?.
What is the way to render jsp file to a string? Is it possible without using frameworks like spring/struts/etc?..
推荐答案
使用 MockRunner .例如,这使您可以在测试用例中运行JSP.
Use MockRunner. This allows you to run JSPs in test cases, for example.
这篇关于将JSP渲染为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文