Challenge: Controlling the output stream of includes within iterative tags

Problem:
How can you control the output stream of an iterative tag that is making an include on each iteration (either by using the jsp include tag or by a custom tag that does an pageContext.include(). Example of the first of such a case could be:
<wf:iterator name="...">
<div>
<jsp:include page="test.jsp" flush="true"/>
</div>
<wf:iterator>
I now want to see the following output:
<div>
..content of jsp file 1
</div>
<div>
...content of jsp file 2
</div>
etc....
However what I AM seeing is that the jsp content is flushed to the output stream before the divs like this:
...content of jsp file 1
...content of jsp file 2
<div>
</div>
<div>
</div>
See!? How is that and what can I do to control the output stream??
Thanks
Alf Johannessen
Ariol

This is a stab in the dark, but have you tried writing your div tags out using the JSP directive:
out.println("<div>");
or
<%="<div>"%>
It looks like a bug in the iterator. I'd suggest you try setting flush to be false, but I know that's not supported yet (unless you've updated your libraries) ...

Similar Messages

  • Compress the output stream..

    Hello every body..
    I have aproject that use the java applet to transmit a vedio and audio over the internet network to do a video conference application with other applet at another computer at the network..
    I want to support the application so that the user that enter the conference can select the bandwidth of the internet he/she use and then accordin to choice i control the quality of the stream transmitted..
    So i want any one can help me with any way can be used to reduce the quality( or resolution) of the output stream so the user can be comfortable with the output..
    please any one can help me reply to me as fast as can..
    I there is no method can be used also reply and say this..
    Thanks...

    Hi,
    For audio use GSM codec. It just takes 12kbps of your bandwidth.
    For video, if you need "ok" quality with low bandwidth, use H.263 codec and for good quality, but higher bandwidth use JPEG codec. below are complete functions on how to reduce qualities for both codecs (or at least try to). But before you have to create a video Processor (see AVTransmit3.java and AVReceive3.java examples on the net).
    private void setReducedJPEGQuality(Processor videoProcessor) {
       Control cs[] = videoProcessor.getControls();
       QualityControl qc = null;
       VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);
       // Loop through the controls to find the Quality control for
       // the JPEG encoder.
       for (int i = 0; i < cs.length; i++) {
          if (cs[i] instanceof QualityControl && cs[i] instanceof Owned) {
             Object owner = ((Owned)cs).getOwner();
    // Check to see if the owner is a Codec.
    // Then check for the output format.
    if (owner instanceof Codec) {
    Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null);
    for (int j = 0; j < fmts.length; j++) {                    
    if (fmts[j].matches(jpegFmt)) {               
    qc = (QualityControl)cs[i];          
    qc.setQuality(0.5f);               
    break;
    if (qc != null) {
    break;
    This will reduce your JPEG bandwith to an average of 150kbps, with still a good quality.
               private void setReducedH263Quality(Processor videoProcessor) {
             Control cs[] = videoProcessor.getControls();
              QualityControl qc = null;
              BitRateControl brc = null;
              FrameRateControl frc = null;
              boolean done = false;
              //try with bit rate first
              for (int i = 0; i < cs.length; i++) {
                  if(cs[i] instanceof Owned) {
                      if(cs[i] instanceof BitRateControl) {
                           brc = (BitRateControl)cs;
                   if(brc.getBitRate()>0) {
                        brc.setBitRate(30000);               done = true;
                   brc = null;
              if(done) {
                   return ;
              //then look for quality control
              for (int i = 0; i < cs.length; i++) {
              if(cs[i] instanceof Owned) {
              if(cs[i] instanceof QualityControl) {
                   qc = (QualityControl)cs[i];
                   if(qc.getQuality()>0.0f) {
                        qc.setQuality(0.5f);
                        done = true;
                   qc = null;
              if(done) {
                   return ;
              //if that did not work, try setting frame rate
              for (int i = 0; i < cs.length; i++) {
              if(cs[i] instanceof Owned) {
              if(cs[i] instanceof FrameRateControl) {
                   frc = (FrameRateControl)cs[i];
                   frc.setFrameRate(6.0f);
                   frc = null;
    This will reduce your H.263 codec's bit rate to 80kbps. You cannot set less than that. I tried with many webcams and that's the least I could go.
    Good luck.

  • Error flushing the output stream in Sun One server

    Hi All,
    I was running my servlet code in iPlanet 6.0 version and it was working fine. I upgraded my web server to new Sun One server (Oracle-iPlanet-Web-Server-7.0.9). With the new web server almost 90% of my application works fine, but there is a features in my application to download an Excel sheet by clicking a button. This feature is failing in new Sun One web server.
    Below are my piece of code and the error log I m getting. Can anyone tell me how I can fix this error, I mean is there any web server specific change or configuration parameter need to be set.
    Please ask for any information regarding my server configuration settings if needed for finding a solution for this
    Code:
    byte abyte0[] = new byte[1024];
    BufferedInputStream bufferedinputstream=null;
    BufferedOutputStream bufferedoutputstream=null;
    java.io.InputStream inputstream = httpurlconnection.getInputStream();
    bufferedinputstream = new BufferedInputStream(inputstream);
    bufferedoutputstream = new BufferedOutputStream(httpservletresponse.getOutputStream());
    int j;
    long byteCount=0;
    while((j = bufferedinputstream.read(abyte0, 0, 1024)) != -1)
    byteCount=byteCount+j;
    if(logger != null && logger.traceOn())
    logger.log("total"+byteCount);
    logger.log("Read bytes:"+j);
    bufferedoutputstream.write(abyte0, 0, j);
    if(logger != null && logger.traceOn())
    logger.log("Wrote bytes:"+j);
    bufferedoutputstream.flush(); // <<<<<< ERROR POINT >>>>>>
    Error Log :
    ClientAbortException: java.io.IOException: WEB8004: Error flushing the output stream
    at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:343)
    at org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:313)
    at org.apache.coyote.tomcat5.CoyoteOutputStream.flush(CoyoteOutputStream.java:147)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
    at com.reuters.bdec.as.ASRequestHandler.processResponse(ASRequestHandler.java:285)
    at com.reuters.bdec.as.ASRequestHandler.initiateGetRequest(ASRequestHandler.java:89)
    at com.reuters.bdec.as.ASRequestHandler.proceedToDestination(ASRequestHandler.java:220)
    at com.reuters.bdec.as.ASExtension.authorisationCheck(ASExtension.java:84)
    at com.reuters.bdec.as.ASExtension.doGet(ASExtension.java:114)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:794)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:915)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
    at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)
    Caused by: java.io.IOException: WEB8004: Error flushing the output stream
    at com.sun.webserver.connector.nsapi.NSAPIProcessor.action(NSAPIProcessor.java:243)
    at org.apache.coyote.Response.action(Response.java:197)
    at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:339)
    ... 20 more

    Don't flush it yourself. The servlet container will automatically flush for you once its send buffer is full. You can change the size of the send buffer though.

  • Exception writing binary data to the output stream to client -Broken pipe

    Hi,
    I am trying to use the drag & drop feature using Contributor mode of Webcenter sites. Single Image Page Attribute is working properly where as Multiple Image Page Attribute throws the following error:
    [ERROR] [.kernel.Default (self-tuning)'] [logging.cs.satellite.request] Exception writing binary data to the output stream to client 10.191.117.106
    java.net.SocketException: Broken pipe
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:568)
         at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:539)
         at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:427)
         at weblogic.servlet.internal.ChunkOutput$2.checkForFlush(ChunkOutput.java:648)
         at weblogic.servlet.internal.ChunkOutput.write(ChunkOutput.java:333)
         at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:148)
         at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:148)
         at COM.FutureTense.Servlet.ServletRequest$OutputOutputStream.write(ServletRequest.java:80)
         at COM.FutureTense.Servlet.ServletRequest.write(ServletRequest.java:1633)
         at com.openmarket.Satellite.RequestContext.write(RequestContext.java:1123)
         at com.openmarket.Satellite.BytePiece.stream(DataPiece.java:253)
         at com.openmarket.Satellite.CacheObjectImpl.stream(CacheObjectImpl.java:651)
         at com.openmarket.Satellite.Http11Responder.respondForWrapper(Http11Responder.java:142)
         at com.openmarket.Satellite.WrapperAwareResponder.respond(WrapperAwareResponder.java:36)
         at com.openmarket.Satellite.SatelliteServer.execute(SatelliteServer.java:85)
         at com.openmarket.Satellite.servlet.BaseServlet.doGet(BaseServlet.java:118)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:557)
         at com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Thanks
    KarthiK

    Thank u very much,
         FileOutputStream opGif = new FileOutputStream(destFile, false);
    I have changed above line with the following line:
         PrintWriter opGif = new PrintWriter ( new FileWriter(destFile, false));
    and now this code is working very fine.
    Thanks once again...

  • User exist for controlling the OutPut type in sales order

    Hi
    Is their any exist which controls the output type based on header data of the order? VA01/02.
    Best regards
    Satish Kumar K

    Hi,
    IN the VOFM routine you can use the structure KOMKBV1 which will be populated with the sales org (VKORG), division (SPART) and order type (AUART).
    Example
    SY-SUBRC = 4.
    IF KOMKBV1-VKORG = '0001' AND
        KOMKBV1-SPART = '12' AND
        KOMKBV1-AUART = 'ZXXX'.
    SET THE return code to 0 to propose the output type.
      SY-SUBRC = 0.
    ENDIF.
    Hope this helps..
    Thanks,
    Naren

  • Getting the Output Stream of  a Process without exec()ing it first.

    Hi there,
    I am writing a java application which needs to open another application "gnuplot". Now my operating system is windows and I open pgnuplot .
    Also I want to send input to the above gnuplot (say plot sin(x) ) via the outputStream. The following is what I do :-
         String gnuplot_cmd = "plot sin(x)\n" ;
              Process p = Runtime.getRuntime().exec("C:/gnuplot/gnuplot4/bin/pgnuplot.exe");
              PrintWriter gp = new PrintWriter(p.getOutputStream());
              gp.print(gnuplot_cmd);
              gp.close();
    But the above doesn't work fully , in that only the blank wgnuplot terminal window pops up however I am unable to direct input to the gnuplot application.
    The reason being that , pgnuplot checks for
    its stdin being redirected the moment it's started. If, at that time,
    the "PrintWriter" is not yet connected to the OutputStream of the
    process, that check will fail, and pgnuplot will revert to just executing
    wgnuplot, without any command line redirection.
    I am facing a problem of how to attach a OutputStream to the process, without getting exec()ing the process.
    Is there anyway at all, i can get a process without starting it, so that I can attach an output Stream to it before it gets executed?
    I am open to work arounds, anything that will automate the process of writing to the gnuplot terminal.
    thanks!
    nandita.

    The reason being that , pgnuplot checks for
    its stdin being redirected the moment it's started.
    If, at that time,
    the "PrintWriter" is not yet connected to the
    OutputStream of the
    process, that check will fail, and pgnuplot will
    revert to just executing
    wgnuplot, without any command line redirection. I'm not convinced this analysis is correct. gnuplot doesn't need to know that there's a PrintWriter there, and it probably can't know. It just needs to know whether its standard input is coming from console or not. The Java library code that can invoke processes probably handles the redirect right away, and that's why there's the OutputStream available even before you create the PrintWriter.
    exec can be tricky. I think the problem may be that you're not dealing with standard output or standard error. Read this:
    When Runtime Exec Won't
    If that still doesn't help, there may be options to gnuplot to tell it exactly where its input is coming from.

  • How to control the output types in PO MESSAGES

    Hi Friends,
    As per the requirement I need to control the message in Standard PO(ME22N). Scenario is like below.
    1.     I am modifying some field value in PO and saving it. Then clicking on MESSAGES tab. Now I am seeing some output types are adding in EDIT mode.
    2.     Requirement is , when ever user changed one particular filed(Order acknowledgement ) and saved it, then he doesnu2019t want to see the message in EDIT mode.
    Could you please suggest me the way? Any user exit is there to reach this? Please do the needful.
    Thanks,
    Kumar

    hi,
    its may be useful for u.
    In the release strategy,if the indicator changeablity is 1 the system will not allow you to take repeat out put.
    Solution is that you have to change the release indicator changeability to 6(SPRO>MM>Purchasing>Purchase order>Define release procedure for purchase order>Release indicator>Changeability).
    Another option is that in the message output of the PO in further data change despatch time to 3 and take a repeat out put.
    Also check,
    SPRO > MM > PO > Release Procedure for PO > Release indicator > Changeability of Purchasing Document During/After Release as 2 for Release ID - G and save
    And then Create go to chage mode of PO and repeat the messages
    Regards,
    venkat m

  • Can we control the output screen area of alv grid list

    Hi All,
    can we control the screen area of grid control in alv's , not using ooalv's. By default grid list is displaying in the whole screen, but i want  to display this grid list in specific area in output screen , not in full screen, how to set these screen area for this grid control. Please let me know.

    Hi,
    If you use the following parameters
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
    you will get the output in the size expected but it will be in the form of a pop up box and a blank screen at the back and user action like cancel etc will take you back to the selection screen.

  • How to control the output fields in ALV

    Hi Pals,
    I have a Z program which outputs around 400 characters length. It is working fine when we run in foreground(online).. But i have the problem with the length of the output of the report when i run in BACKGROUND mode. That is, only 255 characters are being displayed.
    So, i have decided to supress some of the unwanted output fields being diplayed, so that the total output length becomes 255 characters.
    How can i handle this situation in the ALV's?
    Someone please send me some sample code.
    Thanks in advance,
    Ram.

    Hi
       Better create the Layout Variants with the desired columns.
    ALV is providing that functionality.
    Use
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = alv_variant
          i_save     = 'A'
        IMPORTING
          es_variant = alv_variant
        EXCEPTIONS
          not_found  = 2.
    Regards,
    Kumar

  • Controlling the output when purhcsae order item is deleted

    HI
    Here is our scenario, we have two outputs automatically determined ( by condition records) when a purhcase order is changed, now when we delete the purchse order item we want only one put type to be triggered and not the other one.
    NEU    - When the PO line item is deleted  we want  trigger this output
    NEU1  - When the PO line item is deleted  we dont want to trigger this output
    Obviously we cannot  use "Fields Relevant to Printouts of Changes"  config to deactivate the EKPO-LOEKZ field as it impacts both the outputs.
    Is there a way to achieve this?
    Thx,
    Krishna.

    Hi Mohan,
    Thanks for the reply, we did try to use that requiremnet option but then how do you know if the purchase order item is being  deleted?  You have this field in the routinue KOMKBEA-DRUVO which gets pouplated with '2' means change.
    Obviously you cannot do a select query on EKPO because the PO is not yet updated at this point of time.
    Thx
    Krishna.

  • Pausing the output stream?

    Ahh! Sorry bout that... stupid friend.
    Anyway. I have a question. Is there a way to pause the output in a series of System.out.println commands?
    Like I'm making a game with a friend and its all text based using the java console and... It would be very confusing if all this text popped up at once!
    Something like...
    System.out.println("Hello!")
    //pauses
    System.out.println("Nice to meet you!")
    or perhaps a way to wait for the user to press a key to continue. That would actually be better :3
    I tried searching in the java api but got lost XD. I'm new to java. thanks for reading and helping me if you can.
    Edited by: Xanotros on Aug 2, 2008 11:46 AM

    if you want to wait for user input you can use a method like this to pring to the console:
    String printAndWait(String output) {
         System.out.println(output);
         BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
         try {
              return in.readLine();
         catch (Exception e) {
              return null;
    }you can also try to get the current running thread and make it go to sleep, but i dont think that its a good idea.

  • Control the output order of a CFSearch

    What is the proper procedure to take the return from a CFSearch and set the order based on one of the fields to be displayed in numerical, alphabetical, whatever?
    I understand how to use the result of the CFSearch to index into another source but that's one record at a time.  I want to re-order the cfsearch output to be in a defined order rather than the returned order based on ranking if I understand the process correctly.
    What to do?

    Basically we want to search a large inventory database and the client would like the output in an Alpha format.  I figured that the verity search would be the easiest way to parse through the data as well as allow for using wildcard chars.
    Ah right.  I probably would not use Verity to do that.  I'd use your DB's free-text search capabilities for this sort of thing, and do the work on the DB rather than getting Verity to drag it all out, then use CF to re-order it.
    I can get what I want except that I don't quite understand how to take the cfsearch return and then re-sort the data.
    This has been covered in previous responses: query on query will effect this.  However I don't think Verity & QoQ is the best approach to the requirement, now that I better understand what the requirement is.
    Adam

  • How to controle the output of a key figure based on an attribute

    As part of following up on a select range of materials during their launch period a report is needed, where the key figures are controlled by a specific attribute.
    The attribute is called End Launch Control Date and it holds the specific day where the product goes from launch to replenishment. When the product goes into repleneshment it is no longer relevant to follow up on.
    The follow up list contains around 80 materials (SKU's) and the challenge is that they have different End Launch Control Dates.
    So, I would like to design a report that does the following:
    1) When drill on material, the key figures only show values before the End Launch Control Date for the specific material. After this date, the key figure should state either zero or blank cells.
    2) The key figures should not be controlled by a specific date in the prompt, because the End Launch Control date is different for each material.
    Does anyone have experience in constructing this functionality?

    Hi,
    you could maybe do this with using formula variables and and IF statement in the keyfigure you want to be blank after a certain date
    basically you want/need to compare a date (which date would that be, one in the columns or smth?) with the end launch control date and if this date is bigger then this leave KF 0.
    so you need to create a formula using two formula variables (of type replacement path and being replaced by the 2 dates) and compare these two in the formula. Then you use the outcome of this (which should be 0 or 1) in a new formula with the keyfigure (statement true * KF ) + (statement false * KF). This will give a value when comparison is ok and 0 when it is not ok.
    This description might be not complete and bit short but I dont have the time to fully look it up, please let me know if you didnt understand the idea behind it.
    Regards
    C.

  • Controlling the output of custom tags

    Hi everybody
    I'm developing some special custom tags and I have a main tag and several nested ones. I want the nested ones to put their output String into JspWriter buffer when the main tag doEndTag() happens or use the JspWriter and print a sign when each nested tag are processed and then on doEndTag() of the main tag modify the buffer and replace the signs with their actual values. But so far I havn't got anywhere.
    Because JspWriter doesn't allow manual modification of buffer and doesn't even let you to access the content of the biffer either all one can do is to print more String into the buffer!
    Any suggestion would be a great help to me.
    Thanks a lot

    Here's an example that saves up the bodies of the nested tags and prints them out when the main tag is finished.
    index.jsp
    <%@ taglib prefix="mytags" uri="/WEB-INF/mytags.tld" %>
    <html>
    <body>
    <h1>index.jsp</h1>
    <mytags:main>
      <mytags:nested>value 1</mytags:nested>
      <mytags:nested>second value</mytags:nested>
      <mytags:nested>3RD VALUE</mytags:nested>
    </mytags:main>
    </body>
    </html>mytags.tld
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
            "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
    <taglib>
      <tlib-version>1.0</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name>mytags</short-name>
      <tag>
        <name>main</name>
        <tag-class>mytags.MainTag</tag-class>
        <body-content>JSP</body-content>
      </tag>
      <tag>
        <name>nested</name>
        <tag-class>mytags.NestedTag</tag-class>
        <body-content>JSP</body-content>
      </tag>
    </taglib>/mytags/MainTag.java
    package mytags;
    import java.io.IOException;
    import java.util.Iterator;
    import java.util.LinkedList;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class MainTag extends TagSupport
        public int doStartTag() throws JspException
         LinkedList nesteds = new LinkedList();
         pageContext.setAttribute("MainTagNesteds", nesteds);
         return EVAL_BODY_INCLUDE;
        public int doEndTag() throws JspException
         JspWriter out = pageContext.getOut();
         try {
             LinkedList nesteds = (LinkedList)pageContext.getAttribute("MainTagNesteds");     
             Iterator iterator = nesteds.iterator();
             while( iterator.hasNext() ) {
              out.println( iterator.next() + "<br>" );
         catch(IOException exc) {
             exc.printStackTrace();
         return EVAL_PAGE;
    }/mytags/NestedTag.java
    package mytags;
    import java.util.LinkedList;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class NestedTag extends BodyTagSupport
        public int doAfterBody() throws JspException
         BodyContent bc = getBodyContent();
         String bodyAsString = bc.getString();
         LinkedList nesteds = (LinkedList)pageContext.getAttribute("MainTagNesteds");
         nesteds.add( bodyAsString );
         return SKIP_BODY;
       

  • WEB8004: Error flushing the output stream

    This error has been posted many time in this forum but so far no positive reply.
    My application uses Java 1.5 and iPlanet SUN Web Server 6.1
    When user make multiple click on any request page this error occurs. Based on my investigation I got this exception occured when server response does not able to find its request page.
    Could any one have some idea how to supress this error? Or is it bug in iPlanet 6.1?
    Any help is appreciated.
    Thanks,
    Jude

    The problem has been resolved by removing flush=true from all the JSP pages

Maybe you are looking for

  • Best Practice for Automotive

    Dear All: Who has the package of best practice for Automotive? Specially for product traceability and external procurement! Please share with me, thanks in advance. Good day Tao

  • Mapping with EDI 820

    Hi Friends, Please help me to find these fields to map from SAP to EDI 820 (Positive pay). Where can I find these fields in SAP to get populated for the payment run. Our Company name: Our Bank Name: Our Bank Key: Check Lot number: Check number: Many

  • PVDM2-12DM compatibility with HWIC-1CE1T1-PRI

                      Hi there, I'm hoping someone can assist.  The setup i am trying to get working is the following User dials in over POTS to an ISDN30 Line.  The ISDN30 line (3rd Party Supplier) is connected to our 2911 via a HWIC-1CE1T1-PRI module. 

  • SAP Business one for GAS Industry

    Dear Experts, My client is in GAS Manufacturing Industry. We calibrated multiple gases as per client requirement. we sale the gases sometimes with cylinder, some time cylinder on rentle besis and refilling the cylinder. Pls tell me how to manage the

  • Why doesn't firefox open youtube videos, istead whole server get jam.

    Only way to get out is stop process. When open videos sound and music is playing, but video stops after 0-2 second. Then firefox is jammed, nothing works.