JSP page do not close after loading a file

Hello, i am having a bit of a problem. i have the following code that help me load reports (pdf and xls) from my server in the user browser.
What i do in my code : jsp Page 1(generationInProgress) i create one of these reports (xml with blob) --> jsp page 2(viewReport) i load the file into the page.
My problem is pdf just go directly in the user brower but xls file(this file look like it is my page viewReport but in excel format) need to be downloaded into the user pc (work fine) but the first page (generationInProgress) stay visible.
This is in viewReport:
public void openFile()
System.out.println("openFIle");
//retrieve the report information
String fileName = sessionBean.getReportName();
//load the files
File reportFile = new File(mainPathL2, fileName + "." + sessionBean.getReportFormat());
File xslFile = new File(mainPathL2, fileName + ".xsl");
//download file
try
if(reportFile == null)
System.out.println("report file is null");
else
System.out.println(reportFile.length());
//send the pdf file to screen
HttpServletResponse response = (HttpServletResponse)facesContext.getExternalContext().getResponse();
if(sessionBean.getReportFormat().equals("xls"))
response.setContentType("application/vnd.ms-excel");
else
response.setContentType("application/pdf");
if(reportFile.length() != 4096){
FileInputStream fis = new FileInputStream(reportFile);
ServletOutputStream out = response.getOutputStream();
byte[] outputByte = new byte[(int)reportFile.length()];
while(fis.read(outputByte) != -1)
out.write(outputByte);
fis.close();
out.flush();
out.close();
} catch (IOException e)
// Do your error handling thing.
System.err.println("Download file failed: " + e.getMessage());
e.printStackTrace();
//delete files
reportFile.delete();
xslFile.delete();
facesContext.responseComplete();
} //end openFile() method
Anyone can offer some help ?

no on ever had that problem ?

