• Post Reply Bookmark Topic Watch Topic
  • New Topic

config with JSP

 
Sanjay Jadhav
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<web-app>
<servlet>
<servlet-name>TestingJspServlet</servlet-name>
<jsp-file>/testingJsp.jsp</jsp-file>
<init-param>
<param-name>email</param-name>
<param-value>sanjay_jk@rediffmail.com</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>TestingJspServlet</servlet-name>
<url-pattern>/testingJsp.jsp</url-pattern>
</servlet-mapping>
</web-app>
try to get init parameter in JSP from config implicit object.
Did not work.
<html><body>
Your email address is :<%=config.getInitParameter("email") %>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!