[opencms-dev] Re: questions on jsp template

alicewin at collegeclub.com alicewin at collegeclub.com
Thu Sep 11 14:38:01 CEST 2003


 Oh oh, I don't think the solution "change from jsp type to plain type" is good. Let's see.

 If from a JSP type file calls a plain file which ends with '.jsp', it's okay.

 If from a JSP type file calls a JSP file which ends with '.jsp', it's failed ("there is not enought space on disk").

 Is it a bug of OpenCMS or just a normal behaviour?

 All my jsp pages need to use the default.jsp template.
 I can't define the type PLAIN for default.jsp template.
 Error "default.jsp is NOT a JSP file".

  I really don't know how to do jump over this problem.

  Help me.
 



alicewin at collegeclub.com wrote:

>
>
>Hi,
>
>
>After changed the file type of 'foot.jsp' from JSP to TEXT (plain), the error "not space on disk" is solved.
>
>
>But still the other questions. Please help me.
>
>
>Where should I put my new project?
>
>
>How to create an element? I don't want to define them in default.jsp.
>
>
>How to include an element into the default.jsp template? 
>
>How to load an image in a jsp (for the header)? 
>I really want to put the head part into another page/template, but I don't know how to get the correct path for the images, because in a normal jsp file I don't know if I can use <cms:link> tag.
>
>
>And a new question, Could you show me how to use the default.jsp template in a jsp page?
>
>
>Thanks alot.
>
>
>
>>
>
>>> 
>>> The below default.jsp file is a bad template.
>
>>
>
>>> It raises errors. Help me please.
>
>>
>
>>> What's wrong?
>
>>
>
>>> 
>>> By the way, please answer me in OpenCMS, where should I put my new project? Because, I don't think /release/ folder is a good place. Am I right?
>
>
>
>alicewin at collegeclub.com wrote:
>
>
>>
>
>>
>
>> Hello,
>
>>
>
>>
>
>> Thanks for your review.
>
>>
>
>> 
>> This is the problem of my copy and paste. Sorry.
>
>>
>
>> Actually the problem I've met is: 
>> 
>> When I remove the footer part out of the default.jsp template, the page displays correctly. 
>> "there is not the space on the disk" error will appear if I put the tag which includes foot.jsp file, even if the foot.jsp is empty.
>
>>
>
>>
>
>> 
>>
>
>>
>
>> 
>>
>
>>Hi,
>
>>
>
>>
>
>>The first thing I notice is:
>
>>
>
>>
>
>><cms:include page="<cms:link>../elements/foot.jsp</cms:link>" 
>>
>
>>where you have not closed your include-tag, it should be:
>
>>
>
>>
>
>><cms:include page="<cms:link>../elements/foot.jsp</cms:link>" />
>
>>
>
>>
>
>>regards
>
>>
>
>>
>
>>----- Original Message ----- 
>>From: <alicewin at collegeclub.com>
>
>>
>
>>To: <opencms-dev at opencms.org>; <alicewin at collegeclub.com>; <opencms-dev at opencms.org>
>
>>
>
>>Sent: Thursday, September 11, 2003 11:35 AM
>
>>
>
>>Subject: [opencms-dev] questions on jsp template
>
>>
>
>>
>
>>
>
>>> 
>>> Hello,
>
>>
>
>>> 
>>> I'm in OpenCMS.
>
>>
>
>>> I have some questions, hope you could help me.
>
>>
>
>>> 
>>> My project will read-write into database, so I think I should use jsp language.
>
>>
>
>>> But currently, I meet problem with the default.jsp template.
>
>>
>
>>> How to create an element? I don't want to define them in default.jsp.
>
>>
>
>>> How to include a jsp file or an element into the default.jsp template? 
>>> How to load an image in a jsp (for the header)? I really want to put the head part into another page/template, but I don't know how to.
>
>>
>
>>> 
>>> The below default.jsp file is a bad template.
>
>>
>
>>> It raises errors. Help me please.
>
>>
>
>>> What's wrong?
>
>>
>
>>> 
>>> By the way, please answer me in OpenCMS, where should I put my new project? Because, I don't think /release/ folder is a good place. Am I right?
>
>>
>
>>> 
>>> Be patient with me.
>
>>
>
>>> 
>>> Thanks alot. 
>>> 
>>> Here is my default.jsp:
>
>>
>
>>> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
>
>>
>
>>> 
>>> <cms:template element="head"><%--
>
>>
>
>>> 
>>> 
>>> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
>>
>
>>> <html>
>
>>
>
>>> <head>
>
>>
>
>>> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<cms:info property="opencms.request.encoding" />">
>
>>
>
>>> <title>Test page</title>
>
>>
>
>>> </head>
>
>>
>
>>> <body>
>
>>
>
>>> <link title="Flex Stylesheet" href ="<cms:link>../resources/css/alice.css</cms:link>" type="text/css" rel="STYLESHEET">
>
>>
>
>>> 
>>> <!-- Header row -->
>
>>
>
>>> 
>>> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
>
>>
>
>>> 
>>> <TR>
>
>>
>
>>> <TD colSpan=5><IMG height=30 alt="" 
>>> src="<cms:link>/system/galleries/pics/pics/spacer.gif</cms:link>" width=1 border=0></TD>
>
>>
>
>>> <TD rowSpan=3><A href="<cms:link>/index.jsp?pag=login</cms:link>"><IMG alt="" 
>>> src="<cms:link>/system/galleries/pics/pics/login.gif</cms:link>" border=0></A></TD></TR>
>
>>
>
>>> <TR>
>
>>
>
>>> <TD><IMG height=1 alt="" 
>>> src="<cms:link>/system/galleries/pics/pics/spacer.gif</cms:link>" width=40 border=0></TD>
>
>>
>
>>> <TD vAlign=top align=right><IMG alt=logo_image
>
>>
>
>>> src="<cms:link>/system/galleries/pics/pics/logo.gif</cms:link>"></TD>
>
>>
>
>>> <TD><IMG height=1 alt="" 
>>> src="<cms:link>/system/galleries/pics/pics/spacer.gif</cms:link>" width=20 border=0></TD>
>
>>
>
>>> <TD vAlign=top align=left><IMG alt=logo_text 
>>> src="<cms:link>/system/galleries/pics/pics/logo_text.gif</cms:link>" ></TD>
>
>>
>
>>> <TD><IMG height=1 alt="" 
>>> src="<cms:link>/system/galleries/pics/pics/spacer.gif</cms:link>" width=100 border=0></TD>
>
>>
>
>>> </TR>
>
>>
>
>>> <TR>
>
>>
>
>>> <TD colSpan=5><IMG height=20 alt="" 
>>> src="<cms:link>/system/galleries/pics/pics/spacer.gif</cms:link>" width=1 border=0></TD></TR></TABLE>
>
>>
>
>>> 
>>> </cms:template>
>
>>
>
>>> 
>>> 
>>> <cms:template element="body">
>
>>
>
>>> 
>>> <!-- Main row -->
>
>>
>
>>> 
>>> <cms:include page="<cms:link>/index.jsp</cms:link>" 
>>> 
>>> 
>>> </cms:template>
>
>>
>
>>> 
>>> <cms:template element="foot">
>
>>
>
>>> 
>>> <!-- Footer row -->
>
>>
>
>>> 
>>> <cms:include page="<cms:link>../elements/foot.jsp</cms:link>" 
>>> 
>>> </body>
>
>>
>
>>> </html>
>
>>
>
>>> </cms:template>
>
>>
>
>>> 
>>> 
>>> 
>>> -------------------------------------------------------------------------- 
>>> CollegeClub.com is ready for Back to School! Enter the Caption Contest, get advice or see the 'Old School' Flipbook. 
>>
>
>>
>
>>
>
>>-------------------------------------------------------------------------- 
>>CollegeClub.com is ready for Back to School! Enter the Caption Contest, get advice or see the 'Old School' Flipbook. 
>>http://navisite.collegeclub.com/backtoschool2003
>
>>
>
>>
>
>>
>
>
>
>
>-------------------------------------------------------------------------- 
>CollegeClub.com is ready for Back to School! Enter the Caption Contest, get advice or see the 'Old School' Flipbook. 
>http://navisite.collegeclub.com/backtoschool2003
>
>
>



-------------------------------------------------------------------------- 
CollegeClub.com is ready for Back to School! Enter the Caption Contest, get advice or see the 'Old School' Flipbook.  
http://navisite.collegeclub.com/backtoschool2003


More information about the opencms-dev mailing list