File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Static includes in Portlet jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Static includes in Portlet jsp" Watch "Static includes in Portlet jsp" New topic
Author

Static includes in Portlet jsp

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
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

Joined: Apr 04, 2007
Posts: 76



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

Joined: Feb 11, 2003
Posts: 192
Mahesh,

Thanks for the reply. I over-looked the minor detail. But when i tried
jsp:inlcude tag
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Mahesh,

I mean the


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

thanks
 
 
subject: Static includes in Portlet jsp
 
Threads others viewed
Scripting Invalid
Component are not getting repainted - Trinidad PPR
Scripting elements in JspFragment
applet loading problem
Websphere Portal NullPointerException
Two Laptop Bag

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture