# Building website in JSP format facing some issues

**URL:** <https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [July 20, 2018, 11:32am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190 "2018-07-20T11:32:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [July 20, 2018, 11:32am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/1 "2018-07-20T11:32:57Z")

</div>

hi friends i am developing website in Hippo for the first time by using JSP format and i am facing some issues can anybody have material or link on how to develop website in jsp please give me…

And i am developing website by taking HTMLs and converting them into JSP and making contents dynamic .

while making contents dynamic i am using jsp loops and conditions as follows

\<c:choose\>  
\<c:when test="{not empty document}" \> \<h1\>\<c:out value="{document.title}" /\>

  
\<hst:html hippohtml="${document.content}" /\>  

  
\</c:when\>  
\<c:otherwise\>  

# Goodbye? cruel world
  
\</c:otherwise\>  
\</c:choose\>

Here \<c:out value="{document.title}" /\> this is used to select string field from the hippo document and \<hst:html hippohtml="{document.content}" /\> this is used to select rich text field from hippo document. Like this for images, links, videos, navigation menu, gallery and so on fields which tags are used??

Friends help me for this…

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [July 20, 2018, 12:17pm UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/2 "2018-07-20T12:17:13Z")

</div>

Images you create links to with hst.link and then use that in the img tag. Videos are the same. Menus require you put the menu object on the request, then you have to expand them yourself. You can check this out in an archetype with some essentials components added. Or check the test-suite for examples, it’s a bit much to explain here.

Please also follow our tutorials.

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [July 20, 2018, 12:25pm UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/3 "2018-07-20T12:25:30Z")

</div>

hi thanks for quick reply

can you tell me the hst tags used for images, videos, links menus like this(\<hst:html hippohtml="${document.content}" /\>) ??

or

give me the link i will follow that link or tutorial

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [July 20, 2018, 12:31pm UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/4 "2018-07-20T12:31:57Z")

</div>

For binary assets in the repository you can use  
\<@hst.link hippobean=binaryBean var=“link”\>

We have quite a few tutorials, starting here:

> **[Hello World - Bloomreach Experience - Open Source CMS](https://documentation.bloomreach.com/14/trails/deep-dive/hello-world.html)**
>
> Open Source Enterprise Content Management

They work through standard features and also somewhat how to develop your own.

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [July 22, 2018, 1:43pm UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/5 "2018-07-22T13:43:57Z")

</div>

\<@hst.link hippobean=binaryBean var=“link”\>

this is used to give path that too for static

i am asking for jsp tag which can be directly linked to document image created in CMS like below image

 ![sportslogo](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/da497806683009528d5896b8297f380d82adc90b.jpg)

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [July 23, 2018, 7:08am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/6 "2018-07-23T07:08:35Z")

</div>

for Rich text editor field we are giving following code to make this dynamic

\<hst:html hippohtml="${document.content}" /\>

same way for image field which code is using???

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [July 23, 2018, 8:08am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/7 "2018-07-23T08:08:54Z")

</div>

If your document links to an image then your document bean should have a getter to retrieve it. That can be used in the hst.link tag.

\<@hst.link hippobean=document.image var=“link”\>

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [July 23, 2018, 9:42am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/8 "2018-07-23T09:42:03Z")

</div>

thank you for the reply bro but i am unable to get output getting error

 ![img2](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/50e1bc0e03332e2d2501092dc0ac6cca445ff91d.jpg)

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [July 23, 2018, 9:46am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/9 "2018-07-23T09:46:53Z")

</div>

![img1](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/546fc99635c7393dc36c84681cc6e68eb9116e8b.png)

![img3](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/75a56c7d013c71be264105d368f607466864168a.jpg)

leave all bro in attachments image1 is my document type and image2 is my jsp code by using that jsp code i am getting title and content of the document on site if i modify them in document they are directly reflecting on site no issue with them, now tell me how to get image from document and what code should i write in jsp file ??

help me friends

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [July 23, 2018, 11:37am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/10 "2018-07-23T11:37:18Z")

</div>

Your variable “document” is represented by a Java bean. This should have a method getPhoto(), check that please. If that is missing, go to essentials and use the beanwriter tool. On your templateyou would use:

\<@hst.link hippobean=document.photo var=“link”\>

note you lose the “get” and the capital.

The spelling error you see is irrelevant. That’s just your IDE trying to be helpful, but its not a real error.

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [July 25, 2018, 8:45am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/11 "2018-07-25T08:45:07Z")

</div>

getting error bro help me

 ![img4](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/cfeefbbc6c8946b9b67cfff750ac9830db5224db.jpg)

 ![img5](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/2fcd89b3a8c27c5d1cd0884485d1b5ac640fdbf2.jpg)

---

<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:** [July 25, 2018, 10:13am UTC](https://community.bloomreach.com/t/building-website-in-jsp-format-facing-some-issues/190/12 "2018-07-25T10:13:20Z")

</div>

see: [Unable to retrieve image from hippo document through jsp page](https://community.bloomreach.com/t/unable-to-retrieve-image-from-hippo-document-through-jsp-page/215/4)
