• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp-file tag

 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what could the problem here be?

my web.xml file


my example.jsp file


its printing "null"


ARUL JOSE
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you calling the JSP?
In order to be able to access servlet init params, you will need to create a mapping and call the JSP with the url-pattern in the mapping.

PS: If you make the url-pattern match the name of the JSP, people won't be able to skirt the web.xml configurations by typing the url of the JSP in the browser's address window.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!