• Post Reply Bookmark Topic Watch Topic
  • New Topic

Static includes in Portlet jsp

 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In jsp you can do <%@ inlcude file = "show.html"%>.

I am trying to do same thing with portlets which have jsp.


But i get the following error in log.
Nested Exception is org.apache.jasper.compiler.ParseException: /WEB-INF/jsp/test.jsp(5,4) Invalid directive

I am using Websphere portal 5.1 . Am i missing some thing here. Please help.

Thanks
 
Mahesh Desai
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



There is spelling mistake in include directive, @ line number 4. It should work fine after correcting it.


Thanks,
Mahesh



----------------------
SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress
[ May 08, 2007: Message edited by: Mahesh Desai ]
 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahesh,

Thanks for the reply. I over-looked the minor detail. But when i tried
jsp:inlcude tag
 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahesh,

I mean the


did not work. it did not throw any error, but it did not display the contents. let me know

thanks
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!