java - Programmatically invoke the JSP parser -


i invoke jsp parser programmatically. means want able, in java, 'run' jsp page , output, without sending client (i want save output file). don't want 'forward' request jsp page. want able on several jsp pages in row.

what best way of doing this?

i have found question, balusc doesn't answer question directly.

in case wondering, need because want 'precompile' jsps using on other platforms java servlet container.

edit

what need not .class file, html output. indeed, static once generated have custom jsp tags , want leverage jsp parser expand them.

i'm not sure understand point of this.

jsps parsed , precompiled .class files. they're java servlets @ point. need servlet engine execute them.

if intent capture generated http response "precompiled" response, suggest there's no dynamic content , response same every time send particular request. if that's case, you've got static html.

if i'm correct, seem poor way generate such thing.

if wish precompile jsps .class files, problem different java ee app servers use different jsp precompilation engines. can't precompile jsps using tomcat , use them on weblogic.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -