BACK button difference between Weblogic and J2EE server

          Hi Everyone,
          I have a J2EE application implemented mainly with JSP and EJB, which can run on
          both J2EE and Weblogic Servers seperately. When running on either of them, the
          server acts as both a web and application server.
          It is my understanding that it first goes to the cache in the browser when you
          try to revisit the previous page (JSP files) by clicking the BACK button in the
          browser. If the page is there, it just displays that page from the cache. If not,
          it will go to the server to retrive (execute) that page.
          When I run my application over J2EE server and try to visit the previous page
          by using the BACK button in the browser, it does this way correctly. But when
          I run my
          application over Weblogic server, it always goes to the server and execute the
          JSP file again in the server, rather than simply retriving that page from the
          cache. If your JSP file is simply doing data retriving, that is fine. But if it
          is doing data inserting, it will insert your data again. This is not good.
          I know that the Weblogic server is mainly an application server. But I am not
          sure when it acts as a web server,
          why it works differently from J2EE which also can acts as both an pplication and
          a web server. Does anyone have any ideas or suggestions about this?
          Thanks a lot.
          -John
          

I believe that the correct behaviour is to rerun the .jsp page unless the
          user specifically sets the header to allow the browser to cache it. That
          being said... You should never make a web application that can be broken by
          the user hitting "reload" or the browser automatically retrying. An
          application like this is very fragile and will probably break in practice.
          I suggest that you either make all your pages idempotent or you keep track
          through a hidden form field a transaction id and only allow the execution of
          any particular transaction once. As far as WebLogic not being a good web
          server, I would say that with 6.1 you get most of the management advantages
          of using a separate web server and also most of the static file performance
          you will find with apache or IIS.
          Sam
          "John Wang" <[email protected]> wrote in message
          news:[email protected]...
          >
          > Hi Bruno,
          >
          > Thank you for your prompt reply.
          >
          > I think I might not explain my problem clearly. My application
          > is in developing stage now. So we are just working on a single
          > serevr which can acts as both a web and an application server.
          > Later we are going to distribute our application into a web and an
          application
          > seperately.
          >
          > As you said, it seems that my problem is because the weblogic server is
          mainly
          > an application server and does not act as a web server very well. So if I
          distribute
          > my application into both a web and an application servers, it should be
          fine,
          > since it is ok when I run it over the J2EE server. Is this correct?
          >
          > In other words, I can say that the J2EE server is configured better in its
          role
          > as a web server than the weblogic server, isn't it?
          >
          > In addition, all my JSP files are only dealing with catching
          > data from user input and displaying data. Data inserting is done
          > by EJB and JavaBeans through the JSP files. Because those JavaBeans in the
          JSP
          > files, each time when I use the BACK button, it will invoke those
          JavaBeans and
          > EJBs through the JSP files and do things like inserting in the background.
          That
          > is what I mean in my previous message.
          >
          > Thanks.
          >
          > -John
          >
          > "Bruno" <[email protected]> wrote:
          > >
          > >Hi John,
          > >
          > >You should use a real Web Server on the front side of your application.
          > >Weblogic
          > >is mainly an application server that has to be used in middle tier. But
          > >it's not
          > >a good Web Server. Like almost all J2EE application. You should use a
          > >separate
          > >web server like apache, optimised to serve static file. Furthemore, this
          > >approach
          > >will enable you to physically separate the two servers for a better
          security.
          > >Anyway, usually jsp files are dynamic files and are not intended to be
          > >totally
          > >cached (except in special cases). I think you should just use JSP to
          > >display data.
          > >If you want to do data inserting, you should use EJB or JavaBeans for
          > >that rather
          > >than JSP.
          > >
          > >Hope it helps
          > >
          > >Regards
          > >
          > >"John Wang" <[email protected]> wrote:
          > >>
          > >>Hi Everyone,
          > >>
          > >>I have a J2EE application implemented mainly with JSP and EJB, which
          > >>can run on
          > >>both J2EE and Weblogic Servers seperately. When running on either of
          > >>them, the
          > >>server acts as both a web and application server.
          > >>
          > >>It is my understanding that it first goes to the cache in the browser
          > >>when you
          > >>try to revisit the previous page (JSP files) by clicking the BACK button
          > >>in the
          > >>browser. If the page is there, it just displays that page from the
          cache.
          > >>If not,
          > >>it will go to the server to retrive (execute) that page.
          > >>
          > >>When I run my application over J2EE server and try to visit the previous
          > >>page
          > >>by using the BACK button in the browser, it does this way correctly.
          > >>But when
          > >>I run my
          > >>application over Weblogic server, it always goes to the server and
          execute
          > >>the
          > >>JSP file again in the server, rather than simply retriving that page
          > >>from the
          > >>cache. If your JSP file is simply doing data retriving, that is fine.
          > >>But if it
          > >>is doing data inserting, it will insert your data again. This is not
          > >>good.
          > >>
          > >>I know that the Weblogic server is mainly an application server. But
          > >>I am not
          > >>sure when it acts as a web server,
          > >>why it works differently from J2EE which also can acts as both an
          pplication
          > >>and
          > >>a web server. Does anyone have any ideas or suggestions about this?
          > >>
          > >>Thanks a lot.
          > >>
          > >>-John
          > >>
          > >
          >
          

