Hi,


Thanks for your kind reply. Here is my jsp code..


<%@ page language="java" import="com.jspsmart.upload.*"%><jsp:useBean
id="mySmartUpload" scope="page"class="com.jspsmart.upload.SmartUpload" /><%!
String fullname="";
public void delete(String Filename)
{
try
{
java.io.File f = new java.io.File(Filename);
f.delete();
}
catch(Exception e)
{
e.toString();
}
}

%><%
        //try{
        // Initialization
        mySmartUpload.initialize(pageContext);

        String filename="/demo/download/" + (String)session.getValue("name");
        String contType= (String)session.getValue("contType");

        mySmartUpload.downloadFile(filename,contType,"test.txt");
        %>


This is my JSP file.

Thanks,
Malla REddy choodi

>From: Geeta Ramani <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: null   error from JRUN
>Date: Tue, 20 Feb 2001 14:00:07 -0500
>
>Malla:
>
>According to the API (RequestDispatcher):
>
><quote>
>forward should be called before the response has been committed to the
>client (before response
>body output has been
>flushed). If the response already has been committed, this method throws an
>IllegalStateException.
></quote>
>
>Since you have not posted any code, I am guessing maybe you have committed
>your response
>before your call to forward..?
>
>Geeta
>
>Malla c wrote:
>
> > Hi,
> >
> > I am working upload and download application. My application is working
>fine
> > in jswdk-1.0.1.
> >
> > When I move my application to JRUN under linux environment, and when I
>click
> > the download   button to download   the file from server's root
>directory I
> > am getting Jrun Error like this..
> >
> > I stuck here.. Please any one help me to solve this error.. I will
>thankful
> > to u.
> >
> > Thanks,
> > Malla Reddy Choodi
> >
> > /myapp/demo/smart/download.jsp:
> >
> > null
> > java.lang.IllegalStateException
> >         at
>allaire.jrun.servlet.JRunResponse.getOutputStream(JRunResponse.java:294)
> >         at
>com.jspsmart.upload.SmartUpload.downloadFile(SmartUpload.java:579)
> >         at
>com.jspsmart.upload.SmartUpload.downloadFile(SmartUpload.java:508)
> >         at
> >
>jrun__demo__smart__download2ejsp18._jspService(jrun__demo__smart__download2ejsp18.java:60)
> >         at
>allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
> >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> >         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> >         at
> >
>allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
> >         at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:175)
> >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> >         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> >         at
> >
>allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
> >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> >         at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >
>___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to