Skip to Content
author's profile photo Former Member
Former Member

How to create new jsp page and open in new link like(About or concact us).Please help me .Please suggest me what step we need.

How to create new jsp page and open in new link like(About or concact us).Please help me .Please suggest me what step we need using Impex and HCM.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2016 at 03:45 PM

    The easiest way is to just create a new ContentPage and set it's label to /contact, then hardcode that link wherever it's needed.

    • If you don't want to hardcode the link, either use a CMSLinkComponent to refer to the ContentPage or get the URL from DefaultContentPageUrlResolver#resolve(ContentPageModel).

    • If you don't want to use CMS components to create the content. Create a new PageTemplate which contains the static content you need. That has the advantage to be extensible with content slots.


    M.G.s answer explains how to do it without CMS functionality.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2016 at 06:39 PM

    The ideal way is to follow spring MVC which Hybris system is build on. So create custom controller, java class annoted as Controller, which calls next JSP to be rendered. Controller class can be created in ee under src folder where other controllers are based on in which area you are creating new page. And .jsp file has to be as per your spring viewResolver tag.

    Follow below link and you can also refer any controller and jsp page how it renders in Hybris.

    https://examples.javacodegeeks.com/enterprise-java/spring/mvc/spring-mvc-view-resolver-example/

    Let me know if that helped.

    Regards

    M.G.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      its spring but i want to do in Hybris.when click on Link where i am passing some value like \userdetails?id='Test'

      i want to display the value of test user in same page or may be next page.i want to use out of box feature. So please let me the step and where i need to create and update the classess or imples.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.