Dynamically load the content without re-starting the server

Let me explain the scenario.........
I have a JSP in which I call a method written in a different class( java file).
Now, when I change the content of the method in the class and compile it, how can I get the updated stuff in the JSP without re-starting the server.
Even though I have to re-deploy the changed class, I need to re-start the server to get the updates effective.
The env set up is on Tomcat
fun_one

FUN_ONE, I am using Tomcat 5.0 (though not 5.5), and have a Test application that I do not use WARs to deply. The Context is set with reloadable="true".
I have this simple bean:
package jsp.beans;
public class ItemBean implements java.io.Serializable
     public String getjunk() { return "Hello"; }
} And this JSP
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  </head>
  <body>
    <!-- Display the session ID for this user -->
    <p><c:out value="${pageContext.session.id}"/></p>
    <!-- Get the junk string from the ItemBean -->
    <p><jsp:useBean id="it" class="jsp.beans.ItemBean"/>
    <c:out value="${it.junk}"/></p>
  </body>
</html> I run the JSP, then change the text returned by the bean, recompile it, then reload the JSP (force reload). The session id remains the same, and the text changes. Does this work on your system? (note, you do have to restart your server once after you set the Context to be reloadable="true")

Similar Messages

  • When I load Safari on my IPAD2, the web page comes up, but I can't scroll down the page. No matter what web page I go to the content stays darker than the navigation bar. This just started today. All other applications work fine.

    When I bring up Safari on my IPAD2, the web page comes up, but I can't scroll down the page. This just started today. No matter what web site I go to, the content is darker than the navigation pane.

    If it's happening on all sites, then assuming that it's Safari that you're using, have you tried clearing it's cache : Settings > Safari > Clear Cache (other browsers should have similar options, possibly within the actual app instead of within Settings). You could also try closing the app completely : from the home screen double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app (or whichever browser you're using) to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    If it's only happening on a particular site then there may be content on that site that isn't supported on the iPad e.g. flash, java, silverlight

  • Reloading JavaBeans in a JSP without re-starting the server

     

              The JSP will get recompiled but the bean is already sucked in by the server. Even if you break the session by doing reqest.getSession.invalidate() at the end of your JSP - it still persists. Even try removing your bean class and you will still see that the page is working. That proves it doesn't use .class anymore. However when you touch your .jsp at this time and try to re-display it in the browser you will get compilation error because .class cannot be imported. When you put a new class and repeat it, it compiles against that new class but still executes with the old one. Until you restart the WebLogic server...
              "Carl Ansley" <[email protected]> wrote:
              >
              >I've found that you need to "touch" the JSP that references the javabean,
              >i.e. to force the server to recompile. Plus you'll need to create a new
              >session if the bean has session scope.
              >
              >"Eli Tucker" <[email protected]> wrote in message
              >news:8hom7d$puk$[email protected]..
              >> Hello.
              >>
              >> I have a JSP page that uses a simple JavaBean (not an EJB). If I modify
              >the
              >> bean, the server appears to use the old version of it. The only way I've
              >> found to force the server to use the latest version is to re-start the
              >> server.
              >>
              >> Is there a way to use the latest class without re-starting the server?
              >I'm
              >> using WebLogic Server 5.1.0 on an NT system.
              >>
              >> Thanks,
              >> Eli
              >
              >
              >
              

  • How do I get the line above the tasks, which allows you to edit the cell contents, without double clicking the cell?

    As title says.
    Normally in Gantt Chart View, above the tasks there's a line which displays the contents of the cell you have selected, and allows you to edit the contents without having to double click the cell.
    In my case, this line is not there, and it is slightly hindering my work.
    So, does anyone know where I should go to re-enable this line?
    Thanks a lot!

    Hi,
    Go to file, then options, then display and check the "entry bar" option.
    http://www.manageprojectsonsharepoint.com/blog/2012/04/02/microsoft-project-quick-tip-entry-bar/
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry

    Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
    Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
    And click on the "Using Spry.Utils.updateContent()"
    The 3rd example shows how to use a fade transition whenever the content changes.
    I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
    Tabs code;
    <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">
                   <table class="Button"  >
                        <tr>
                        <td style="padding-right:0px" title ="Home">
                        <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
                        </td>
                        </tr>
                   </table>
              </li>
    etc
    etc
    etc
    and the panel code:
    <div class="TabbedPanelsContent" id="Home">
         CONTENT
    </div>
    I hoped i can use the example code from the link into my tabbed panels.
    I thought this code:
    onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
    could be added to the tab code like this:
    <a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
    But the content doesnt fade...
    I know i need to change the header etc.
    The following is from the link:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Aquo Events</title>
    <script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
    <script src="../../../includes/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function FadeAndUpdateContent(ele, url)
    try {
         Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
              Spry.Utils.updateContent(ele, url, function() {
                        Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
    }catch(e){ alert(e); }
    -->
    </script>
    <style type="text/css">
    /* IE HACK to prevent bad rendering when fading. */
    #event { background-color: white; }
    </style>
    </head>
    So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
    Is there a way to keep my tabbed panel (or change as less as possible) and let
    A. The fade work
    B. The loading work.
    The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
    And the fading part is just because its nice...

    It doesnt show in the post but off course i changed this link;
    "data/AquoThonFrag.html"
    into;
    "javascript:TabbedPanels1.showPanel(1);"
    I must say i dont know if this even works...

  • I have a keynote presentation that includes a significant amount of video.  When I edit the keynote slides (not the video slides) how can I save the changes without re-saving the videos (because that takes a VERY long time)?

    I have a keynote presentation that includes a significant amount of video.  When I edit the keynote slides (not the video slides) how can I save the changes without re-saving the videos (because that takes a VERY long time)?  I edit the presentation depending on the audience to which I am presenting.

    If you add a new  slide with just a text box (therefore a very small amount of data),  to an existing presentation then save,  Keynote will only save the new content to the file,  it wont save  pre-existing content as its already included in the file.
    The time  taken to "save" will be very much shorter than a "save as" when all of the existing content is saved again.

  • Captivate 5: is there a way to prevent someone from taking the quiz, without going through the conte

    Hi.
    Is there a way in Captivate 5 to prevent someone from clicking on the quiz to take it, without having gone through the content?
    CB.

    Hi.
    Regarding preventing someone from taking the quiz without going through the content...
    I decided to separate the quiz out of the project as a separate item.
    We are going to use a Learning Management System which will house the module to control the access.
    The LMS can be set to not allow people to click on the Quiz link, until they have gone through the content.  (So they cannot by-pass the content and just do the quiz).
    I was trying to find a way to control this from within Captivate 5 and keep people from being able to click on the quiz without going through the content. (And keep the quiz inside the original project).
    However, this LMS solution will work for this module.
    Thanks everyone!
    CB

  • Something went wrong. To try again, reload the page and then start the workflow

    We have a SP 2013 farm with Aug 2013 CU. While trying to start an SPD 2013 platform workflow from browser I get an error "Something went wrong. To try again, reload the page and then start the workflow."
    I could also see the following in ULS:
    System.NotSupportedException: Not supported in Windows authentication mode.
    at Microsoft.SharePoint.IdentityModel.SPIdentityContext.Create(SPUserToken token, Boolean
    isShareByLinkGuestUser)
    at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.GetApplicationUserCredentials
    (WorkflowServicesContext context) StackTrace:
    at Microsoft.Office.Server.Native.dll: (sig=35339f9c-8871-4ef1-9118-9c1bd0cb6598|2|
    microsoft.office.server.native.pdb, offset=131CE)
    at Microsoft.Office.Server.Native.dll
    This seems to be a bug and is solved in Mar 2013 PU but I have Aug CU. The web where I have this workflow has classic mode auth. Has anyone come across this error before?
    I have checked the following:
    1. Service
    Bus Gateway and Service
    Bus Manager Broker services are started
    2. Authentication for this web application is Windows NTLM
    -- The opinions expressed here represent my own and not those of anybody else -- http://manojvnair.blogspot.com

    Thank you for the steps.
    I have checked User Profile service and it is started and running fine. The user who is trying to start the workflow (me) has a profile created. I'm not starting wf as system account and my account is not added to web application user policy. Workflow isn't
    even firing when I try to edit list item.
    I tried to edit the list item as system account and workflow started this time. But it does to suspended state with the following message:
    RequestorId: 54f4a912-ab0b-a1f2-0000-000000000000. Details: RequestorId: 54f4a912-ab0b-a1f2-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401
    {"SPRequestGuid":["54f4a912-ab0b-a1f2-be58-305dd8b6eab4"],"request-id":["54f4a912-ab0b-a1f2-be58-305dd8b6eab4"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["2"],"SPIisLatency":["1"],"MicrosoftSharePointTeamServices":["15.0.0.4535"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Date":["Thu, 24 Apr 2014 15:32:05 GMT"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["NTLM"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    WhenI try to start wf I can see the first error:
    System.NotSupportedException: Not supported in Windows authentication mode.    
     at Microsoft.SharePoint.IdentityModel.SPIdentityContext.Create(SPUserToken token, Boolean isShareByLinkGuestUser)    
     at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.GetApplicationUserCredentials(WorkflowServicesContext context) StackTrace: 
     at Microsoft.Office.Server.Native.dll: (sig=35339f9c-8871-4ef1-9118-9c1bd0cb6598|2|microsoft.office.server.native.pdb, offset=131CE)
     at Microsoft.Office.Server.Native.dll: (offset=21B4D
    -- The opinions expressed here represent my own and not those of anybody else -- http://manojvnair.blogspot.com

  • How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?

    How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?

    marykaymaas wrote:
    How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?
    either Select All and drag to the left (turn on the Lock Automation menuItem if you have any automation curves)
    or
    use the Cycle Region to export the exact length you wish:
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportexactlength
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How to deselect the text when I start the program?

    how to deselect the text when I start the program?
    photo:

    wants the blue background could not be seen:
    Code Form:
    Public Class Form2
        Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        End Sub
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            If ComboBox1.SelectedItem = "The Sims 4" Then
                Form3.Show()
            Else
            End If
            If ComboBox1.SelectedItem = "The Sims 3" Then
                Form4.Show()
            Else
            End If
        End Sub
    End Class
    There's a lot wrong with all of that.
    I'm sorry that I won't be able to help...
    Still lost in code, just at a little higher level.

  • Removing Items from Gridview and refreshing the gridview without redirecting to the same Page.(Windows Phone 8.1 Xaml)

    I have a gridview with a Usercontrol as its itemtemplate. In the Usercontrol I have a flyout attached to it using which the user can choose to delete the entry. After deletion how do I remove the entry from the gridview without redirecting to the samePage
    and removing the backstack entry?
    Please note that I am deleting/modifying the itemssource in the usercontrol's codebehind.

    Hi Rajiv,
    Where you have attached flyout. Which UI control. Is it border?? What type of UI control inside the DataTemplate?
    As normal, when user clicked on the delete item, you can retrieve the selected entry as single item of an observablecollection and pass into your ViewModel class and remove it. 
    The item will be removed at Runtime without refreshing or redirecting and there will a animation (transition) in the GridView when it removing.
    If this content doesn't match your answer. Please ask me again.
    Thank you

  • Full backup of the KM without backing all the SAP EP 7.0

    Hello,
    I want to know how can I do a Full backup of the KM without backing all the SAP EP 7.0
    Thank you in advance.
    Pablo Mortera.

    Depending on what you want with the Backup you could:
    1. Make a KM transport --> select all the content... it will generate a .KMC object
    2. Create a copy of all documents to a seperate location using WebDAV (with or without Portaldrive)
    But if you realy want a regulair backup proces that is scheduled then you do not have any onther choice then:
    FSDB --> backing up both the DB and the Filesystem. Because it are seperate backups you must be 100% sure that there are no alterations between both backups so a offline backup would be the savest in this case.
    DB --> backing up the DB.
    Also read the recommendations at:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/62/468698a8e611d5993600508b6b8b11/frameset.htm
    Cheers,
    Benjamin Houttuin

  • How can I merge folder with the same name so that the content does not replace the other

    How can I merge folder with the same name so that the content does not replace the other?

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • Ondemand subreport or a drilldown, I want the content to appear in the same tab that is in the main report

    <p><strong>When I click on the ondemand subreport or a drilldown, I want the content to appear in the same tab that is in the main report itself. How to make this work? As of now it opens up a new tab for drilldown or ondemand subreport? How to make this work? I want any expert here to throw some light on this?</strong></p><p>Plz mail me at    [email protected] </p>

    I fixed this problem. It was pretty easy.
    First, in the address bar, type in " about:config " .
    When it asks if you are sure about making changes & it may void the warranty, click "yes--I promise I'll be careful" or something along those lines. (I heard there is no warranty, & it's just a joke)
    Once you get to the new screen, find " browser.link.open_newwindow "
    You will see the # 3 on the same line. Change that value to 1.
    Wah-la! :)
    http://kb.mozillazine.org/Editing_configuration
    http://kb.mozillazine.org/Browser.link.open_newwindow

  • I have an Apple Powerbook G4, and my monitor doesn't function. I have an external display Monitor, however it's stuck in extended screen mode. How do I get it to mirror or duplicate the display without use of the on-board?

    As i had said, I have an Apple Powerbook G4, and my monitor doesn't function. I have an external display Monitor, however it's stuck in extended screen mode. How do I get it to mirror or duplicate the display without use of the on-board? Is there a Fn key combo i'm missing or is the issue more serious then i realize? any and all help and hints would be greatly apprichiated, thanks in advance.
    -Powerbook User

    The PowerBooks have an F-key that toggles mirrored and extended mode. My PB is loaned out right now but I think it was f7. The keycap has an icon on two overlapping rectangles, as I recall.
    EDIT: Yes! Found a pdf of the PB manual it shows F7 is the toggle:

Maybe you are looking for

  • Password not working in Entourage or Safari

    Every time I try to send/receive messages in Entourage or Mail, it tells me that my security or password settings may be incorrect, when I know they are correct. This has suddenly started happening for reasons I don't know. Any ideas?

  • Unable to reply to a specific discussion

    Hello SCN-Team, when I try to reply to the discussion The specified item was not found. I get the following error message (in a nice red font): An error occurred while trying to submit your post. Please try again. And when I switch to the advanced ed

  • Imported graphic from Photoshop is pixelated

    I have a problem when trying to import any graphic file, even a .psd file, in flash pro. The problem is that when imported, the graphic gets pixelated and the edges of of the graphic does not look smooth (not curves but pixelated lines). Interestingl

  • Audio fix for bum recording - faltering mic

    I was given a recording that recorded about 3 seconds okay and then the rest of the recording is missing audio on the left side. This cannot be re-recorded, so I've got to make 'as-is' work. Is there anything I can do in garageband to add sound for t

  • Airport Extreme not loading some web pages

    For the last couple days, my Airport base station has been acting up. I've had it for a month or so, and it's been fine since then. However, recently I can't load some pages (the Apple Store is one of them) and other pages load very slowly (the Apple