Similar Messages

  • Difference between J2SE and J2EE...

    Hi all. I was wondering what the difference between J2SE and J2EE were. I mean in the code structure. Are the packages the same, like Swing, IO, things like that. I'm a bit of a beginner in Java, only been messing around with it for about 6 months now kind of in my spare time, and I know I'm in now way ready for J2EE, but it's something I think I'd like to maybe look into. I know it's for Enterprise Applications, much bigger scale than I'm used to, but fundamentally, how is it different? Different coding conventions? New packages not in J2SE? I hope what I want is coming across okay. Thanks for all the input.
    James

    J2EE defines a large number of specifications, in addition to J2SE. Examples are the Servlet, JSP, JMS, and EJB specifications. Most of those specifications are designed to have implementations running inside an Application Server. There are free implementations available such as JBoss (combined with for example Tomcat), and I think youre best bet to learn is to download one of those and go from there. Servlets and JSP are a good beginning, and then maybe move on to EJB and the rest.
    Br - J

  • What is the difference between JDK and J2ee

    Could someone explain, in simple terms, what is the difference between JDK and J2ee. I am trying to understand the difference.
    THanks

    Could someone explain, in simple terms, what is the
    difference between JDK and J2ee. I am trying to
    understand the difference.You can practice on this one first. What's the difference between chalk and cheese? No just kidding.
    A JDK is a set of tools for Java development including compiler, runtime system and standard libraries. J2EE is the enterprise version of the Java technology platform (it's one of three). To use it you download the proper JDK's.

  • Difference between ITS and WAS server

    difference between ITS and WAS server

    Hello Pradeep,
    The ITS is the Internet Transaction Server.  WAS is Web Application Server.  I'm not sure how to compare the two because the WAS from Basis 6.40 and higher includes the ITS.  I think the question you wanted to ask is the difference between the Standalone ITS and the Integrated ITS???
    The Standalone ITS is installed on a web server (IIS or Apache usually).  It could also include another server that we call the AGate. 
    The Integrated ITS comes with the WAS Basis 6.40 and higher.  Therefore not needing a separate web server.
    There is also a note that lists some differences of the two.
    Edgar

  • What is difference between Weblogic and OSB

    Hi,
    The title says it all.
    What is the difference between Oracle WebLogic and Oracle Service Bus?
    Assuming both products are part of the Oracle strategy, when would I use each product?
    I am really struggling as I cannot find a link with this information.
    Many thanks
    Jason

    Jason,
    Weblogic is application server. Service Bus is a product which runs on top of Weblogic.
    You can find plenty information about both products on the web.
    Regards,
    Milan

  • Differences between Robohelp and Robohelp Server

    I am in the process of evaluatinf Robohelp. I have found out
    there are 2 versions: Robohelp and Rohohelp Server. can someone
    list the differences in these products or direct me to a
    link/document where I can find this information?
    Thanks in Advance
    Rodman Veney

    Hi, Rodman
    You may find this article in the Adobe Developer Center
    helpful as well. It refers to RoboHelp Server 6, but virtually all
    information remains relevant for v7. As Rick says, "Pro" is simply
    the same as WebHelp or FlashHelp, but the content is published to
    the RoboHelp Server so that you can get the benefit of user
    feedback reports and the other features described here:
    http://www.adobe.com/devnet/robohelp/articles/rhserver.html
    Thanx
    John

  • Sorting differences between Oracle and SQL Server

    Hello All,
    This question is related to both Oracle and SQL Server
    I have a requirement where I want to compare 2 tables line by line. One table is in Oracle and other table is in SQL Server
    And suppose that both of the tables don't have a primary key. Now when I sort the records using order by clause for a column then -
    Rows having null values in that column of Oracle are placed at the bottom.
    Where as Rows having null values in the same column of SQL Server are placed right at the top.
    How can I make either of them to behave like other.
    My sole aim is to have same order of occurrence of rows in both Oracle and SQL Server tables so that I can compare them line by line.

    For example :
    select * from emp order by comm;
    So all null value in comm column are at the end.
    Now if you wish to get them on the top of select output then :
    SELECT EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,NVL(COMM,0) COMM,DEPTNO FROM EMP ORDER BY COMM;
    Means i am using NVL (oracle function) function. If comm column is having null value it will converted to zero value at the time of exectuion of select query.
    So, now comm column is having zero value in select output and SQL Server is having nulls at the top. I do'nt know who to make nulls to zero in SQL Server. So issue solved.
    HTH
    Girish Sharma

  • What is the difference between mysql and mysql server

    Hi,
    I notice that mysql and mysql server has been used interchangeably, but are they the same thing? could somebody give a brief explanation about this?
    Many thanks.

    Yes. they are the same.

  • Difference between webserver and Application server

    Is there any way to stop the webserver but not the application server.
    Do they run on the same port? How is that possible?

    Is there any way to stop the webserver but not the
    application server.It depends on server.
    Do they run on the same port? no

  • What is the difference between BW and content server?

    I remember some years ago, they were the same .
    Now are they different?
    Please help. Points!

    Yes. they are the same.

  • Differences between Weblogic Server and Weblogic Server Suite?

    Hi
    What is the differences between Weblogic Server and Weblogic Server Suite, beside licens costs?
    Regards
    /Martin

    WebLogic server standard edition, you get the WebLogic with no clustering.
    Clustering is available in the WebLogic Enterprise Edition.
    The WebLogic Suite also gives you Coherence and JRockit real-time
    A desciption of the various products can be found here: http://www.oracle.com/us/products/middleware/application-server/index.html

  • Difference between Sharepoint 2007 ,sharepoint server 2010 and sharepoint 2013

    Difference between Sharepoint 2007 ,sharepoint server 2010 and sharepoint 2013
    Saidireddy

    Hi
    your little question, could have a big big answer, or answers ;)
    To complete your question, ai will try
    Difference between Sharepoint 2007 ,sharepoint server 2010 and sharepoint 2013 and Office 365
    Isn't a simply an unique answer and deppends on your need , business needs, and you infrastructure. Depends also which type ( Foundation ( which is free ), Standard/ Enterprise )
    Depends on you to read, learn and ask , punctually about one issue/problem/request
    I recommend you to bing the net
    http://www.bing.com/search?q=sharepoint+2007+vs+2010+vs+2013&pc=MOZI&form=MOZSBR
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • What are the Basic Differences between Oracle and  MS-SQL server Database?

    Hello,
            anybody pls Guide me about the Differences between Oracle and MS-SQL server Database.and also IBM Databases also
    Regards,
    Balaram

    SQL Server only works on Windows-based platforms, including Windows 9x, Windows NT, Windows 2000 and Windows CE.
    In comparison with SQL Server , OracleDatabase supports all known platforms, including Windows-based platforms, AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, Sun Solaris and so on.
    The SQL Server  advantages:
    SQL Server  holds the top TPC-C performance and price/performance results.
    SQL Server  is generally accepted as easier to install, use and manage.
    The Oracle  Database advantages:
    Oracle  Database supports all known platforms, not only the Windows-based platforms.
    PL/SQL is more powerful language than T-SQL.
    More fine-tuning to the configuration can be done via start-up parameters.
    Samrat

  • There was an error communicating with the server. Click on the back button in you browser and try resubmitting the form.

    I've had several users complain of receiving this message after they have filled out and submitted a form.
    There was an error communicating with the server. Click on the back button in you browser and try resubmitting the form.
    However the data is being saved in forms central. I can't duplicate the issue on my end but it seem to be happing frequently with other users.

    Do you mind emailing the URL of your fillable form to me ([email protected]).
    I would like to investigate as to what the issue might be with Internet Explorer.
    Sorry for the inconveniences.
    Gen

  • What is their difference betwwen  Sun ONE Application Server  and J2EE serv

    Sun ONE Application Server is Sun implementation of J2EE server.
    But it seems even no Sun ONE Application Server, use J2EE SDK command
    j2ee -verbose
    we still can launch an Application Server that support EJB, JSP....
    what is their difference betwwen Sun ONE Application Server and J2EE server provided by J2EE SDK ?
    Thanks,

    Sun ONE generally refers to the Sun ONE Application Server version 7.x. This is a J2EE 1.3 compliant application server from Sun. Sun also released a Reference Implementation version (RI) as a requirement of the J2ee 1.3 spec. This is the J2EE server you are refering too. The Sun ONE Application Server 7 is a more robust production ready App Server.
    Going forward, Sun combined the 2 seperate groups to include just 1 release. The J2EE 1.4 Reference Implementation is the Sun Java System Application Server Platform Edition version 8. SJS AS 8 PE is both free and production ready. Other version will include High Availability, Managing and Monitoring features.
    -Jeff

Maybe you are looking for

  • Firefox mouse gestures suddenly stopped working.

    My back or forward page now only see to reload the page instead moving back or forward a page. This was working fine seemingly no changes. The other odd thing is that when browsing a site like Reddit, once the back gesture is done and it is within th

  • How does iMovie store the original video?

    I have some video files on an external HD from my old computer with iMovie 08. On my new iMac with iMovie 09, I have opened up one of those video files, or imported it. My question is this: Is there any need to keep the original file from my old comp

  • Inaccessible statement error in upgrade

    A function module has a clear statement in the top include and works fine in 46c. It is now reporting as error "Statement inaccessible" in Ecc6. Has anyone faced a similar issue? What is the fix? Andrew

  • Time machine now only has one network, where has the second gone?

    suddenly my time machine is only showing one wireless channel to use, when previously there were two. how can i get the two networks up and running again?

  • When firefox freezes cant shutdown firefox using task manager

    Sometimes when im surfing on internet firefox just stop to working properly and dont open any website or domain or anything, just can access to internet, but is not a ISP failure because i can keep chatting, skype, irc, and also navigating using inte