Delete or change JSP files

Hi Guys,
when I delete a JSP file in web, I've still access to the deleted file with InternetExplorer. When I change and save a JSP file the InternetExplorer shows the old version.
How can it be? How can I delete or Change the file correctly?
The other discusions brought me no solution.
http://scn.sap.com/thread/1772196 I don't have autorization for this solution.
I'm using MII 14.0 SP4 Patch 2.
Regards,
Matthias

Hi Mathias,
You can try using "Publish" option on right click of the parent folder of the JSP page or on the WEB folder of your project. The reason you are still able to access deleted file is that the file is still on the server and a publish would re-copy the contents under the folder on to the server.
Same is the reason for you not being able to see the changes that you do in JSP page. Try "Publish" after any changes to web resources.
Hope this helps!
Regards,
Ria

Similar Messages

  • Unable to change .jsp file at runtime using weblogic 8.1 server

    Hello all,
    I'm running weblogic 8.1 and the development environment is workshop.
    I have several .jsp files in the application.
    when the server is running and I try to change the .jsp file and access it throw the browser, I'm getting compilation errors and when I copy the original file again everything is OK.
    I'm gessing the problem occurs due to the date of the new .jsp file(if I compile the .jsp file it creates a new servlet with newer date then the file generate when compiling the application before running the server).
    Your advice will be welcome.

    Hi Robert,
    Take a look at the SAP Note "[1553921 - Is there a utility that would help in writing database logon code?"|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]
    The utility provided in above SAp Note will generate the logon code for your existing report, update the logon information of the target database in the code.
    Also search for the sample application 'change database at runtime' in top right corner search box.
    Hope it helps,
    Thanks,
    Bhushan.

  • Tomcat doesn't pick up the changes to jsp files

    My original problem was JAR locking. I changed context.xml files both in conf\ and my application.
    jakarta-tomcat-5.5.9\conf\context.xml
    <Context  reloadable="true" antiResourceLocking="true" antiJARLocking="true">
           <WatchedResource>WEB-INF/web.xml</WatchedResource>     
    </Context>myApplication\META-INF\context.xml
    <Context  reloadable="true" antiResourceLocking="true" antiJARLocking="true">        
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>Now I can undeploy without having jarLocking problem.
    But now tomcat doesn't pick up the changes to jsp files automatically!!!
    I have to undeploy/deploy even I just change jsp files!
    What's wrong?

    You can't do anything except speak in a different accent. Apple would have to add specific support for different accents in a future iOS update.

  • Unable to see current JSP files in browser

    Hi,
    Sorry for this, I know this is not a new problem, and trust me I've tried almost everything suggested regarding other issues I've found in this forum. Well I'll start by explaining the problem, I've just started working for a company and they have built a custom app in JSP for a client.
    However there is a bug which I have gone in and fixed in a particular file, and as an example I just want to output a generated variable to the screen. Its just the 4-digit year is all.
    I have deleted the old JSP files from the server, I have replaced them with the new files. I have deleted both the .java and .class files of theses files from the Tomcat Work directory and have refreshed. I have shutdown and restarted tomcat and the corresponding files have been recompiled correctly. When I view the .Java file, I can see the changes I have made, it was only a couple of lines of codes. I have cleared the cache of my browser and refreshed, and still the server is returning the Old JSP file to me.
    And for the life of me, I cannot figure out where the problem is. So I was wondering if anyone has had a similar problem and would be able to offer me a solution of some kind.
    Thanks in advance,
    Harry
    P.S. Its Tomcat 5.0, not upgrading as I don't know what depends on it, so I don't fancy being fired after 2 weeks.

    I would do that as a last resort, as it happens to be a client server, I don't think they'd appreciate me needing to reboot a Unix server during the day. Would anyone have any other suggestions?
    I just removed the JSPs from the live server, and refreshed the page and Tomcat could not find the JSPs, so I'm sure I have the correct directory. I then made sure the .java and .class files were deleted from the work directory, uploaded my new files (again) and hit refresh... and yet again I was served the same code as always, when I view source it still shows me the old source code even though the JSP file and compiled java files and class show that the new file should be shown, not the old one.

  • Trash won't delete the Unix Executable Files

    i got this problem on my external hd but i ignored it but it showed on mac i should find somthing to delete those files
    i got mountain lion .
    most of the files where deleted or changed the file location and names
    the methodes i tried
    1-  unlock .
    2- restarted the computer and didn't work .
    3- tried the option key whith empty trash button (secure empty trash) .
    4- tried the terminal command sudo rm -ri ~/.Trash didn't work.
    5- also another try in terminal and drop the files in the terminal and wright the password didn't work .
    6- tried cocktail , trash it ,and onyx nothing worked .
    please find me something ,apple created this osx they should find some way to fix it i don't know how ???
    i read every discussion about trash and didn't find the answer there even for others.
    FORCE empty the trash.
    create app or do whatever i don't know. please do somthing.
    thanks.

    maybe they are scratch files the .mp4 i changed the video name and moved it to different location then the torrent i delete it and the container folder and emptied the trash .the new folder i made wrong and delete it after that and emptied the trash and thats it nothing happened when i restarted the computer i found the trash not empty i tried to empty it it refused and when i opened it the files "newfolder + .mp4" where made as unix files
    i tried every way and nothing helped me .
    i had this problem before but ignored it because it was on my external hard disk so ithougt the external is ntfs and may have some problem its ok ,most of the files there were copied more than once then i deleted one of them and this problem is shown up it didn't matter because it doesn't show when the hard pluged out.
    by the way i tired to delete the files using the secure trash delete it showed me error code- 36.
    i read about it but its the same .

  • My JSP file does not reflec the change of a Bean

    My test environment: Win 2000, JDK 1.3.1, OC4J(standalone)
    My problem:
    In servlet, the change of a Strng value is reflected at the next refresh of a browser.
    But, when a jsp file call a bean's getXXX(return a String value) method, and if the String value of that bean is changed, the next refresh or visit to that jsp file does not reflect the change of that bean.
    For example:
    1) TestClass.java
    public class TestClass {
    private String txt;
    public class TestClass {
    txt = "Test"; ----- (g
    public String getTxt() {
    return txt;
    2) test.jsp
    <html><body>
    <h2>
    <% TestClass test = new TestClass(); --(h
    out.print(test.getTxt()); %> --(i
    </h2>
    </body></html>
    In my first vistit to "http://localhost:8888/test.jsp" the brower shows "Test" String, but after I change the txt value to "Test1"((g) the brower does not reflect the change.
    I found that if I use <jsp:useBean id="test" class="TestClass" /> instead of (h-(i line, the brower reflects the change of the bean.
    Why does this occur?
    Thaks in advance.
    PS) In some cases(Not above example), I get the java.lang.ClassCastException.
    So Each time I change a Servlet or a Bean, I restart OC4J.
    null

    SangKyu,
    <jsp:useBean > has a property called scope, which defaults to "page".
    So the bean gets reset everytime you reload the page.
    Can I suggest that you set it to "session"?
    The following syntax card I have found userful:
    http://java.sun.com/products/jsp/syntax.pdf
    Cheers,
    Scott
    Atlassian - Supporting YOUR 'Orion/OC4J' World
    http://www.atlassian.com - [EMAIL][email protected][EMAIL]

  • Can I change scope in my jsp file ??

    Hi all,
    I have html form, jsp for display, bean for Logic and I want the project result is doing sarch in html file,
    bean handle the search in database, and display in jsp, since the database is big, the result is lot, so I want my search result be display 10 recode per page there for I had to use session in my display jsp file.but that bother my new search, if I don't reopen my browns I can't do the new search, like first I search chicken it has over 400 recods, then I jump back to my html file and want to search by duck , I still got the result chicken, if I change my scope to request then is easy to start a new search but can't do to next.
    any ideal??

    Hi,
    The problem still at handle continue search and a new search. i add a again method in my jsp file and can handle new search and old session for few search then get error
    IndexOutOfBoundsException: Index: 60, Size: 4
    <html>
    <head>
         <title>select List</title>
    </head>
    <body>
    <basefont face="Arial">
    <%@ page import = "num.NameBean" %>
    <jsp:useBean id="ViruName" scope="session" class="num.NameBean"/>
    <jsp:setProperty name="ViruName" property="*"/>
    </jsp: useBean>
      <%
       if (ViruName.getString()==null){%>
        <center>
         Sorry, you nedd to enter something for search!
      <br>
    <font size=-1>(Please hit the browser 'back' button to continue)</font><br>
    </center>
    <%}else{%>
    <table align="center" width="600"border="1">
         <tr>
              <td width="20%"><b>FieldNumber</b></td>
              <td width><b>Name</b></td>
              <td width="30%"><b>HiTiter</b></td>
              <td width="30%"><b>SubType</b></td>
         </tr>
    <%
         int rowCount = 0;
         int startRow = 0;
         if (ViruName.Mysearch()) {
              String start = (String) request.getParameter("start");
              if (start != null) {
                   startRow = new Integer(start).intValue();
                   ViruName.setStartRow(startRow);
              while (rowCount < 10 && ViruName.nextRow() > 0) {
                   rowCount++;
    %>
         <tr>
                   <td width="10%"><jsp:getProperty name="ViruName" property="fieldNumber"/></td>
                    <td width="30%"><jsp:getProperty name="ViruName" property="name"/></td>
              <td width="30%"><jsp:getProperty name="ViruName" property="hiTiter"/></td>
              <td width="30%"><jsp:getProperty name="ViruName" property="subType"/></td>
         </tr>
    <%
              }//end while
         }//end if
    %>
    </table>
         <!-- Display the back and next links -->
                   <a href="?start=<%= ViruName.getCurrentRow() %>">Next</a>
                            <% ViruName.again();%>
                     <a href ="test.html">new search</a>
    <%
    %>
    </body>
    </html>
    package num;
    import java.util.*;
    import java.sql.*;
    public class NameBean implements java.io.Serializable {
      /* Member Variables */
      private String fieldNumber;
      private String name;
      private String hiTiter;
      private String subType;
      private String string;
      private String text=null;
      /* ArrayLists to hold recordsets */
      private List fieldNumberList, nameList, hiTiterList, subTypeList;
      /* Helper Variables */
      private int currentRow;
      private int rowCount;
      private Connection db = null;
      /* Constructor */
      public NameBean() {
        /* Initialize bean properties */
        setFieldNumber("");
        setName("");
        setHiTiter("");
        setSubType("");
        /* Initialize arrayLists to hold recordsets */
        fieldNumberList = new ArrayList();
        nameList = new ArrayList();
        hiTiterList = new ArrayList();
        subTypeList = new ArrayList();
        /* Initialize helper variables */
        currentRow = 0;
        rowCount = 0;
        /* Get database connection */
        dbConnect();
      /* Get Database Connection */
      private void dbConnect() {
        if (db == null) {
          try {
            Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
            db = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;selectMethod=cursor","test","1234");
            db.setCatalog("HKData");          
          catch (Exception e) {
            System.out.println("Error Connecting to catalog DB: " + e.toString());
      /* Accessor Methods */
      public String getfieldNumber() {
        return fieldNumber;
    /* one way to set data will get from database */
      public void setFieldNumber(String fieldNumber) {
         this.fieldNumber =fieldNumber;
      public String getName() {
        return name;
      public void setName(String _name) {
        name = _name;
      public String getHiTiter() {
        return hiTiter;
      public void setHiTiter(String _hiTiter) {
        hiTiter = _hiTiter;
       public String getSubType() {
        return subType;
      public void setSubType(String _subType) {
        subType = _subType;
    public  String getString(){
        return string;
    public void setString( String string ) {  
       this.string =string;    }
      /* Read-only attribute */
      public int getCurrentRow() {
        return currentRow;
      /* Populate Record List */
      public boolean Mysearch() {
        /* If prodIDList is empty, then execute the query to populate it */
        if (fieldNumberList.isEmpty()) {
          try {
                       Statement s = db.createStatement();
                      String Sql="select ViruName00.FieldNumber, Name, HiTiter, SubType, Storage";
                             Sql+=" from ViruName00, Storage00";
                             Sql+=" where ViruName00.NewNum=Storage00.NewNum and Name like'"+string+"%'";
                            Sql+=" Union";
                             Sql+=" select ViruName01.FieldNumber,Name, HiTiter,SubType, Storage";
                            Sql+=" from ViruName01, Storage01";
                             Sql+=" where ViruName01.NewNum=Storage01.NewNum and Name like'"+string+"%'";
                            Sql+=" Union";
                             Sql+=" select ViruName02.FieldNumber,Name, HiTiter, SubType,Storage";
                             Sql+=" from ViruName02, Storage02";
                             Sql+=" where ViruName02.NewNum=Storage02.NewNum and Name like'"+string+"%'";
                             Sql+=" Union";
                             Sql+=" select ViruName03.FieldNumber,Name, HiTiter, SubType, Storage";
                             Sql+=" from ViruName03, Storage03";
                             Sql+=" where ViruName03.NewNum=Storage03.NewNum and Name like' "+string+"%'";
               ResultSet rs = s.executeQuery (Sql);
            fieldNumberList.clear();
            nameList.clear();
            hiTiterList.clear();
            subTypeList.clear();
            rowCount = 0;
            while (rs.next()) {
              fieldNumberList.add(rs.getString("FieldNumber"));
              nameList.add(rs.getString("Name"));
              hiTiterList.add(rs.getString("HiTiter"));   
              subTypeList.add(rs.getString("SubType"));
              rowCount++;
          catch (Exception e) {
            System.out.println("Error populating productBean: " + e.toString());
            return false;
        /* Return status of operation (assume success if it made it this far) */
        return true;
      /* Reset current row */
      public void setStartRow(int start) {
        if (start < rowCount) {
          currentRow = start;
      /* Move to next row */
      public int nextRow() {
        if (currentRow == rowCount) {
          currentRow = 0; // Reset for next page request
          return 0; // return 0 to indicate end of recordset
        /* Populate bean properties with current row */
        setFieldNumber((String)fieldNumberList.get(currentRow));
        setName((String)nameList.get(currentRow));
        setHiTiter((String)hiTiterList.get(currentRow));
        setSubType((String)subTypeList.get(currentRow));   
        currentRow++;
        /* return currentRow*/
        return currentRow;
    public void again(){
        fieldNumberList.clear();
            nameList.clear();
            hiTiterList.clear();
            subTypeList.clear();
    }

  • IPlanet WebServer Hangs on JSP file change

    Hello,
    I am using IPlanetWebServer-Enterprise/4.1SP5 and the server just hangs when there is a JSP file changed after the first successfull load. Looking at ther errors log, I can see that it is doing:
    compileJSP(): invoking Java compiler, file =/.....
    When the first time its successful, it follows that compilsJSP() with
    For JSP Compilation : JDKLocation-/usr/java/, fork_java_c=no,enable_debug=yes
    Is there a fix for this problem?? Please help
    Thanks

    I did all of the 3 things that you told me in the context.properties file.
    The same behavior is still happening....here is the sequence
    1) start the server from scratch
    2) load the jsp file (ok)
    3) change the jsp file with emacs
    4) reload the jsp file (ok, see the changes)
    5) change ths jsp file with emacs again
    6) reload the jsp file (HANGS, browser is just waiting for reply)
    errors file trace...
    04/Mar/2002:11:49:44] info (12964): Service(): uri=/seehawk/optimizer/jsp/omCost.jsp cgiScriptName=/seehawk/optimizer/jsp/omCost.jsp token=null cached=false
    [04/Mar/2002:11:49:44] info (12964): JSP: This is a jsp 1.x file
    [04/Mar/2002:11:49:44] info (12964): JSP: Before JSP1x compiler.compile, servletName = /seehawk/optimizer/jsp/omCost.jsp servletPath = /usr/local/home/gasweb/seehawk/optimizer/jsp/omCost.jsp & dir = ../ClassCache
    [04/Mar/2002:11:49:44] info (12964): JSP1x Jasper Trace: Package name is: jsps.seehawk._optimizer._jsp
    [04/Mar/2002:11:49:44] info (12964): JSP1x Jasper Trace: Class name is: omCostjsp
    [04/Mar/2002:11:49:44] info (12964): JSP1x Jasper Trace: Java file name is: /usr/local/netscape/server4/https-kw_chan/config/../ClassCache/_jsps/_seehawk/_optimizer/_jsp/_omCost_jsp.java
    [04/Mar/2002:11:49:44] info (12964): JSP1x Jasper Trace: Class file name is: /usr/local/netscape/server4/https-kw_chan/config/../ClassCache/_jsps/_seehawk/_optimizer/_jsp/_omCost_jsp.class
    [04/Mar/2002:11:49:45] info (12964): JSP1x Jasper Trace: Compiling with: -classpath /usr/local/soap-2_2:/usr/local/xerces-2_0_0/xercesImpl.jar:/usr/local/xerces-2_0_0/xmlParserAPIs.jar:/usr/local/soap-2_2/lib/soap.jar:/usr/local/:/usr/local/netscape/server4/plugins/samples/servlets/beans.10/SDKBeans10.jar:/usr/local/netscape/server4/plugins/samples/servlets/beans/SDKBeans.jar:/usr/local/netscape/server4/bin/https/jar/Bugbase.jar:/usr/local/netscape/server4/bin/https/jar/Calljsac.jar:/gasweb:/usr/local/netscape/server4/webagent/java/SafeAdapter.jar:/usr/local/netscape/server4/webagent/java/SafeAdapterHelper.jar:/usr/local/netscape/server4/webagent/java/env.jar:/usr/local/netscape/server4/webagent/java/jsafe.jar:/usr/local/netscape/server4/webagent/java/msr.jar:/usr/local/netscape/server4/webagent/java/smjavaagentapi.jar:/usr/local/netscape/server4/webagent/java/smjavasdk.jar:/usr/local/netscape/server4/bin/https/jar/NSServletLayer.jar:/usr/local/netscape/server4/bin/https/jar/NSJavaUtil.jar:/usr/local/netscape/server4/bin/https/jar/NSJavaMiscUtil.jar:/usr/local/netscape/server4/bin/https/jar/servlets.jar:/usr/local/netscape/server4/bin/https/jar/jsp092.jar:/usr/local/netscape/server4/bin/https/jar/xml.jar:/usr/local/netscape/server4/bin/https/jar/jspengine.jar:/usr/local/netscape/server4/bin/https/jar/SSJS.jar:/usr/local/netscape/server4/bin/https/jar/js14lc30.jar:/usr/local/netscape/server4/bin/https/jar/ldapjdk.jar:::../ClassCache:/usr/local/netscape/server4/https-kw_chan/config/../ClassCache -d /usr/local/netscape/server4/https-kw_chan/config/../ClassCache /usr/local/netscape/server4/https-kw_chan/config/../ClassCache/_jsps/_seehawk/_optimizer/_jsp/_omCost_jsp.java
    [04/Mar/2002:11:49:45] info (12964): IWSJavaC.compile(): forking external compiler, java=/usr/java//bin/javac
    Thanks
    Ka-Wai

  • Problem on reload a JSP file in Tomcat 3.3.1

    I have a problem about Tomcat 3.3.1
    I am developing a JSP application,
    but Tomcat not recompile the JSP file after i modify it.
    I need to "wait" the tomcat recompile it, so i can see the change.
    This make the development really difficult...
    Do I miss some important step on config Tomcat 3.3.1
    how to force it to detect a newer version JSP in every request ??
    Thanks

    I believe there is a way to configure Tomcat to do this, but I don't know what it is.
    Until someone can tell you the configuration steps, here is a workaround. Tomcat keeps the Java source and class files for your JSP code somewhere under its "work" directory. Find those files and delete them, which will force it to re-compile.

  • Segregating business Logic from JSP files.

    I have an application with around 150 jsp files, out of which almost half of them are containing business logic.
    I am actually in a process of segregating the java code from the jsp files.
    Could you please guide me in finding out the best practices, dos and don'ts while engaging in such a process.
    Thanks in Advance

    I've been through this hellish experience. I’m not sure any “best practices” for this exist.
    gimbal2 idea of starting a new project would be ideal, if costly. The other extreme is “it works”, don’t touch ‘em until you need to change the functionality then work out the cost/befit of a rewrite for that slice.
    If you really want to take this route:
    How bad is the code that does not live in the JSPs? Should it be reused or avoided?
    What level of functional test coverage do you have?
    The approach my team and I took was to cut it down into slices and try to rewrite that slice as cleanly as possible. Where interactions between slices exist try to write a facade which calls the legacy code but looks like how you would want the new code to look.
    This did not work perfectly. The facades were rarely used well and we had to drop major slices of work to complete on time leaving us with large chunks of legacy code that we can’t delete.
    We started with no automated functional tests, but a goal of getting to a decent amount. We failed on this, which caused major issues - mop up lasted a month and a half after release. Drop functional slices to ensure that you end up with a solid set of automated tests. If you can not get your team to buy into this don't bother with the project.

  • Unable to compile .jsp files with Jakarta Tomcat 5.5.3

    Hello,
    I am unable to reflect the changes that I am making in my .jsp files on my server. I am using Fedora core 4. It's like the .jsp files are not being compiled anymore. Please help! I would greatly appreciate any feedback. Thanks for your time.

    Thanks for your reply. My .jsp files where working just fine before I changed the layout of the output. Even making changes to a simple file that contains: <% out.println("Welcome to the jsp page!"); %> to the following: <% out.println("Welcome to the jsp page! Today is the day!"); %> does not work. I have cleared the browser by deleting all cookies, temp files, history, etc. The changes to my file are not being compiled. I thought that in JSP 2.0 changes to your files where compiled automatically. Am I missing something? Please help!

  • Help for not recompiling .jsp files

    Hi,
    We are using sun web server 7.0. We have deployed one application which contains few jsp files.
    everytime when we access login.jsp, it creates login_jsp.clss file in /generated folder..
    if we delete login.jsp file and change settings in web.xml for login_jsp.class and try to access then it shows ,
    error : page cannot be found and i found class file deleted from that path.
    If i try the same in tomcat server, it works fine. so need to know the same settings for sun web server 7.
    Is there any setting available for sun web server admin console for the same...
    Thanks
    Rushi

    check disable dynamic reloading
    http://docs.sun.com/app/docs/doc/819-2634/abxfs?a=view
    also , u can check out our tuning guide
    http://docs.sun.com/app/docs/doc/819-2635/abyed?a=view
    pl. provide feedback on these guides within our product docs wiki
    http://wikis.sun.com/display/WebServer/Sun+Java+System+Web+Server

  • Where does WebLogic search the compiled JSP files?

    Hi,
              I have done several tests with WebLogic and JSP files.
              I have observed that when the JSP is requested the first time it is
              compiled and saved in c:\weblogic\myserver\classfiles\jsp_servlet
              If I request the same JSP again, it won't be compiled again. I
              suppoussed it was because the compiled JSP (*.class) was created. Then I
              deleted the compiled JSP and when I call the JSP again it run perfectly
              without a new compilation.
              Where are really those JSPs?
              Thanks in advance,
              Chemi.
              

              Chemi wrote:
              >
              > Thanks Mathieu,
              >
              > just one thing more. Can I disable this feature just to measure the advantage
              > of WebLogic against other AppSrv which haven't it?
              >
              No clue. But as somebody else has said, touching the jsp files WILL
              force recompilation if you gor your JSP engine setting correct (check
              seconds set to zero).
              My guess is that all AppSrv would have this feature, because it comes
              for free with usual classloaders, i.e. it would be MORE trouble to not
              have this feature than to have it.
              Mathieu
              > Thanks in advance,
              >
              > Chemi.
              >
              > Mathieu Gervais wrote:
              >
              > > Chemi wrote:
              > > >
              > > > Hi,
              > > >
              > > > I have done several tests with WebLogic and JSP files.
              > > >
              > > > I have observed that when the JSP is requested the first time it is
              > > > compiled and saved in c:\weblogic\myserver\classfiles\jsp_servlet
              > > >
              > > > If I request the same JSP again, it won't be compiled again. I
              > > > suppoussed it was because the compiled JSP (*.class) was created. Then I
              > > > deleted the compiled JSP and when I call the JSP again it run perfectly
              > > > without a new compilation.
              > >
              > > it's because it is loaded in memory. It doesn't need the .class file
              > > anymore. Depending on your jsp engine settings, changing the JSP file
              > > will force a new recompilation, but changing the .class doesn't affect
              > > anything, since the class is loaded by the weblogic classsloader in
              > > memory, and accessed from here at future requests.
              > >
              > > Mathieu
              > >
              > > >
              > > > Where are really those JSPs?
              > > >
              > > > Thanks in advance,
              > > >
              > > > Chemi.
              

  • Using Java, How can I Update, Add, Delete nodes in XML Files.

    Hi,
    I want to store the student record (like Name, Age, school name, total mark etc.,) as nodes in the XMLfile. Also I should able to Update, Add, Delete any nodes (student record) in the XML file. How can I achieve this...using Java
    I am able to read the content of the xml file using xml-parser. But my problem is
    updating the xml file.
    pls suggest some solutions or links with " example source code"
    Thanks :-)

    There are 2 kinds of XML parsers : SAX and DOM. DOM seems to suit your need. You can use JAXP APIs to add, delete or change nodes or attributes.
    http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/TOC.html provides contents that would satisfy most of the needs.
    To save a DOM modified XML file use java IO APIs to write to the same file from which it was read using a Document object ( doc.getNodeValue() ).

  • Relative Path for JSP Files

    I use Liferay Portal. It has a defined directory structure for all portlets and expects files to be in their proper locations. One of these is that it expects all .jsp files to be in the /webroot/html directory.
    The problem is that all references in the struts-config.xml to .jsp files are assumed to be relative to the /html directory. So if, for instance, I set the path as /test/test.jsp then Liferay looks for the file in /html/test/test.jsp. But NitroX requires the full path, including the /html.
    I've gotten this to work on another competing product - in that product I set the Web Root to be the /html directory and it works great. That product allows you to set the path of the struts-config.xml separately. Is there any way to do something similar with NitroX? I tried changing the webroot in the .m7project file manually but it doesn't like it. It seems to insist that the struts-config.xml file is in the webroot.
    Thanks.

    NitroX currently supports only a war directory structure. When a project is created, the Web Application Root directory is computed as the directory containing the WEB-INF folder (which should contain the web.xml file).
    All web app resources (JSP files, image, css files, etc) are expected to be under the Web Application Root directory (at any nested directory level).
    We will enhance this behavior in the future to support arbitrary directory structures.

Maybe you are looking for

  • Safari can't open webmail age

    When I try to access my webmail account at work, I get the following error: "Safari can't open the page. Safari could not open the page "http://mail.wsd1.org:8383/" because the server is not responding." Anyone have any ideas? Thanks.

  • Dual Monitor video cards for HP Pro 3400

    I am looking to add a 2nd monitor to my HP Pro 3400 MT and want to make sure I get a video card that will not have any compatibility issues.  I'm not doing any gaming so I don't think I need anything super fancy and I would prefer not to have to upgr

  • Unlimited tolerance is automatically ticked in service purchase order and is in diplay mode

    Hi,   In service purchase order in the delivery tab, I am unable to view underdelivery tolerance and unlimited tab is ticked automatically and it is in display mode . How to remove the unlimited tick mark for the service purchase order for a particul

  • Single item playlist

    It seems one cannot create a playlist containing a single item. Presumably some bright spark decided that a list has to contain more than one item to be a list: but that is illogical, and incorrect for any other list type I can think of. Perhaps the

  • Quicktime VR for Mac and Windows

    I am getting ready to do a major update to a QTVR object movie via Macromedia Director for an important client. The client only uses Windows XP and Windows 7 on their machines. I will do all development on Mac Lion 10.7.2 etc (see below) Is this a go