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
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??
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.
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 ??
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.