• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp config init params

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we have :
<servet>
<servlet-name>MyJsp</servlet-name>
<jsp-file>test.jsp</jsp-file>
<init-param>
<param-name>userclass</param-name>
<param-value>teacher</param-value>


</servlet>

<servlet-mapping>
<servlet-name>MyJsp</servlet-name>
<url-pattern>test.jsp</url-pattern>
</servlet-mapping>

Now using which class or implicit variable can we access the init params for the jsp file?
is it config implicit variable? or JspConfig class object?
 
Tripati Sahu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this can be accessible using the config.getInitParameter().

Guys, Please correct me if I am wrong. Bcos I am also still studying
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this FAQ.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic