Is it possible using .policy files or another mechanism to create different security policies for jsp scripts inside of .jsp files and compiled .java classes?

The idea is to create a simpler deployment path for locked-down .jsp files than for compiled libraries.