Hi,
Can we display dynamic content in generated JSP. If yes can you please expain how it can be done.
Maybe? Describe what are you trying to do in more detail. What content are we talking about.. LiveSite components? Does the JSP reside on the TeamSite server? The LiveSite runtime? Somewhere else entirely?
I am generating JSP from the .page. I want to display dynamic content in the JSP. Fetch different DCR content based on the URL parameters.
Utsav wrote: I am generating JSP from the .page. I want to display dynamic content in the JSP. Fetch different DCR content based on the URL parameters.
That doesn't really answer the questions asked. That's more of "I decided on this approach to do something" not "I'm tying to accomplish this functionality in that context".
If you cannot clearly explain what you are trying to do, where you are attempting to do it, and why you are doing it - it is difficult for others to offer you suggestions (either along the same route you've already decided to go, or alternative routes you may not have considered)
If I understand your question...
You have a .page file which generates .jsp file
The visitor will hit the .jsp file and you want that .jsp file to open and process/display content from DCRs that were, I'm assuming, published to the runtime environment.
Sure - you can read the DCRs you have a couple of options
1) if you have LSCS - you can open a REST connection to LSCS and request the content of the DCR
2) you can open the DCR via the file system. (interwoven/LiveSiteDisplayServices/runtime/web/templatedata...)
Good luck.