Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to include a jsp file into a presentation template
Huan
I need to include a jsp file into the presentation layer since I've already built the jsp file to do some complicated work. Can I simply include this file or I need to send an http request, and how? By the way, the jsp is located on the same server as teamsite. I tried to use server side include and got on luck.
Find more posts tagged with
Comments
Adam Stoller
Just to be clear here:
The jsp file is used in the processing of the DCR to create the generated page?
or:
The jsp file is used in the rendering of the generated page when viewed on the web server?
Also - please include general information such as product version and platform information
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
gzevin
I'd take liberty to guess that we are talking about generating jsp pages from DCRs and then integrationg TeamSite with an app server....
but you're right, let Huan be more specific
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Huan
Thanks for your response. Let me clarify. The jsp file is used in the rendering of the generated page when viewed on the web server? Basically, it queries a database and run an algorithm to render the table of content in html format. This table of content will be used in the presentation template as a right include.
We will be using Teamsite 3.0 on unix box.
Edited by Huan on 03/16/05 06:49 AM (server time).
Adam Stoller
TeamSite 3.0 ?? Are you sure about that version number? 3.0 is over 5 years old and completely unsupported. It also did not have "real" templating (only HTML pages that were used as format templates).
As for JSP code used to render the generated page via the web server - assuming a more recent version of TeamSite - you would code the JSP code to be output via the PT just like you do HTML code. The rendering "within" TeamSite (i.e. via Preview) requires more work because you would need to have a JSP engine associated with your customer webserver that exists on the same box as TeamSite [do NOT use TeamSite's tomcat server] - the alternative is to provide your own custom Preview menu item that deploys the files to another server and provides links to the pages on the remote server (this can often be done by deploying to a distinct docroot on an existing web/app server)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Test.png
gzevin
just to add.. instead of a custom menu item for previews, I usually do it via workflows - having a preview and production instance deployment built in.
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Huan
Since the jsp is very complicated, I wouldn't be able to code them in the presentation template. What I am thinking is to sent an http request to a different server using perl script and display the response, a pure rendered HTML text in the PT. Has anyone tried this before? I should be able to use perl script in presentation template even in old version of teamsite, shouldn't I?
gzevin
I still suggest that you be more specific in what you need to achieve. It does not make any sense to me what you have just decsribed.
Also if you are on TeamSite 3.0 - Templating has been introduced only in 4.2, so it does not make any sense to talk about teamplating, unless you upgrade
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Adam Stoller
Whatever directive you would put into an HTML page to include and use your JSP code would be the directive that you would output in the PT (again assuming a more recent version of TS than 3.0).
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
If you are really using TS 3.0, PLEASE contact support at your earliest convenience. You are in a completely unsupported environment, and you will not be able to get help from 90% of the people on this forum.
Not only that, but you are missing out on lots of capabilities that would make your life as a developer so much easier!
Regards,
lissa