File not refreshing and error problem

well i have 2 problems..
first:
i dont know why a jsp file does not reload to the edited version
meaning lets say I have a jsp file doing something it loads up fine and does I edit the file and try reloading the old copy keeps on coming back..
there are times when the new copy loads up but that is rare..
second can anyone tell me what is wrong with this code.. I cant figure out what is wrong with it.. only in the <form></form> tags
because rest of the code is fine
i keep on getting nullpointerexception i dont understand why
<%@ page import="java.io.*"%>
<%@ taglib uri="taglibdb.tld" prefix="sql" %>
<html>
<head>Admin Property</head>
<body>
     <form name="addproperty" method="post" action="../servlet/PropertyServlet">
     <% if (request.getParameter("action").equalsIgnoreCase("edit")){
     %>
          <input type="text" name="val" value="<%=request.getParameter("val")%>">
          <input type="text" name="property" value="<%=request.getParameter("property")%>">
          <input type="submit" name="editproperty">
     <% } else { %>
     <input type="text" name="property">
     <input type="submit" value="addprop">
     <% } %>
</form>
<sql:openConnection driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/mydb" user="guest" password="guest" id="A" />
<sql:ifError id="A">
<br>Could not connect to database
</sql:ifError>
<sql:setQuery id="A" query="select * from PROPERTY" res="B"/>
<table>
<sql:forEachRow res="B">
<tr>
     <td><sql:getColumn position="1" res="B"/></td>
     <td><sql:getColumn position="2" res="B"/></td>
     <td>">Delete...</a></td>
     <td><a href="../jsp/property.jsp?action=edit&val=<sql:getColumn position="1" res="B"/>&property=<sql:getColumn position="2" res="B"/>">Edit...</a></td>
</tr>
</sql:forEachRow>
</table>
<sql:closeConnection id="A"/>
</body>
</html>
if i change the form part to:
<form name="addproperty" method="post" action="../servlet/PropertyServlet">
     <input type="text" name="property">
     <input type="submit" value="addprop">
</form>
it works fine the way it is suppose to

In case you are running Tomcat 4.1 the java file and class file of your jsp is located in Tomcat 4.1/work/standalone/.. and your file should be named something like MyJspPage_jsp.java (try search for it).
About your nullpointer, you should check your spelling when requesting parameters,
request.getParameter("action") is not the same as request.getParameter("Action") etc.
Good luck.
Johan

