# GetSiteMenu without requestContext

**URL:** <https://community.bloomreach.com/t/getsitemenu-without-requestcontext/4535>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [October 22, 2024, 7:39am UTC](https://community.bloomreach.com/t/getsitemenu-without-requestcontext/4535 "2024-10-22T07:39:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doenut](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@Doenut](https://community.bloomreach.com/u/Doenut)\
**Post date:** [October 22, 2024, 7:39am UTC](https://community.bloomreach.com/t/getsitemenu-without-requestcontext/4535/1 "2024-10-22T07:39:33Z")

</div>

Is there a way to get the HstSiteMenu without having a requestContext - I can get the Channel the Mount etc.

---

<div class="post-metadata">

**Author:** ![Rajesh\_Sailada](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/rajesh_sailada/32/1374_2.png) [@Rajesh\_Sailada](https://community.bloomreach.com/u/Rajesh_Sailada)\
**Post date:** [October 22, 2024, 7:47am UTC](https://community.bloomreach.com/t/getsitemenu-without-requestcontext/4535/2 "2024-10-22T07:47:37Z")

</div>

To get the `HstSiteMenu` without having a `HstRequestContext`, you can use the `HstLinkCreator` class. Specifically, you can use the method `HstLinkCreator#create(javax.jcr.Node, org.hippoecm.hst.core.request.HstRequestContext, java.lang.String)` where the last `String` argument is the site alias. This method allows you to create links without directly needing the `HstRequestContext`

---

<div class="post-metadata">

**Author:** ![Doenut](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@Doenut](https://community.bloomreach.com/u/Doenut)\
**Post date:** [October 22, 2024, 8:02am UTC](https://community.bloomreach.com/t/getsitemenu-without-requestcontext/4535/3 "2024-10-22T08:02:40Z")

</div>

Hello Rajesh,

I dont need a HstLink - I need a specific HstSiteMenu. The method you mentioned need RequestContext as well but thanks.

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [October 23, 2024, 6:28am UTC](https://community.bloomreach.com/t/getsitemenu-without-requestcontext/4535/4 "2024-10-23T06:28:53Z")

</div>

to get HstSiteMenu you need to be on the request thread

---

<div class="post-metadata">

**Author:** ![Doenut](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@Doenut](https://community.bloomreach.com/u/Doenut)\
**Post date:** [October 23, 2024, 8:18am UTC](https://community.bloomreach.com/t/getsitemenu-without-requestcontext/4535/5 "2024-10-23T08:18:40Z")

</div>

Thank you!
