Discussion:
convert a JSP with tag libraries into a plain servlet using JspC class
Sunitha Thummala
2014-03-21 13:28:51 UTC
Permalink
Hello everyone,

I have a requirement where I need to convert a JSP with tag libraries into
a plain servlet. I know the JspC class in Tomcat does conversion of a plain
JSP into a servlet.

Im trying to figure out how to convert the JSP WITH tag libs into a servlet
as well.

Any help appreciated.

Thank you for your time!

Sunitha
Stuart Thiel
2014-03-21 14:04:17 UTC
Permalink
It's done just the same. You can even pull the Java out of tomcat when
using it... you just won't like the results. Lots of reflection last
time I checked.

To be clear, JSPs run as plain servlets.

On Fri, Mar 21, 2014 at 9:28 AM, Sunitha Thummala
Post by Sunitha Thummala
Hello everyone,
I have a requirement where I need to convert a JSP with tag libraries into
a plain servlet. I know the JspC class in Tomcat does conversion of a plain
JSP into a servlet.
Im trying to figure out how to convert the JSP WITH tag libs into a servlet
as well.
Any help appreciated.
Thank you for your time!
Sunitha
--
Stuart Thiel, P. Eng.
Sunitha Thummala
2014-03-21 21:23:52 UTC
Permalink
Thanks Stuart and Christopher for your reply.

I turned the log level to verbose and found out that the web.xml file was
not available and so the parsing was not completing. After fixing this
issue, I am able to convert the JSP with tag libs into a servlet.

Sunitha
Post by Stuart Thiel
It's done just the same. You can even pull the Java out of tomcat when
using it... you just won't like the results. Lots of reflection last
time I checked.
To be clear, JSPs run as plain servlets.
On Fri, Mar 21, 2014 at 9:28 AM, Sunitha Thummala
Post by Sunitha Thummala
Hello everyone,
I have a requirement where I need to convert a JSP with tag libraries
into
Post by Sunitha Thummala
a plain servlet. I know the JspC class in Tomcat does conversion of a
plain
Post by Sunitha Thummala
JSP into a servlet.
Im trying to figure out how to convert the JSP WITH tag libs into a
servlet
Post by Sunitha Thummala
as well.
Any help appreciated.
Thank you for your time!
Sunitha
--
Stuart Thiel, P. Eng.
---------------------------------------------------------------------
--
Thanks,
Sunitha
Loading...