Similar Messages

  • I have installed uninstalled and reinstalled itunes but am unable to activate...receiving message that MSVCR80.dll is not installed and error 7 (windows error126) is a problem. Any takers?

    I have installed, uninstalled and reinstalled itunes 11 but have been unable to activate the program. I keep receiving the message that MSVCER80.dll is not installed, and error 7 (windows error126 is a problem).  Any takers?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • EWA Alert 'rating not defined' and 'download problem' (last week it's fine)

    Hi Friends,
    Please help me with this Alert.
    We have a weekly schedule of EWA report. Lat week the report was fine (green).
    This week it's been grayed out. the erro is Rating not defined and download problem.
    I have run the EWA report and it generated well.
    As per the EWA aler recomendation, i have run the sysprep check (sdcc) in target system. as per the report ihave checked the patches, they seems to be ok.However till last week the report was fine(Green).
    I have checked the RFC connections etc.
    Please check the following error message and help me soon. Since this is a production system.
    Regards
    srini

    hi srini,
    r there any upgrades of patches as now i am experiencing the same problem to my qty and dev servers where i have scheduled ewa reps.
    it says dwnld problem... but i assume the recent cvhanges to our servers patch levels has some thing to do with this..as that is the only changewe had perfromed...i would keep u informed once i check back to this issue.
    let me know if u find any,
    Br,
    Sri
    Award points for helpful answwers

  • TS1368 I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    Click here and follow the instructions.
    (98897)

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Itunes not workin and the problem displays - m signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     10.5.3.3   Application Timestamp:     4f14cc3d   Fault Module Name:     QuickTime.qts_unloaded   Fault Mo

    i tunes not working and the problem its displaying is
      m signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.5.3.3
      Application Timestamp:    4f14cc3d
      Fault Module Name:    QuickTime.qts_unloaded
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    4cf45322
      Exception Offset:    706e1040
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.256.1
      Locale ID:    1033
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
      please help.

    im having this problem to ive uninstalled and installed but this still comes up!!
    Problem signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.7.0.21
      Application Timestamp:    504d85d9
      Fault Module Name:    StackHash_0a9e
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    00000000
      Exception Offset:    00000000
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.768.3
      Locale ID:    5129
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789

  • TS3212 I had to re download Itunes, i get 2 errors; "failed to start MSVCR80.dll not found" and "error 7, windows error 126"

    iTunes will now download because of 2 errors; "failed to start MSVCR80.dll not found" and "error 7, windows error 126" using microsoft.

    Click here and follow the instructions.
    (98918)

  • Hello, just wondering how i can fix my itunes when i keep getting these msges, MSVCR80.dll was not found and error 7 (windows error 126). can anybody help. cheers.

    hello, just wondering how i can fix my itunes when i keep getting these msges, MSVCR80.dll was not found and error 7 (windows error 126). can anybody help. cheers.

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Sequence not Opening: File not found and Out of Memory Error Message

    Hello
    Attempting to open sequence in FC gives me the error: File not found.
    Clicking on okay in the message gives another error: Out of Memory.
    Final Cut Pro version is 6.02
    Anybody have a solution on how to get this sequence working again?
    Thanks

    Project itself opens fine.
    Can a sequence file with in a project become corrupted?
    Luckily, I always make duplicate of the sequence I'm working on at the start of the day. And I save often when I'm working.
    The earlier duplicated version of the sequence works, so not everything is lost.
    Unfortunately the auto save was disabled in my profile, back on it goes.
    I was wondering if this has happened to anyone before and that if there is a fix - if it is not a corrupted file?

  • Applet java file not refreshing in browser

    I have an applet that I am updating and I am not seeing the corresponding update when I open the web page. I can manually download the java class file and look inside it and it definitely is the updated file. I have deleted the browser history. (I am running tests with Firefox 3, IE7, and Safari 4 public beta). Is there something else I need to do to make sure the browser pulls in the latest version of the class file referenced in the html?
    Here is the code:
    <HTML>
    <HEAD>
       <TITLE>A Simple Program</TITLE>
    </HEAD>
    <BODY>
       <CENTER>
          <APPLET CODE="SendRequest.class" WIDTH="500" HEIGHT="150">
          </APPLET>
       </CENTER>
    </BODY>
    </HTML>The applet refers to a hard coded URL to read through a urlconnection. It is always reading a file and showing content, but it is not showing the right file. If I change the name of the referenced file in the java program, it looks like the browser has cached the referred file, rather than throwing and error and saying the file doesn't exist.
    Here is the java
    import java.applet.*;
    import java.awt.*;
    import java.net.URLConnection;
    import java.net.URL;
    import org.w3c.dom.Document;
    import java.lang.String;
    import java.io.*;
    public class SendRequest extends Applet {
        @Override
        public void paint(Graphics g) {
            g.drawRect(0, 0, 499, 149);
            g.drawString(getResponseText(), 5, 70);
        public String getResponseText() {
            try {
                URL url = new URL("http://myserver.com/stats/logs/ex20090603000001-72.167.131.217.log");
                URLConnection urlconn = url.openConnection();
                BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    urlconn.getInputStream()));
                String inputLine;
                String htmlFile = "";
                try {
                    while ((inputLine = in.readLine()) != null)
                        htmlFile += inputLine;
                    in.close();
                    return htmlFile;
                } catch (Exception e) {
                    return "Can't get the string.";
            } catch (Exception e) {
                return "Problem accessing the response text.";
    }Any help would be appreciated. I heard that some files may cache more persistently than others, but I don't fully understand the details.
    Thanks,
    Jim

    Check this [document loader example|http://pscode.org/test/docload/] & follow the link to sandbox.html for tips on clearing the class cache. That relates specifically to caching a refused security certificate, but class caching is much the same. As an aside, getting a console can be tricky in modern times (unless the applet fails completely). It is handy to configure the [Java Control Panel|http://java.sun.com/docs/books/tutorial/information/player.jnlp] to pop the Java console on finding an applet (Advanced tab - Settings/Java Console/Show Console).
    Of course there are two better tools for testing applets, especially in regard to class caching. AppletViewer and Appleteer both make class refresh fairly easy. Appleteer is the better of the two. I can tell you that with confidence, since I wrote it. ;-)

  • File not found + TIFFIO errors

    I am having some problems with AE. Hopefully someone can tell me what the problem is.
    I just moved an AE project to a new drive and the files are linking however I am getting some strange errors. It seems when I am parked at a point in the timeline where there is a still image (TIFF or JPEG, etc) I get this error message:
    After Effects error: making file reference - file not found (-43).
    (3::159)
    After I hit OK I get another error:
    After Effects: AEGP Plugin TIFFIO: Failed to open the file
    (5027::12)
    Can anyone explain what the problem is?
    Thanks.
    Gary

    Something is wrong with your directory structure or the drive. Do the files show up with their correct file sizes? Can you view them in an external editor? Are the files nested deeply inside a folder hierarchy? what is the file system of the external drive?
    Mylenium

  • File not formatted correctly error

    Dear All,
    when am trying to import a contract file as excel sheet, not CVs file, i get the error ( File not formatted correctly ). any advice?

    the issue with date formatting would be corrected in Excel. When an export file that includes dates is opened in Excel, they get reformatted by the Excel program. In my experience, I have had to reformat those cells in Excel to the YYYY-MM-DD format and save the Excel file before I could import again into CM. But, if you are just exporting and then importing without opening the file in Excel, then the dates are not the problem. What are you exporting from CM? Are you trying to import into a different project or database than you exported from?

  • Files Not Refreshed

    Building a JSP which dynamically creates an HTML page with an included javascript file using
    &lt;script LANGUAGE="JavaScript" type="text/javascript" src="myFile.js"&gt;&lt;/script&gt;
    The problem is when I make changes in the file myFile.js, the changes are not refreshed when I run the project. I have attempted to rebuild, exit jDeveloper and everything else I can think of yet it continues to use the old version. What is going on and why are the changes not reflected when being run?
    jDeveloper 9.0.5.16.27 under Win2K.

    Just to add to the fine advice so far, sometimes just toggling the View to Column View or whatever it isn't the back will update it.
    Wonder if this works in Tiger...
    http://www.versiontracker.com/dyn/moreinfo/macosx/24356

  • JRE7Update25 Deployment Properties File Not Working And Cant Disable Next Gen Plugin

    Good Day
    Our organisation needs to deploy JRE7U25 to over 4000 workstations. Our desktops are running the following Windows and IE combinations:
    WinXP 32 Bit/IE7
    WinXP 32 Bit/IE8
    Win7 32 Bit/IE8
    Win7 32 Bit/IE9
    Win7 64 Bit/IE8
    Win7 64 Bit/IE8
    We use the 32bit JRE installer across all environments and all IE browsers use 32Bit IE. On all of our environments the Deployment.properties and config files no longer work due to what appears to be a bug in the JRE7U25 installer. Our deployment files are as follows:
    Deployment.config
    deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
    deployment.system.config.mandatory=true
    Deployment.properties
    deployment.security.level=MEDIUM
    deployment.security.level.locked=
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    deployment.security.mixcode=HIDE_RUN
    deployment.security.mixcode.locked=
    deployment.console.startup.mode=HIDE
    deployment.console.startup.mode.locked=
    Both files are being copied to the following location:
    C:\Windows\Sun\Java\Deployment
    After the installer runs and deployment files are copied to the workstation the deployment.properties and config files look like this:
    Deployment.config
    deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
    deployment.system.config.mandatory=true
    Deployment.properties
    #System Deployment Properties
    #Mon Jul 01 12:29:20 CAT 2013
    deployment.security.level=MEDIUM
    I have tried changing the deployment.config file as follows in an attempt to fix this to no avail:
    1. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=true
    2. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=false
    3. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=true
    4. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=false
    5. deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    None of the above mentioned works. So all our required settings in the deployment.properties file are being overwritten when opening the Java console? Our other major problem is that Changing the registry key to 0 in order to disable the next generation plugin does not disable the next generation plugin in Jre at the usual location as it worked for us machine wide (across multiple profiles for JRE6U29):
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\10.25.2]
    "UseNewJavaPlugin"=dword:00000000
    ^^I have observed on a fresh install of JRE7U25 that the above mentioned registry key no longer exists in this version so a computer wide disablement of this option is no longer possible via the registry.
    On our 32Bit and 64bit machines running the 32 bit JRE 7U25 client when we disable the next generation plugin it keeps enabling itself again. Even when we run the javacpl.exe to run as administrator by changing the compatibility settings and disabling the next generation plugin it enables itself again. This is a huge problem for us because our company Oracle web based applications need this plugin to be disabled in order to run the apps properly.
    These are major obstacles for our deployment as we desperately require assistance or any advice in addressing these issues as there appear to be numerous bugs with the JRE7U25 release. Thank you in advance.
    Update 7 July 2013:
    I have observed that if you have the following options in your Deployment.config file it doesn't allow our java webstart apps which use jnlp extensions to run.
    1. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=true
    2. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=false
    3. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=true
    4. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=false
    The jnlp file association is also broken on Windows XP workstations with JRE7U25. We are having to manually associate the .jnlp file extension with javaws.exe on workstation for Web start apps or else users cannot lauch JRE whn clicking on .jnlp links.
    The only Deployment.config syntax which allows our Webstart applications to run is as follows:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    What a mess!

    I don't have an answer to the problem, but I am having problems with the system level deployment.properties file and IE9 on Windows 7 32/64bit.
    Starting with version 13, the IE plugin seems to igonore the system level deployment.properties file in favor of the user level deployment.properties file. When I open the Java Control Panel, the settings are correct per the system deployment.properties file. Currently to get the Java Plugin to work reliably in IE9 I have to set the following:
    _JAVA_OPTIONS = -Djava.net.preferIPv4Stack=true
    Disable caching
    Set the proxy to Direct Connection.
    If I set the _JAVA_OPTIONS as an environment variable and the other two in the system deployment.properties file, Firefox works fine, but IE wont load either of the Java tests. If I removed the system deployment.properties files and configure the user deployment.properties file, both IE and Firefox work fine.
    I find it interesting that if I set the configuration through the control panel, then apply the system deployment.propteries file, the user deployment.properties file reverts to defaults when the system file is removed.

  • ICloud not syncing and Contact problems with merging duplicates

    I was having problems with the syncing of my notes app. When I got the iphone 5 I had since using Mountain Lion I had started to make use of the fact that the notes sync across iCloud. Great. Although not for long. Everything was going fine notes were syncing across devices but then spontaneously they stopped syncing for no apparent reason. I then went to look in settings, looked online and all through discussion forums. Switching notes on and off on icloud both on the macbook and on my iphone. Restarting devices etc etc. iCloud itself online was not able to access the notes app. I kept getting error messages that I would submit to apple. Then I finally relqinquished and unhooked the iCloud accounts from the computer and phone. And at the sacrifice of losing albums in my photostream they sprung back to syncing.
    Then the real problem happened. I had selected to keep a copy of my address book in contacts when I unhooked my computer just in case. When everything linked back up again, I then had duplicates in my address book. Not 1 (this can happen just having icloud active) but 5 sets of duplicates, granted I had kept a version from when I unhooked. So I looked around again for how I could quickly and easily get rid of duplicates. Following suggestions online I go into contacts>cards>look for duplicates. I had 1200 or somthing duplicates, so naturally when given the option "would you like to merge the info in these duplicates I click yes. The MacBook starts to chugg away. Its gonna take a while. So I come back later. And before returning to CONTACTS, go to send a message from MESSAGES and I notice that 80% of the threads have no name. I go back to CONTACTS and WHAM 100s of contacts disappeared in the merge never to be retrieived again. You cant restore CONTACTS from Time Machine as it is just mirrors the contacts that you have in present time. Restoring phone doesn't work becasue it just downloads from iCloud after it has restored. TOTALLY RIDICULOUS. I am livid.

    what I mean is - create a complete new contact on your contacts and select a picture for it from your Mac. Then set it as "make this my card"
    Once you have done that - presumably it will sync with iCloud - have a look and the contact should appear on your iPhone too.
    On your iPhone go on Settings>Mail,Contacts,Calendar> Under "Contacts: in "My Info" select That new contact you created on your Mac.
    Let me know if that works.
    -On another note, so what you are saying is, if I take my 15' Macbook Pro in and they have none of the old ones in stock, they just give you a Retina display one! Did you take it to them for the contact issue you were having or something else?

Maybe you are looking for

  • New infinity install with a master socket move - w...

    As I understand it, Infinity requires a modem plugged in directly to the master socket & a power point adjacent also. This is of no use to me at all & I would like the master socket moved. Now, from what I read here, BT will do this "officially" for

  • Report refresh does not contain correct data

    Hi all, I'm having a problem with an interactive report. this report contains checkboxes for each row. When clicking the submit button, a process is called which changes the status of the checked records. This status change should cause the IR to not

  • What is the difference between upgradation and migration.

    Hi Guru's what is the difference between upgradation and migration. actuallly i involved in upgradation project, here my role is 1. first i check the query's in 3.5 save the query and transport the query. and check the query in bex analyzer also. 2.

  • Only able to view some PDFs on black berry

    I able to view pdf files that are created with the info in the PDF tab under Properties thats states: PDF Producer: Acrobat Distiller 8.1.0 (Macintosh) PDF version: 1.4 I receive a PDF with this Info and it does not work: PDF Producer: Adobe PDF libr

  • Can't Publish

    I have an iMac core duo with a Fibre-Optic connection. When I hit "publish" or "publish all" I get a .Mac Welcome window with sign-in. Behind that there is a Connecting to .Mac task bar which never connects (seemingly). I sign in over and over with n