Similar Messages

  • The edit JSP page does not appear...

    Hi!
    I make a simple JSF application, I would like to show a DB table in a h:dataTable component and edit a given row after click, but the edit JSP page does not appear. I click the on link in the table, but the list is loaded again and not the edit page...:(
    (no exception in application server console)
    Please help me!
    my code:
    **************************************** listmydata.jsp***************************
                   <h:dataTable
                             value="#{myBean.myDataList}"
                             var="myDataItem"
                             binding="#{myBean.myDataTable}"
                   >
                        <h:column>
                             <f:facet name="header">
                                  <h:outputText value="Ajdi"/>
                             </f:facet>
                             <h:commandLink action="#{myBean.editMyData}">
                                  <h:outputText value="#{myDataItem.id}"/>
                             </h:commandLink>
                        </h:column>
    ********************************* MyBean.java *******************************
    package bean;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.context.FacesContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import wrapper.MyData;
    public class MyBean {
         private List myDataList;
         private HtmlDataTable myDataTable;
         private MyData myDataItem;
         protected Connection Conn;
         // *********************** actions ***********************
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
         public String saveMyData() {
              try {
                   updateDataInDB();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              return "listmydata";
         // *********************** setter ***********************
         public void setMyDataList(List myDataList) {
              this.myDataList = myDataList;
         public void setMyDataTable(HtmlDataTable myDataTable) {
              this.myDataTable = myDataTable;
         public void setMyDataItem(MyData myDataItem) {
              this.myDataItem = myDataItem;
         // *********************** getter ***********************
         public List getMyDataList() {
              if (myDataList == null || FacesContext.getCurrentInstance().getRenderResponse()) {
                   loadMyDataList();
              return myDataList;
         public HtmlDataTable getMyDataTable() {
              return myDataTable;
         public MyData getMyDataItem() {
              return myDataItem;
         // *********************** others ***********************
         public void loadMyDataList() {
              try {
                   getDataFromDB();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
         void getDataFromDB() throws NamingException, SQLException {
              myDataList = new ArrayList();
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement("SELECT id, name, value FROM BEA_JSF_SAMPLE");
              PreStat.execute();
              java.sql.ResultSet Rs = PreStat.getResultSet();
              while(Rs.next()) {
                   MyData OneRecord = new MyData();
                   OneRecord.setId(Rs.getLong(1));
                   OneRecord.setName(Rs.getString(2));
                   OneRecord.setValue(Rs.getString(3));
                   myDataList.add(OneRecord);
         void updateDataInDB() throws SQLException, NamingException {
              String sql = new String("UPDATE BEA_JSF_SAMPLE SET name=?,value=? WHERE id=?");
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
              PreStat.setString(1,myDataItem.getName());
              PreStat.setString(2,myDataItem.getValue());
              PreStat.setLong(3,myDataItem.getId().longValue());
              PreStat.execute();
              ownGetConnection().commit();
         Connection ownGetConnection() throws SQLException, NamingException {
              if (Conn == null) {
                   InitialContext IniCtx = new InitialContext();
                   DataSource Ds = (DataSource)IniCtx.lookup("JDBCConnectToLocalhost_CRS");
                   Conn = Ds.getConnection();
              return Conn;
    ******************************* editmydata.jsp *****************************
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <body>
    <f:view>
    <h:form>
         <h:panelGrid columns="2">
              <h:outputText value="Name"/>
              <h:inputText id="name" value="#{myBean.myDataItem.name}"/>
              <h:outputText value="Value"/>
              <h:inputText id="value" value="#{myBean.myDataItem.value}"/>
         </h:panelGrid>
         <h:commandButton action="#{myBean.saveMyData}" value="Save"/>
    </h:form>
    </f:view>
    </body>
    </html>

    I have put his lines in the faces-config.xml and now it works:
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>editmydata</from-outcome>
                   <to-view-id>editmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>listmydata</from-outcome>
                   <to-view-id>listmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    I don't understand, that I define the next JSP page in the bean java file, which must be shown, but I must define this in the faces-config.xml as well.
    for example:
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
    is it right or Do I make a mistake somewhere?

  • Page is not rendered after first request

    Hi all,
    i have two page with names page1.jsp and page2.jsp. i open page2.jsp as pop up window by clicking a link on page1.jsp
    in _init() of page2.jsp,  i am getting some information from database and then i am able to create dynamic components according to information provided by database.
    for example, i create 3 textFields (their Id's are myTextField1, myTextField2, myTextField3) as result of execution of sql querry.
    Until here everything is ok for me, components looks rendered.
    i closed the page2 and then reopen it as pop up window again. i tryint to create another three textFields (their Id's are myTextField4, myTextField5, myTextField6). it looks like created at runtime, however i am getting the same old page.
    Please help me why my page is not rendering after reopening.
    Regards,

    any idea?
    it's similar problem without solution at following link
    http://swforum.sun.com/jive/thread.jspa?threadID=54347&messageID=208120#208120
    Any help apprechiated

  • Roboformtaskbaricon process will not close after firefox 9 is shut down

    Hello,
    The roboformtaskbaricon.exe (v754) process will not close after firefox 901 is shut down. Although I could be wrong, my guess is that firefox is pushing this process out of firefox, forcing it to run on its own. If it's a roboform issue, then I will contact them.
    Thank you, bheart

    On the page below, scroll down to "RoboForm Controls", then scroll down to '''''4. Taskbar Icon''''' under that heading. It sounds as though this may be the item to which you are referring. From the name of the file '''''roboform<u>taskbaricon</u>.exe''''', it implies the Windows Task Bar rather than the Firefox toolbar.
    *http://www.roboform.com/support/manual/roboform#files
    For clarification of '''''roboformtaskbaricon.exe''''', its function and whether it should shut down when exiting Firefox, contact Roboform Online Support and leave full details of your question:
    *http://www.roboform.com/support/overview
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Access DB (& .ldb file) does not close after crystal reports

    Post Author: mgold
    CA Forum: Crystal Reports
    Access DB (& .ldb file) does not close after crystal reports
    Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network, the application and access database does not close. It seems to hang on the &#91;.Close&#93; command.
    When we open the application an peruse the screens without opening up a report (using crystal reports), the application and access db closes fine. But as soon as we run a report and then close the report and try to close the application, the access db does not close. Many of the screens open the db and grab data from the access db, but it's only after running crystal reports that we have this problem. (Please see more information below.)
    Setup: Application and data (access 97 db) reside on a server in the same folder, but application shortcut is kicked off on client PC. Kicking off the shortcut on the client PC means that the image/process runs on the client PC (not on the server). In this problem case, the application shortcut is on a Windows XP Pro Version 2002 SP2 PC with the app & data on a Windows 2003 server. Users are local Admins on their PCs with "Full Control"over the directory and files on the server where the data (access 97 db) resides. This type of setup is typical and has worked without any problems for clients.
    The application is written in Visual Basic, using Crystal Reports 6 (using DAO). We close the recordset, set it to zero and then it hangs on closing the db (.Close command).
    A few key pieces of information:
    - The application closes fine if the app & data (access 97 db) are on a local PC. This includes closing fine if the application is run directly on the Windows 2003 server where the data is stored.
    - It worked on this client's network until sometime in the last few weeks.
    - One thing that changed is that the company is using VMWare on its servers. Not sure if they started using VMWare at the same time as it started failing. This may be unrelated. Possibly other things changed, but can't get any more information ... yet.
    - It works fine running the application from a Windows Vista PC with a user who is a domain admin.
    - The access db and application hang for about 10-20 minutes and then eventually closes. It appears that somehow
    Crystal Reports is keeping the db open, but I'm not sure why.The application doesn't quit and the database doesn't close even if I try to end the task with the Task Manager.
    - The Crystl32.ocx version being used is 8.0.0.4 (if that matters).
    - I copied 6 month old program files and database files to a test folder on the Windows 2003 server. It fails using these files that worked fine 6 months ago.
    Any ideas or help would be greatly appreciated! If you know of another good place to post this, please let me know.
    Thanks!
    - Mark

    Crystal doesn't support tables in HTML interpretation. 
    You can probably work your way around this by doing Replace() calls on the relevant tags.
    See:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033383334%7D.do
    The supported HTML tags are:
    " html
    " body
    " div (causes a paragraph break)
    " tr (causes only a paragraph break; does not
    preserve column structure of a table)
    " span
    " font
    " p (causes a paragraph break)
    " br (causes a paragraph break)
    " h1 (causes a paragraph break, makes the font bold
    & twice default size)
    " h2 (causes a paragraph break, makes the font bold
    & 1.5 times default size)
    " h3 (causes a paragraph break, makes the font bold
    & 9/8 default size)
    " h4 (causes a paragraph break, makes the font bold)
    " h5 (causes a paragraph break, makes the font bold
    & 5/6 default size)
    " h6 (causes a paragraph break, makes the font bold
    & 5/8 default size)
    " center
    " big (increases font size by 2 points)
    " small (decreases font size by 2 points if it's 8
    points or larger)
    " b
    " i
    " s
    " strike
    " u
    The supported HTML attributes are:
    " align
    " face
    " size
    " color
    " style
    " font-family
    " font-size
    " font-style
    " font-weight

  • Oem web page will not display after O/S dst patch

    Hello,
    The Grid web page will not display after we DST patch for the o/s.
    All below start fine without any errors:
    emctl start oms
    emctl start iasconsole
    opmnctl startall
    emctl start agent
    The Grid web page is not displaying. What might happened after the o/s dst patch that might cause this? Our GRID is 10204 with a 10104 repository. The 10104 has not yet been dst patch.
    What logs should I be looking at to figure why the web page is not displaying? Thank you.

    Provide the output of these comands:
    $OMS_HOME/bin/emctl status oms
    $OMS_HOME/opmn/bin/opmnctl status
    $AGENT_HOME/bin/emctl status agent
    $DATABASE_HOME/bin/sqlplus "/ as sysdba" << EOF
    SELECT STATUS FROM V$INSTANCE;
    EOF
    $DATABASE_HOME/bin/lsnrctl status LISTENER_NAME
    Regards

  • Why  will photoshop not open after loading it to new iMac computer from an external hard drive and I get this message: Licensing for this product has stopped working:error code: 150:30

    Why will Photoshop CS4 not open after loading to new iMac from an external hard drive and I get this message: Licensing for this product has stopped working:error code: 150:30

    A Photoshop installation is tied to the machine it was installed on. Moving it to or from a hard drive breaks the licensing.
    The answer is easy: Reinstall CS4 from your disc. and apply all updates.
    Gene

  • I have been experiencing connection issues with loading web pages. It's as if the web pages do not want to load all the way and some times not at all. This has happen with all three of my computers with the same browsers.

    There are times when web pages do not want to load fully and other times not at all. They just continue to open up with a blank screen. My routers light flash during this process and then they stop as if no connection is being made. I do know for sure it is not my ISP or internet explorer browser.
    Thank you,
    David [email protected]

    I continue to have this problem and have tried all recommendations so far...I notice also when I click on a web site on the taps side of browser once it starts loading however it does not connect, web site comes up just blank while it continues to search. The same thing happens while in an email program with clicking in the email link and page pops up and continues to search for the web site. You have to reload over and over again until it finally locates it and then opens. Should I uninstall the Firefox browser and install again.....?

  • Font not working after loading snow leopard.

    My font named Smash is not working after loading snow leopard.  Is there any way to fix this?

    I suspect you're talking about a free font called Smash. Read Kurt Lang's paper on font management
    <http://www.jklstudios.com/misc/osxfonts.html>
    and especially his strictures on free Windows fonts. The free Smash is a good example of what his talking about. It's a bad, poorly made font. Trash it ASAP.
    If you want to check it with Font Book, use  File > Validate File…, then locate smash.ttf and proceed. You cannot use File > Valide Font, because that command works only with installed, 'working' fonts.
    For the real font, go to
    <http://www.cool-fonts.com/>

  • Why does Safari not respond after loading OSX Mavericks on a MacBook air

    Why does Safari not respond after loading OSX Mavericks on a MacBook air?

    What exactly happens? Does it launch at all? Have you tried rebooting?

  • Quicktime not working after loading Lion. It is in Applications folder. It is dark when trying to play. Audio is there, no video. Is something set wrong?

    Quicktime not working after loading Lion. It is in Applications folder. It is dark when trying to play. Audio is there, no video. Is something set wrong?

    It is supposed to be dark.
    Is it all videos that don't display or just some. You may have installed something like Perian or Flip for Mac that translates the video codecs for Quicktime. They may need updating.

  • JSP page is not throughing internal server error

    Hi all,
    We are facing one issue with two jsp pages,
    1) They(developers) have made some changes to procedure apps.dscn_affinity_group_hier_rpt and complied it. Was trying to test the change by using below navigation but found Internal server error message.
    2) So had recompiled with original procedure. Procedure complied successfully as expected, but the page shows same error
    3) Bounced the apache still error is coming.
    the procedure is called from page - dscnAffGroupReport.jsp
    and they getting the error while naviagating to : dscnGroupList.jsp
    Then we removed the _pages and bounced the entire suite still the error persist.
    I Tried compiling the jsp's manually by as follows
    [applmgr@blrtstorcl01 DCOINDEV_blrtstorcl01]$ perl /oradata02/applmgr/ddevappl/jtf/11.5.0/admin/scripts/ojspCompile.pl compile -s 'dscnGroupList.jsp,dscnAffGroupReport.jsp' flush
    identifying apache_top.../oradata02/applmgr/ddevora/iAS
    identifying apache_config_top.../oradata02/applmgr/ddevora/iAS
    identifying java_home.../oradata02/applmgr/ddevcomn/util/java/1.4/j2sdk1.4.2_04
    identifying jsp_dir.../oradata02/applmgr/ddevcomn/html
    identifying pages_dir.../oradata02/applmgr/ddevcomn
    identifying classpath...file:///oradata02/applmgr/ddevora/iAS/Apache/Jserv/etc/jserv.properties
    auto-logging to /oradata02/applmgr/ddevcomn/_pages/ojsp_error.log
    starting...(compiling all)
    using 8i internal ojsp ver: 1.1.3.5.2
    including compatibility flag -whiteSpaceBetweenScriptlet
    quick compile:
    files to compile...2
    translating and compiling:
    translating jsps...2/2 in 2s
    compiling jsps...2/2 [failed: 2] in 4s
    Finished!
    But it is giving as failed..
    the "/oradata02/applmgr/ddevcomn/_pages/ojsp_error.log" is showing as the following
    ==================
    PARALLEL COMPILATION: 2
    [5342] !!COMPILATION ERROR(0) dscnGroupList.jsp:
    _dscnGroupList.java:1282: cannot resolve symbol
    symbol : class GRPSearch
    location: class oa_html._dscnGroupList
    GRPSearch search = new GRPSearch(conn, l_analyst, l_emp_num+"%",
    ^
    _dscnGroupList.java:1282: cannot resolve symbol
    symbol : class GRPSearch
    location: class oa_html._dscnGroupList
    GRPSearch search = new GRPSearch(conn, l_analyst, l_emp_num+"%",
    ^
    2 errors
    [5342] compiling: 3s elapsed, 0 successful 1 failed
    [5343] !!COMPILATION ERROR(0) dscnAffGroupReport.jsp:
    _dscnAffGroupReport.java:1328: getGroupHier(oracle.jdbc.driver.OracleConnection,java.lang.String,java.math.BigDecimal,java.lang.String,java.lang.String,java.sql.Timestamp,dell.apps.cn.util.DscnGpHierRec[][],java.math.BigDecimal[],java.lang.String,java.lang.String,java.math.BigDecimal,java.lang.String[],java.lang.String) in dell.apps.cn.util.DscnGpHierPub cannot be applied to (oracle.jdbc.driver.OracleConnection,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,dell.apps.cn.util.DscnGpHierRec[][],java.math.BigDecimal[],java.lang.String,java.lang.String,java.math.BigDecimal,java.lang.String[],java.lang.String)
    DscnGpHierPub.getGroupHier(
    ^
    _dscnAffGroupReport.java:1367: incompatible types
    found : java.lang.String
    required: java.math.BigDecimal
    l_cg_rep_tbl[0].cg_salesrep_id = new String("0");
    ^
    2 errors
    [5343] compiling: 4s elapsed, 0 successful 1 failed
    COMPILED: 2 [failed: 2] in 4s
    5286 FINISHING Mon May 3 07:57:33 2010
    ~
    =======
    Pl let me know to overcome from this error, I tried copy the same jsp's from working instance to here $COMMON_TOP/html still the same error is displaying
    ===================
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    =====================
    Pl guide me to overcome from this error

    Same problem i have bounced the Apache server and the issue got resolved for me.
    thanks,
    Ram
    Apache Log:
    adapcctl.sh version 115.54
    Apache Web Server Listener :httpd ( pid 11993 ) is running.
    Apache Web Server Listener (PLSQL) :httpd ( pid 12096 ) is running.
    adapcctl.sh: exiting with status 0
    its working fine
    _pages:
    OJSPC VERSION: 8i 1.1.3.5.2
    synchronizing dependency file:
    loading deplist...15410
    enumerating jsps...15410
    updating dependency...2
    parsing jsp...2
    writing deplist...15410
    initializing compilation:
    eliminating children...12320 (-3090)
    cannot access /finapps/common/html/cncollnk.jsp (from cncolmap.jsp)
    cannot access /finapps/common/html/csifGrpSelIncl.jsp (from csiSfAdvSearchProdForm.jsp <- csiSfAdvSearchDisplay.jsp <- csiSfAdvSearchMain.jsp)
    cannot access /finapps/common/html/jtfCalGroupSubRen.jsp (from jtfCalGroupSubMain.jsp)
    cannot access /finapps/common/html/jtfCalGrpUpdErrChkPg.jsp (from jtfCalGrpUpdateRn.jsp)
    deleting stale file: /finapps/common/_pages/_oa__html/_AnonymousLogin.* [2 deleted]
    deleting stale file: /finapps/common/_pages/_oa__html/_SelfRegistration.* [2 deleted]
    searching uncompiled...2 (2 were stale)
    translating and compiling:
    searching untranslated...2
    COMMAND: exec java oracle.jsp.tools.Jspc -whiteSpaceBetweenScriptlet -noCompile -appRoot '/finapps/common/html' -d '/finapps/common/_pages' -srcdir '/finapps/common/_pages' -packageName '_oa__html' <file>
    PARALLEL COMPILATION: 2
    [18500] translating: 0s elapsed, 1 successful 0 failed
    [18501] translating: 0s elapsed, 1 successful 0 failed
    TRANSLATED: 2 [failed: 0] in 0s
    COMMAND: exec javac -nowarn <file>
    PARALLEL COMPILATION: 2
    [18536] compiling: 4s elapsed, 1 successful 0 failed
    [18535] compiling: 4s elapsed, 1 successful 0 failed
    COMPILED: 2 [failed: 0] in 4s
    18386 FINISHING Fri Jun 4 11:19:17 2010
    error_log:
    [Tue Jun 15 16:52:39 2010] [notice] caught SIGTERM, shutting down
    [Wed Jun 16 04:27:18 2010] [notice] FastCGI: process manager initialized (pid 12010)
    [Wed Jun 16 04:27:19 2010] [notice] Oracle HTTP Server Powered by Apache/1.3.19 configured -- resuming normal operations
    [Wed Jun 16 05:32:36 2010] [error] [client 165.160.200.82] File does not exist: /finapps/common/java//
    [Wed Jun 16 05:36:30 2010] [error] [client 165.160.200.82] File does not exist: /finapps/common/java//
    [Wed Jun 16 06:10:01 2010] [error] [client 165.160.200.82] File does not exist: /finapps/common/java//
    access_log:
    172.20.120.134 - - [15/Jun/2010:14:21:05 -0400] "HEAD /OA_JAVA/oracle/apps/media/previewscreen_enabled.gif HTTP/1.1" 200 0 0
    172.20.120.134 - - [15/Jun/2010:14:21:27 -0400] "GET /OA_JAVA/oracle/apps/media/previewscreen_enabled.gif HTTP/1.1" 200 1086 0
    after veryfying this i did apache bounce and the issue got resolved.

  • My jsp page does not get refreshed

    I have a jsp page which looks like -
    the top portion of the page has 3 textboxes and a submit button to add an entity.
    the rest of the page displays a list of all the entities in the system.
    when i load the jsp and add a new entity, the new entity shows up on the list. when i try to add a new entity second time, the entity does get added into the database, but does not show up in the list.
    In the action class, i make a request to the dao and print all the values from the list, returned by the dao. Since the newly added values are present in the list, returned by the dao, i dont think there is anything wrong with my business layer or the DAO layer.i dont understand, why it does not show up in the jsp page.
    any ideas. i am wondering if the data is being cached, so, in the jsp page i have also set the following parameters:
      <head><meta http-equiv="Expires" CONTENT="0"><meta http-equiv="Cache-Control" CONTENT="no-cache"><meta http-equiv="Pragma" CONTENT="no-cache">
    --------------------------------------------------------------------------------Has this to do anything with Struts and Hibernate which i use in my application? The same thing happens, when i edit. when i click on edit button, it takes the user to a different page, i edit the details and click on save button. the control returns back to the list page, but the changes are not shown, although the changes are saved to the db. how do i prevent cache. i am putting my entire list in a request object, before doing an action forward to the jsp page

    Hi,
    instead of using the cache in the meta tag try with the following lines,
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("Expires", 0); Regards,
    Bala A

  • JSP pages are not refreshing under wl 6.1 sp1

              I thought this could have been a problem solved long time ago but after searched
              through this list I could not find any solutin.
              Basically any change to the JSP is not refreshed on my wl server. Even after I
              set my browser to have 0 siye disk cache, 0 siye memory cache, and set the cache
              file name to something non-exists, the cached page kept coming back! It must have
              been cached by the web server. Deleting all the tmp files under WEB-INF did not
              work. Redeploy the web app did not work. Even after I restarted the server, it
              still sent me the old pages!!
              I must have missed something here???
              Many thanks and regards,
              Charles
              

    Have a look at this page:
              http://e-docs.bea.com/wls/docs61/////webapp/weblogic_xml.html#1012760
              The parameter "workingDir" is probably what you're looking for.
              Hope that helps,
              Nils
              Charles Chen wrote:
              >
              > Unbelievable!
              >
              > Here is what I found where the problem is:
              >
              > Apparently weblogic 6.1 sp1 is compiling and cacheing the JSP pages in the directory
              > /var/tmp!! That explains why even after I restart the server and still got the
              > old page! After remove the /vat/tmp/jsp_servlet/_jsp directory, I finally got
              > my changes recompiled.
              >
              > I am sure some where there is a doc describing how to change this directory ...
              >
              > Charles
              >
              > "Charles Chen" <[email protected]> wrote:
              > >
              > >I thought this could have been a problem solved long time ago but after
              > >searched
              > >through this list I could not find any solutin.
              > >
              > >Basically any change to the JSP is not refreshed on my wl server. Even
              > >after I
              > >set my browser to have 0 siye disk cache, 0 siye memory cache, and set
              > >the cache
              > >file name to something non-exists, the cached page kept coming back!
              > >It must have
              > >been cached by the web server. Deleting all the tmp files under WEB-INF
              > >did not
              > >work. Redeploy the web app did not work. Even after I restarted the server,
              > >it
              > >still sent me the old pages!!
              > >
              > >I must have missed something here???
              > >
              > >
              > >Many thanks and regards,
              > >
              > >
              > >
              > >Charles
              > >
              ============================
              [email protected]
              

  • Loader/DNG Converter won't close after loading photos into Bridge

    This is a very recent problem. Previously, after loading photos the loader would close, Bridge would open at the folder I created through the loader and that was it. Now after all shot are loaded, Bridge opens at the last folder I had open previously and the loader remains open. Clicking on the X box won't close it. I have to go into Task Manager to do this. I tried a full re-install to no avail. I've looked at preferences and don't see anything that helps.
    I haven't done anything other than what I noted above. I tried re-installing PhotoShop and Bridge and that didn't fix the problem. The only other thing that has happened since I noticed this problem was that Windows updates automatically installed. I'm on Windows XP Pro SP3. The problem is not a show stopper but it is annoying.
    Anybody have any ideas why this would happen and how to fix it?

    OK, I tried changing the Preference by opening Bridge with the Ctrl key held down but I wasn't presented with the popup noted.
    However -- D'OH! -- last night when I inserted my card into the reader and the dialog came up asking what I wanted to use to open I noticed that it was defaulting to Bridge CS3 (I still have some CS3 software on my machine). So I scrolled down, found Bridge CS4 and all is just fine. Thanks for the helps and tips. I do appreciate it. And I hope you can forgive my brain fart.

Maybe you are looking for

  • ITunes deleted all my playlists for the THIRD time this week!!!

    This is really starting to F*(^&ing **** ME OFF!!!!! WHAT THE F#$% IS GOING ON ITUNES????!!!!!!!! SOMEONE BETTER HAVE A F#%$#ING GOOD REASON WHY THIS IS HAPPENING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • Power Nap doesn't work right in my MBA mid 2011. Anyone knows why?

    I just boght a MBA middle 2011 and power nap doesn't work right on it, specially in Mail app, where it downloads only a few mails and the rest of them are downloaded as usual, when recativate my laptop. Does anyone knows why?... i also tried to downl

  • Payment Order, Payment transaction area can not be posted

    Hi, While creating a Payment order for a current account, we are recieving the following error: 'Payment Order, Payment transaction area can not be posted' and 'Error determining the number range'. As a result Payment order is not getting created. Nu

  • Jackd - failed to open alsa seq

    I did an update last night, and on reboot this morning jackd complains that it cannot open /dev/snd/seq due to Permission denied. I have already downgraded jackd to 0.118 to no avail - other noteworthy updates last night include the kernel & udev. He

  • My iPad won't seem to update

    My iPad says it needs to update to iOS 7.0.4, but every time I click the download and install button, something inhinbits my iPad from completing its update. I've tried soft resets of my iPad and starting again but it still will not update. How do I