Home
TeamSite
Where do I create the jsp pages?
Gery
Hi,
I'm working with Windows 2000 server.
Do you know how I use a jsp page as a presentation template inside teamsite GUI (Interwoven), in order to include an other .tpl files.
I want generate an html page from this pt from teamsite GUI without dcr's, only to include an other .tpl files.
I believe that I only generate an html page from a dcr, is it true?
And I have a problem with where I location this jsp's:
- Do I create jsp from the teamsite GUI, from my workarea?
- IW-HOME\httpd\webapps\ ?
- IW-HOME\opendeploy\administrator\servletd\webapps/ ?
Does anyone have any idea? And I sorry for my english.
Thank you very much!
Gerard
Find more posts tagged with
Comments
iwovGraduate
I am not sure if I understand what you are trying to achieve.
Your JSP pages (which are part of the website) should reside in your workarea. iw-home is the location where the software is installed. I don't think you want to put your website in there.
You can generate a jsp (or any other type of) page out of a presentation template. However I am confused by:
"I want generate an html page from this pt from teamsite GUI without dcr's"...
If you do not want to include any data from a DCR then why even bother to use templating ? Just create a JSP page using any editor and version/manage it in TeamSite.
TeamSite is not have a web-authoring tool. You can use any tool (dreamweaver, textpad...) to create/edit your pages.
Hope that helps.
Gery
Sorry, it's normal that you don't understand me. I don't explain clear beacuse my english is bad.
I'm going to retry the issue.
I have created a jsp page in my workarea, but I don't want to be a template. All I want is a jsp page that include a .tpl file, like this:
<html>
...
<%
@include
file="/templatedata/...template.tpl"%>
or
<iw_include pt="/templatedata/...template.tpl"/>
...
</html>
But I don't know how to launch or preview this jsp page. If I preview it, the next error message appears:
" File: home.jsp
File home.jsp of type application/octet-stream cannot be displayed in the browser window. You can download the file to your local system, or you can perform any of the standard VisualPreview actions using the toolbar.
Download home.jsp "
Then if I click over "Download home.jsp",the tool launch the page but as html page. It don't include the tpl file.
May be the problem is the configuration of TOMCAT, jsp engine, Apache, or similar, I don't know...
Finally, I'd would like to generate an html page from the results of this jsp page.
I don't know if it's now more clear? Any idea?
Thanks.
Gerard
Edited by Gery on 03/31/04 06:56 AM (server time).
Adam Stoller
Are you trying to use a JSP to *replace* the TST engine for generating HTML from the JSP file itself with PTs ???
Are you talking about using the CSSDK ?
What version of TS are you using?
To borrow a definition from Jon **** (perhaps paraphrased) - "PT's are arbitrary programs used to process arbitrary data to generate abritrary output" - so you can theoretically use a PT to process data from somewhere other than a TST DCR to generate HTML pages - but I think that at least 95% of the time folks are only using PTs to process DCRs, so there isn't likely to be a lot of assistance we can give you if you are trying to do something else (at least not with prior experience)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Gery
The version of TeamSite is 6.0.0. and Windows 2000
I don't talking about CSSDK, simply I'd would like to generate an html page from a jsp that includes a tpl file with the tag include.
That jsp is in my workarea.
How can I preview the jsp page?, and how can I generate the html?
Any idea?
Thanks.
Adam Stoller
You seem to be under the impression that you can use TST PT tags within a JSP page and magically generate HTML from it. I'm not sure where you got that impression - and I'm still confused about what you are trying to do.
Have you done any TST development work?
Have you read the manuals and/or taken any training?
If you want a JSP to generate HTML code - I believe that's pretty standard JSP coding - yes?
If you want to have a PT generate a JSP page which will then in turn generate HTML code - that's do-able, but 9-times-out-of-10 [at least] the PT is going to be processing a DCR in order to generate the JSP page.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
gzevin
Adam,
when I said the same in the yahoo groups, they accused me of being arrogant
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU