Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Initialisation/Initialization

 
Graham Mead
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hope this is in the right forum. I am having problems getting initalisation parameters for a JSP. I have used WSAD to set up an initial isation parameter for my JSP Jsp1.jsp, it has created an entry in the web.xml file
<servlet>
<servlet-name>Jsp1</servlet-name<
<display-name<Jsp1</display-name<
<jsp-file</Jsp1.jsp</jsp-file<
<init-param<
<param-name<myInitial</param-name<
<param-value<Y</param-value<
</init-param<
</servlet<
However using config.getInitParameter("myInitial")in the JSP always returns null.
Has anyone else had these problem and sorted it out.
TIA Graham
 
Graham Mead
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ooops that should read, problem still there tho!
<servlet>
<servlet-name>Jsp1</servlet-name>
<display-name>Jsp1</display-name>
<jsp-file>/Jsp1.jsp</jsp-file>
<init-param>
<param-name>myInitial</param-name>
<param-value>Y</param-value>
</init-param>
</servlet>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic