1

Is there at a mechanism (preferably compile-time) in JSP to specify required parameters for the JSP accessible by EL, or are the available objects always unknown?

There are cases where I want to specify that the JSP expects at least certain named parameters with certain types.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Atorian
  • 777
  • 10
  • 26

1 Answers1

1

You can look into Tag Files, where the attribute page directive may suit your needs. This directive allows you to specify the name, type, whether the attribute is required, etc.

Community
  • 1
  • 1
Aaron Gotreaux
  • 273
  • 2
  • 4
  • 10