Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6055713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:17:43+00:00 2026-05-23T08:17:43+00:00

my question is about Liferay hooks and portlets 6.0. I have hook with jsps

  • 0

my question is about Liferay hooks and portlets 6.0.

I have hook with jsps overiding liferay portlet ones. e.g. document_library/view.jsp – tested – works fine. (I have custom-jsp-dir set etc )

Now I want to create my portlet in this hook, which at the end renders hook’s document_library/view.jsp.

But I get error:

org.apache.jasper.JasperException: /WEB-INF/html/portlet/document_library/view.jsp(17,1) File "/html/portlet/document_library/init.jsp" not found

I didn’t create init.jsp – I want this hook to use Liferay document_library original one.

Can you help me?

I asked also here http://www.liferay.com/community/forums/-/message_boards/message/9583788

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:17:44+00:00Added an answer on May 23, 2026 at 8:17 am

    Short answer: You can’t.

    Reason: JSPs from a hooks custom-jsp directory will be copied over to the portal – thus they will run in liferay’s classloader. Your portlet however will run in your plugin’s classloader, thus have no access to liferay’s jsps.

    JSPs in hooks (those that are declared as custom-jsps for the portal) cannot be used from portlets in the same plugin. This is by design, you can’t work around this other than through copying them to a path where your portlet can reach them.

    As a best practice, I’d advise to create a hook for modifications to Liferay and a separate portlet plugin with new (additional) portlets. Make the portlets self-contained. There are situations where it’s good to combine hooks and portlets, but I like it best if modifications and additions are kept apart.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to portlets and have a question about how they work in
I have a simple question about installation Liferay 6.1 EE into clustered environment in
Question about GridView sorting in VB.NET: I have a GridView with AutoGenerateColumns = True
simple question about intent action naming convention: I have a new service that handles
Simple question about charset of JSP tags. <%@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8%> <%@taglib
A question about didReceiveMemoryWarning / viewDidUnload . If my app has many view controllers,
A question about symfony form validators. For example I have an url field. If
Quick question about cursors (in particular Oracle cursors). Let's say I have a table
A question about filling an OleDbDataAdapter . I have: Dim cmd As OleDbCommand =
A question about performance. I have a web project with different CSS files at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.