Apr 6, 2004 #1 stiby Programmer Apr 6, 2004 2 GB Having got catalina to run embedded within my application I have managed to get servlets working mainly my own and the default servlet. But I can not for the life of me figure out how to get JSP files to work. Any help would be appreciated.
Having got catalina to run embedded within my application I have managed to get servlets working mainly my own and the default servlet. But I can not for the life of me figure out how to get JSP files to work. Any help would be appreciated.
Apr 6, 2004 Thread starter #2 stiby Programmer Apr 6, 2004 2 GB Typical just solved it: needed to add the JSP servlet <servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>fork</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>xpoweredBy</param-name> <param-value>false</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jsp</url-pattern> </servlet-mapping> Upvote 0 Downvote
Typical just solved it: needed to add the JSP servlet <servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>fork</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>xpoweredBy</param-name> <param-value>false</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jsp</url-pattern> </servlet-mapping>