Hi all, 
I am tring to include external classes that are needed for my servlet 
class.   I tried to modify classpath in setclasspath.bat file by 
set CLASSPATH=%JAVA_HOME%
\lib\tools.jar;c:\mindbridge\classes\saclasses.jar
I needed all the classes in the saclasses.jar file for my servlet. When 
i restart the tomcat server, it just shows a blank page with out 
showing the default page. Am I giving a wrong classpath here? Any 
suggestions.
 
thanks
pradeep





----- Original Message -----
From: Tim Funk <[EMAIL PROTECTED]>
Date: Friday, September 5, 2003 10:34 am
Subject: Re: forward error

> You can't prevent the whitespace. So as a kluge, I have a swallow 
> tag for 
> such occasions.
> 
> In your tld ...
>   <tag>
>     <name>swallow</name>
>     <tagclass>SwallowTag</tagclass>
>   </tag>
> 
> import java.io.IOException;
> import javax.servlet.jsp.JspException;
> import javax.servlet.jsp.tagext.BodyTagSupport;
> 
> public class SwallowTag extends BodyTagSupport {
>     public int doAfterBody() throws JspException {
>         return SKIP_BODY;
>     }
> 
>     public int doEndTag() throws JspException {
>       try {
>               pageContext.getOut().clearBuffer();
>       } catch(IOException e) {
>               // silent ignore
>       }
>         return EVAL_PAGE;
>     }
> }
> 
> -Tim
> 
> 
> Maxime Colas des Francs wrote:
> 
> > thanks !
> > 
> > i put all my <c:forEach> loop in the same line and it's work.
> > 
> > is there a solution for limit whitespace generated by JSTL code ?
> > 
> > or i have to put all loop of my application in one line ??
> > 
> > 
> > At 09:50 2003-09-05 -0400, you wrote:
> > 
> >> The last thing your page does is  <jsp:forward page="/index.jsp"/>.
> >>
> >> Before that is a <c:forEach items="${ctcRow.rows}" var="row"> 
> loop. 
> >> You are probably filling up the buffer with whitespace, then 
> the 
> >> repsonse gets committed when the buffer is full.
> >>
> >> -Tim
> >>
> >> Maxime Colas des Francs wrote:
> >>
> >>> Hi
> >>> thks for your response, but here is my code, i don't 
> understand where 
> >>> the response is commited !
> >>> _____________
> >>> <%@ page contentType="text/html; charset=iso-8859-1" 
> language="java" 
> >>> errorPage="/error_jsp.jsp"%>
> >>> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> >>> <%@ taglib prefix="log" 
> >>> uri="http://jakarta.apache.org/taglibs/log-1.0"; %>
> >>> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> >>> <sql:query var="ctcRow">
> >>>    SELECT DISTINCT email FROM ctc ORDER by email
> >>> </sql:query>
> >>> <c:forEach items="${ctcRow.rows}" var="row">
> >>>         <log:info category='<%= request.getRemoteUser() %>'>
> >>>            <c:out value="${row.email}"/>
> >>>         </log:info>
> >>> </c:forEach>
> >>> <jsp:forward page="/index.jsp"/>
> >>
> >>
> >>
> >>
> >> ----------------------------------------------------------------
> -----
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: tomcat-user-
> [EMAIL PROTECTED]> 
> > 
> > 
> > -----------------------------------------------------------------
> ----
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -------------------------------------------------------------------
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to