Skip to main content

JSP tag reuse: how to disable

2 replies [Last post]
mbazs123
Offline
Joined: 2007-05-14

Hi!

I am learning JSP and I see that custom tags with same attributes are "cached" so the same handler instance is used.

Can this feature be disabled somehow or is there a standard JSP way to stop reusing these tag handlers.

Thx
MB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Wolfram Rittmeyer

If you want to disable it for just one webapp, you have to set the
property "enablePooling" to false in the file sun-web.xml:



If you want to disable it for all webapps, you could also modify the
enablePolling-value of the JspServlet in the file
$GF_HOME/domains/domain1/config/default-web.xml.

--
Wolfram Rittmeyer

glassfish@javadesktop.org wrote:
> Hi!
>
> I am learning JSP and I see that custom tags with same attributes are "cached" so the same handler instance is used.
>
> Can this feature be disabled somehow or is there a standard JSP way to stop reusing these tag handlers.
>
> Thx
> MB
> [Message sent by forum member 'mbazs123' (mbazs123)]
>
> http://forums.java.net/jive/thread.jspa?messageID=277324
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

shayden
Offline
Joined: 2009-08-03

I find this solution works for jsp pages. However, when we pre-compile our jsp pages for production deployment, we are unable disable pooling.

Does anyone have advice for how to handle this during pre-compile in Glassfish.