on 07-07-2016 2:16 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.