• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL not displaying

 
zelynn goay
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. i am trying out <jsp aram> and <jsp:include>, but the ${param.subTitle} couldn't be displayed. instead of showing 'welcome', the page display ${param.subTitle}. what did i miss out?

test.jsp


Header.jspf



appreciate any help.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First thing is to change the file type to .jsp rather than .jspf.

The .jspf file type should only be used for files included via the static include directive, not with the JSP include action.
[ September 21, 2005: Message edited by: Bear Bibeault ]
 
zelynn goay
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, bear. i change the file extensions, and it is appearing now. many thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic