JSP page not refreshing in browser

Everytime I edit a JSP file, and try to refresh the JSP in the browser, I don't get an updated version... just the original page that I viewed first. Anyone got a solution?
I tried deleting the work directory under the %tomcatHome% directory, and that seems to work until I view the page, and tomcat creates this work directory again. So when I try to refresh the page, because the work folder is still there, the page does not get refreshed. Weird... any solutions? Thanks again.

I'm not sure if your using Tomcat or not but if you are give this a try:
The ROOT context is the default Web application in Tomcat, and is convenient to use when you first learning about servlets and JSP (although you'll use your own Web applications once you're more experienced). The default Web application is already enabled in Tomcat 3, Tomcat 4.0.1-4.0.3, and Tomcat 4.1. But, in Tomcat 4.0.4 it is disabled by default. To enable it, uncomment the following line in install_dir/conf/server.xml:
<Context path="" docBase="ROOT" debug="0"/>
Taken from: http://www.moreservlets.com/Using-Tomcat-4.html#Enable-Root-Context
This will make the server request a new page every time, not recommended for production apps but for development it will make life easier.

Similar Messages

  • Jsp page not refereshing in IE 6.0

    can you give me any suggestion on following issue
    I have (first.jsp)jsp in following way
    +1234
    when i click on +
    it shows like this(the records are coming from second.jsp by using azax))
    -1234
    record1
    record2
    here second,third jsp conatins same thing except third.jsp contains some buttons
    and when you click on 1234 in next window(third.jsp) it will show
    record1
    record2
    button accept
    when i click on accept button i am loadng first.jsp
    at the time of loading I have to refresh second,third.jsp
    presently I am refreshing third.jsp it is working fine
    but i was unable to refresh second.jsp
    this application running fine in Mozila(both(second.third.jsp pages are refreshing)
    In Ie that first.jsp is not refreshing(oonly third.jsp is refreshing)
    I am using following function on body onload()
    if (window.opener && !window.opener.closed) {
    window.opener.location.reload();
    it is not working in second.jsp

    Hi,
    Which IDE are you using: NetBeans 6.0, or JSE 8.1?
    Regards,
    -Brad Mayer

  • Values on the jsp page not loading after refresh

    Hi All,
    I have a problem in getting the values back onto the jsp page after a refresh. After the first refresh i get null values.
    Let me know what i should use: is it 1. request 2. application or 3. session scope? I have to keep my application running for ever (as long as the server is running) refreshing every 3 minutes. So i used application scope but in vain.
    Also i am using requestDispatcher and forwarding the req,res. I came to know that this method has some problems if we use request attributes. Do i need to use a send.Redirect instead?
    Let me know the correct procedure.
    Thanks in advance.

    Gouri-Java wrote:
    Hi All,
    I have a problem in getting the values back onto the jsp page after a refresh. After the first refresh i get null values.
    Let me know what i should use: is it 1. request 2. application or 3. session scope? I have to keep my application running for ever (as long as the server is running) refreshing every 3 minutes. So i used application scope but in vain.
    Also i am using requestDispatcher and forwarding the req,res. I came to know that this method has some problems if we use request attributes. Do i need to use a send.Redirect instead?
    Let me know the correct procedure.
    Thanks in advance.r u forwarding request to same page. ?
    try using sendRedirect with URL rewriting:
    for eg .
    response.sendRedirect("/myPage.jsp?id="+idValue+"");
    and access id on page submit.
    as
    request.getParameter("id");
    This should work .
    Edited by: AmitChalwade123456 on Jan 6, 2009 7:10 AM

  • Crystal Report Not Refreshing in browser

    Hi all,
    Am using crystal report for my web application so here am passing my parameter from jsp page
    but it is not refreshing
    For example
    I am select Month=jan my query goes this way.
    Select * from employee where month='jan' group by department order by designation
    when am intially design in eclipse in filter option am selecting 'jan' and when am running in browser am passing the same query with the parameter but here instead of 'jan' am passing month variable where my month variable changes every time according to user choose
    my crystal report is not getting refreshed ..
    hope u understood my problem
    Regards
    Vanishree.B

    Hi Tejomay ,
    I have tried that even after calling refresh() , it ;s not getting refreshed..but if am using signal table in my query  it is getting refreshed .but when am grouping with another table it is not refreshing..
    Regards
    Vanishree

  • JSP page not rendering correctly for remote system

    I have a jsp page that has an HtmlGraphicImage component that gets set by a method in a java bean using
    image2.setUrl( imageFilename );
    When I run the application on my local system (my development system running Studio Creator) the page comes up on my web browser with the proper image.
    However, when I try to access the page from a remote PC, the page comes up okay with all the static components, but the image is blank. When I look at the page source on that browser, the image url is set to blank (i.e. nothing inside quotes).
    Any ideas why this image is rendered correctly on my local system and not remotely?

    <title>Home</home>Find the mistake!

  • Tomcat 4.1.24 : JSP page displayed blank in browser

    Hi,
    I am facing a problem where a blank screen is displayed to the user in browser even though the JSp page is getting executed successfully on my Tomcat server. The application and catalina logs show no errors / exceptions, still blank screen is displayed to the user sometime. If the user clicks on browser back button, the request is processed again and the page content is displayed properly.
    I am using JDK 1.4.2_09 with Tomcat 4.1.24 on Windows 2003 server.
    Is it to do with JSP:Forward mechanism? I forward the request from one JSP to second JSP and this second JSP gets executed on server but shows blank screen.
    Requesting for help.
    Thanks in advance.
    Thanks and Regards,
    Amit Paliwal

    Hi Alisha ,
    Thanks for reply. I can not put any debug message at online page,my problem is that i can not simulate the same senario at my development site.
    Amit Paliwal

  • .asr pages not refreshing?

    I have a Flash cfform that has ActionScript the includes a
    "#include 'my_asr_page.asr'" statement. My .asr page works fine
    with the form, but when I make changes to the .asr page and
    re-upload it, my form doesn't recognize the changes I made to the
    .asr page. Refreshing both pages does not work. I can even delete
    the .asr page completely from my server, refresh the form page, and
    the form still processes the ActionScript! How can this be? Does
    the content of the .asr page get stored somewhere else, either on
    my server or local browser computer? How do I refresh the code with
    updates?
    I can upload an entirely new .asr page with a new name, and
    change the #include link. But that gets tedious fast when I'm
    making lots of changes to the .asr page and would like to see the
    resulting processing changes in the form in my browser.
    Any help or ideas?

    Work around maybe on the client side.  Go here for info:
    http://www.securiteam.com/windowsntfocus/6J00B1FHFQ.html
    It's a long read but goes into detail on side effects. 
    Also check out notes 948457 and 959877.
    Good Luck.

  • Servlet does not refresh in browser

    Hi,
    If I change a Servlet code, re-compile it and Refresh the browser (Firefox), it does not refresh. I can only get it to refresh if I re-start Tomcat (v 5.5.4).
    Is there a workaround for this please?
    I put the lines:
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    at the top of my doGet method and this does not work.
    Thanks,
    Hal.

    Hi,
    For classes, you can set the reloadable parameter in your application configuration file (in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory)
    Set it to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.
    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
    For JSPs, you can configure Jasper (in $CATALINA_BASE/conf/web.xml file) and use the reloading parameter.
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html

  • Link to page not working in browser

    Scenario: two .pdfs generated from FrameMaker with full Acrobat 7.0. Document A contains a cross-reference to a heading on page 7 of document B.
    Behaviour in desktop Reader: clicking on the link in Document A opens Document B, at page 7
    Behaviour in browser with Reader plugin: clicking on the link in Document A opens Document B, at page 1
    The second behaviour is obviously less help to the [human] reader. Does anyone know of any workaround?
    [note: not random cross-posting, but I will post this in the FrameMaker forums as well]

    I am also facing the same issue.Can anyone suggest a workaround for this issue.

  • How can I make the jsp pages not displayed by using the navigation class?

    I'm right now implementing a function on my program GUI . It's like whenever I click "STOP THE SERVER" button on the main page, I need those jsp pages relates to the server running to be not displayed, even by directly type in the URL(that's just stay in the main page), How can I do that? I heard that a navigation class might do it, but I'm not sure how. It might be great if some experts could help me!! Thanx a million !!
    Shannon

    See:
    * [[Removing the Search Helper Extension and Bing Bar]]
    You can use one of these extensions to adjust the default font size and page zoom on web pages:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • JSP page not rendering in IE

    Hi,
    Here is a JSP page I'm working on for school:
    http://lectura.cs.arizona.edu:23456/main.jsp?section=login
    It renders fine in Mozilla, but I get a white page in IE. If you "view source" in IE, the code is there, and I have no idea why.
    I tried creating another simple jsp page and a simple html page, which are in the same directory:
    http://lectura.cs.arizona.edu:23456/index.jsp
    http://lectura.cs.arizona.edu:23456/hello.html
    Both show up in Mozilla, but not in IE.
    Thanks in advance for any help!

    <title>Home</home>Find the mistake!

  • JSP pages not working

    I installed Apache 2.0.47, JSDK 2.0, and JServ 1.1.2 and copied all my JSP files in the htdocs directory in the Apacche installed folder. When I accessed one of my JSP page using IE 6.0, the file contents are loading, not the page! what is wrong with me? where I have to copy the .class files?
    On replying for this doubt, you are doing a great job. Thank you.

    You probably have to do something special to tell Apache to forward servlet/JSP requests to JServ.
    I've done such a thing with Tomcat. Look at the docs for JServ to see what they expect you to do.
    Why JServ? Why not Tomcat? It's free, and there's lots of on-line docs and books to help you get started.
    It's obvious that you're just starting with servlets and JSPs, Sunil. Go download Tomcat, get a couple of good books, and start reading and programming. You're not going to get your project off the ground by posting ill-posed questions to these forums every time you run into difficulty. Just some advice. - MOD

  • Changes in jsp page not reflecting

    Hi,
    I have a requirement where I have to customize the self registration page in OIM, i.e.
    when a user enters uid, it should be checked for its availablity, that is if the user id is already present in OIM then we may suggest him a set a user ids from which he can select.
    For this, I am planning to have a button "Check UID availability" next to uid text field and then on clicking that button we may proceed with our functionality.
    To achieve the very first step, i.e. creating the button, i edited /tiles/tjspSelfRegistrationTiles.jsp and then created and replaced the old webapp.war file with the new one and then run patch_jboss.cmd file which builds the file successfully.
    But, the problem I am facing is that any changes made to this jsp are not being reflected.
    Any pointers to reflect the changes made in jsp would be helpful.

    Well, thats a strange case with JBoss. I never find these JSP's on the deploy directory. The approach which I follow in such cases is as follows:
    1) Take a back-up copy of XellerateFull.ear file from <OIM_HOME>\xellerate directory.
    2) Extract the contents fo this file to any temporary directory. This will contain a war file xlWebApp.war
    3) Extract the content of this file as well.
    4) Now you will be able to see all the JSP folders and struts xml etc.
    5) Update the required JSP.
    6) Bundle the xlWebApp.war file again.
    7) Bundle the XellerateFull.ear file again.
    8) Now since you have a complete ear file. Directly copy this to JBoss deploy directory. Overwrite the existing file:
    <JBossHome>\server\default\deploy\
    9) Restart the server.
    Now all the files would be visible in the directory location as mentioned by you.
    Thanks
    Sunny

  • JSP pages not displaying images in Jdeveloper

    HI
    I am using lot of images in the JSP page.But the JSP pages are not displaying images in Jdeveloper in Design preview.
    Do I need to install Apache for that?I have not installed Apache yet.
    If so then what are the configuration or settings I have to do in Jdeveloper for Apache.
    Thanks in Advance.
    Apps user

    Which JDeveloper version? where are the images stored? can you share the code you are using to show such an image?
    Try this - create a JSP page and drag an image from your desktop onto the JSP page - this will add the image to your project - does this work?

  • How to keep user enter value in textbox even if JSP page get refreshed.

    Hi Experts,
    In My JSP Page i have one text(customer Name) and number of checkboxes and radio buttons.
    My Problem is:
    if user enter some value in Text Box and after that user clicks on some radio button becouse of some action on radio button page get refresh and also the value enter by user in text box get vanish.
    I want keep text box value as it is even if page get refreshed becouse of some action.
    Is it any setting in Strust framework for this.
    I am using Struts Framework.
    Please let me know if need more information

    Sorry, I don't clearly understand the question and the horrible code (Java code doesn't belong in JSPs) doesn't make it more easy to understand.
    Best what I can guess is that you need to learn about passing request parameters/attributes in JSP and the possibilty of storing attributes in the session. And based on the code, also learn how to separate the data, business and presentation layers properly.

Maybe you are looking for

  • T-code in CRM 5.0 for component detail ? ( corresponding to bsp_wd_cmpwb)

    Hi, How are you? I need a help If anyone who has worked on CRM 5.0. In CRM 5.2/CRM 7.0, particular component detail can be seen through u2018BSP_WD_CMPWBu2019 transaction code. What is corresponding transaction code in CRM 5.0? Through u2018BSP_WD_WO

  • IPhoto is very slow in loading pictures

    We have a brand new 13" macbook air which if fully optioned out.  We use a 1TB external drive for the iphoto library.  There is about 400 GB of data on it, including photos and videos.  My wife is saying it takes an hour to download 45 pictures from

  • Unable to delete country groupings from GTS system

    Hello GTS - Gurus, I want to delete the Country Grouping from GTS system But when I try to do so, I am getting the below error There are /SAPSLL/CCGR valid entries for object XXXX and attribute "X" There are /SAPSLL/LEGCON valid entries for attribute

  • T-code:FB60 and MIRO business place validation Section Code mandatory

    Hi, My requirement is to make mandatory in MIRO and FB60  field: BUPLA-business place and field:SECCO-Section Code. I have done validation through GGB0 . i am facing problem prerequisite: syst-tcode = 'FB60' check bseg-bupla   <>   ' ' and  bseg-secc

  • Unable to Connect to Universal Content Management (UCM) Repository

    Hi, I am a newbie in Webcenter Portal application. Am facing an issue while trying to connect to UCM Repository. Its throwing the following error: Performing action Content Repository...[ from oracle.jdeveloper.appresources.ApplicationResourcesWindow