cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

i want to display static content in jsp.simply i want to create one jsp and display when click on link.

Former Member
0 Kudos

Please make sure to vote for helpful answers and mark them as accepted, when your problems are solved.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

No i want hard code but want to create new jsp that should open new page i dont want hard code URL..

former_member387866
Active Contributor
0 Kudos

Hi Christian and Dileep,

This can be polished off by updating the Navigation Nodes, header and footer, to have the "Contact" page.

Regards,
Luke

Former Member
0 Kudos

Did my updated answer, help you with your problem?