jsp in load on startup

what change i need to make the below code to work on any application server.

What i need to replace for "org.apache.jsp.index_jsp"

<servlet>

<servlet-name>org.apache.jsp.index_jsp</servlet-name>

<servlet-class>

<load-on-startup>2</load-on-startup>

org.apache.jsp.index_jsp</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>org.apache.jsp.index_jsp</servlet-name>

<url-pattern>/index.jsp</url-pattern>

</servlet-mapping>

[543 byte] By [raghuveer_vellankia] at [2007-11-27 10:35:39]
# 1

Each server will have its own JSP implementing class, so the answer is, you would have to replace the name org.apache.jsp.index_jsp with whatever class the implementing server has for compiled JSPs.

Incidentally, if you require your JSP to be loaded at startup, it suggests you are doing too much in your JSPs. They should be display only, with no business logic or data storage, and so no need to be loaded at the start of an application. Perhaps you should move the work in your JSP that requires it to start early into a servlet that does that work instead, and stores the results in the application scope.

stevejlukea at 2007-7-28 18:36:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...