Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jspInit()

 
yogen joshi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tells which portion of the jsp page gets included in the jspInit() after translation.
yogen
 
Panagiotis Varlagas
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yogen,
If you want jspInit() to do anything meaningful, you have to override it in a JSP declaration in your JSP.
Hope this helps,
Panagiotis.
 
Mike J. Beaty
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jspInit() method initializes the instance variables that have been declared in the JSP page using the declaration <%! ... %> tags.
 
Arvindu Dhanaraj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jspInit()<%! ... %>
In this
if we have any constant values in our pages
we can use it
for eg:
<%!
static final double PI =3.14;
%>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic