Yes. Warmup servlets are just URL for you to hit:

http://code.google.com/appengine/docs/java/config/appconfig.html#Warmup_Requests

<http://code.google.com/appengine/docs/java/config/appconfig.html#Warmup_Requests>That
being said, why would you want to use a JSP as a warmup servlet? The code
will be easier to test/maintain in a servlet itself. Worst case scenario you
can always use JSP dispatch to the JSP.

Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Sun, May 15, 2011 at 11:18 PM, Anders <i...@blabline.com> wrote:

> Is it possible to use a JSP page as a warmup Servlet in Google App Engine
> for Java?
>
> Example:
>
>     <servlet>
>         <servlet-name>search</servlet-name>
>         <jsp-file>/search.jsp</jsp-file>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>
> Sice JSP pages are compiled into Servlets this should work in theory,
> unless JSP pages and ordinary Servlets are treated differently under the
> hood.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to