gamerson / liferay-jsp-spy

Apache License 2.0
13 stars 5 forks source link

Liferay JSP Spy

What is it?

Have you ever seen some html content in a Liferay page and wondered what JSP rendered that content? You can use JSP Spy to find out. If you have heard enough, just to the How to use it section.

For those that are interested, this repo contains:

How to use it?

In order to use this the following 3 things are needed

Give me the exact steps to play around with this

  1. Clone this Git repository
  2. Install blade and yarn if you don't have them already.
  3. Make sure you are using Java 1.8.x, you can check by running java -version.
  4. Run blade server init
  5. Run blade server run
  6. Run blade deploy
  7. Run cd modules/jsp-spy-extension
  8. Run yarn install
  9. Run yarn dev chrome
  10. If you are using Chrome, go to chrome://extensions
  11. Enable developer mode (right hand side)
  12. Select "load unpacked" and browse to modules/jsp-spy-extension/dist/chrome folder
  13. Open portal page, then open Chrome Devtools Cmd+Option+I
  14. Use element selection to select a DOM element on the page
  15. On Elements Sidebar click the JSP Spy pane.

Screenshots

Markup injected in HTML



JSP Spy Elements Sidebar