Can�t change my jsp

Hi,
i develop a web-application with strust 1.1 and use tomcat 5 as a webserver. Today (about 3 hours ago) i was working on one of my jsp�s and made some changes. Everything was fine. Since than, whatever i change in the code for that page, i still get the same result. ... the one that i got 3 hours ago. Every change seem to be lost.
I have deleted my project: my developing copy as well as the version on the server. Then i restored the project from my backup-cd and made a new deployment to the server. I checked the files on the server the code is the same as it was yesterday. I run the programm, but i still get the result with the changes i made today.
One of the changes i made today, was that i put a costumized tag into the page. When i debug, the debuger works his way through yesterdays code but at one point it switches to the code from the costumized tag even so there is no such tag in the jsp-code. I have no idea where he get�s the code from that he is executing.
Is anybody here who has encountered a similiar thing and can help me out here. I�m stuck.
Thanks for any help
Christoph

I've never come across this problem but can guess what's going wrong...
JSPs actually get turned into Servlet classes by the app server (Tomcat in this case).
This process only happens once, after which the app server uses the compiled servlet class. If your JSP changes your app server is supposed to notice and recreate the servlet.
I'm not sure how Tomcat checks to see whether the files change. It could be timestamp or file size. In anycase it sounds like Tomcat is at fault.
Try looking in
<CATALINA_HOME>/work/Catalina/<SERVER NAME>/<WEB APP NAME>e.g.
/jakarta-tomcat-5.27/work/Catalina/localhost/myWebApp/...for the generated java files and compiled classes. You should be able to compare the XXX_jsp.java files with your JSP and see whether it is an old version. If so I would try deleting it (and the associated XXX_jsp.class file).

Similar Messages

  • How can i change login.jsp in oracle portal

    Hi every body,
    I want to change login.jsp page or replace another page instead of it.How can i do this?
    can i build a page and add login portlet to it and replace it instead of login.jsp

    I have tried this. (But I just modify the jsp code directly)
    But page doesn't change at all.
    Also there is another question.
    Where should i put image file???

  • How can I change between JSP and Java in the page language attribute

    Does any one know the answer to this? I am trying to Switch between the 2 in the middle of the page. I want to include a file that uses <%@ page language = "JAVA" %> but the main mage uses Java Script. How can I switch it for this one file. I can't find the answer anywhere. Thanks for your time, and please help me. Also can some one post a good link for Session Tracking. I can't find much good information on that. Thanks again.
    Eagles757(JAY)

    Wow this didn't make sense in so many ways. It's truly bordering on nonsense. I think it's written in English.
    <%@ page language="Java" %>This is optional. JSPs don't use any language other than Java. This is known as a JSP Directive. This line will be processed by the JSP/Servlet engine, and you won't see it in your output. If JSP ever supported a language other than Java, this would be where you would change it.
    <script type="text/javascript">
    <!--
    // -->
    </script>You can include a block like this in your JSP file. The JSP/Servlet engine will not process this script block at all (unless you include JSP <% %> tags somewhere in there, in which case they will be processed before the response is sent back to the web browser). This script block is where JavaScript goes. This code will be executed on the client's browser.
    This is about as clear as I can make things given how muddled your question is. Please ensure you understand the basic differences between JSP, Java, JavaScript, HTML, Servlet engine, web browser before proceeding. Understand what code executes where, and in what order.
    Brian

  • Can I change the JSP page directive dynamically??

    Should I be able to use the JSP page directive...i.e.,
    ("<% reponse.setContentType("application/vnd.ms-excel"); %>
    ...to *dynamically* switch the page content depending on the users choice? -- Or, do I have to build separate JSP pages??
    I want to be able to switch the content-type based on the user choice from "content="text/html" to "content-type: application/vnd.ms-excel"... or vice versa.
    If so, does someone have an JSP example of doing this?
    Thanks for any quick response!!

    <%
    int userchoice = Session("userchoice") // this may also come from database or somewhere
    If (userchoice == 1)
    reponse.setContentType("application/vnd.ms-excel");
    else
    reponse.setContentType(content="text/html");
    %>

  • How can we change the  color of the image for product display for different

    Hi All,
    How can we change the  color of the image for product display for different colors, to be displayed on site.
    jeff

    Hi priya,
    The requirement that you have stated is not a standard feature in ISA CRM. In order to do the same, you will need to modify the standard ISA code in Java. A common path for the solution would be as follows:
    1. Colours
        a. Maintain a text type for Color under the object - PCAT_ITM in Customizing.
        b. Modify the standard search of ISA to search within your new text type as well. (In standard it only searches in Description.
       c. Maintain all shirts colour data in the new type created in step a.
       d. Your requirement will be done!
    2. Price
      a. Use list prices for your shop and assign the appropriate condition type, acces in your catalog.
      b. Modify the standard search of ISA to search on the list prices as well.
      c. This too will be done!
    3. Accessories - This is very tricky, and will require some exploration. However, here's my opinion,
    a. Search for the standard function module, which will return the accessories when provided the product as an input.
    b. Modify this function module according to your requirement and ensure that it can be accessed remotely.
    c. Modify the JSP as in steps 1b and 2b above to call this new remote-enabled function module.
    d. Now you're done!!
    The ISA modification part is not so simple, you need a really good guy like "Sateesh Chandra" who'll be able to handle your requirements. This is all I could manage, hope it is some help to you!
    Thanks & Regards,
    Nelson.

  • Can't change the label text for the first time of  loading

    I have some problem to change the label text in the prerender method.
    I put a label on the form and set the text value to "Customer" on the text properities , and I would like to change the lable text to "Supplier" in the prerender method, I found some strange behaviour.
    If I type nothing on the label text of the properties , I can change the lable text on the prerender method on the first time of the form load .
    If I put something on the label text of the properties , the text label can't be changed on the first time of form loaded, the lable can be changed if I refresh the form or reload the form.
    Could anyone help me to solve this kinds of problem ?
    Thanks

    This is a tough one to explain. Here is one explanation from the Delving Into Components tutorial:
    As with the JavaServer Pages implementation, when the server constructs a page from JSP source, the tag attribute settings in the JSP source take precedence over runtime settings. For example, if you set the text property for a Static Text component to "moon," the IDE adds text="moon" to the Static Text component's tag in the JSP file. Even if the page's prerender method has a staticText1.setText("sun") statement, the Static Text component shows "moon" when the application renders the page. If the page is rerendered, the staticText1.setText("sun") statement takes affect and the Static Text component shows "sun." If you visit another page and come back, the server once again constructs the page from the JSP source, the values set in the JSP tag attributes take precedence, and the page displays "moon."

  • Can't change the lable text

    I found some problem to change label text in the prender method , I create a label on the form and type "Customer" on the properties text .
    I want to change label from "Customer" to "Supplier" in the prerender method , I found some strange behaviour.
    If I type something on the properties text , I can't change the label text on the prerender method for the first time to load the form. If I submit the form , the label text can be changed.
    If I do not type anything on the properties text, I can change the lable text on the prerendner method without any problem , no matter it is first load or submit .
    Anyone can help me to solve this problem ?
    Thanks

    This is a tough one to explain. Here is one explanation from the Delving Into Components tutorial:
    As with the JavaServer Pages implementation, when the server constructs a page from JSP source, the tag attribute settings in the JSP source take precedence over runtime settings. For example, if you set the text property for a Static Text component to "moon," the IDE adds text="moon" to the Static Text component's tag in the JSP file. Even if the page's prerender method has a staticText1.setText("sun") statement, the Static Text component shows "moon" when the application renders the page. If the page is rerendered, the staticText1.setText("sun") statement takes affect and the Static Text component shows "sun." If you visit another page and come back, the server once again constructs the page from the JSP source, the values set in the JSP tag attributes take precedence, and the page displays "moon."

  • Changing a jsp in application

    I have a java web application that is running on Sun's web server for a few years. It consists of jsp pages. In one of the jsp pages, there is a string for database. The database location and name is changing.
    I can change the jsp page in notepad with the new database name, but how do I make it available to the application .... Do I need to compile the jsp page ?
    Thanks

    Yes, that's one use of the include directive, lets you add content inline. You missed an "@" there though. It's <%@ include...
    EDIT: One word of warning; it is not mandatory for the container to recompile the including JSPs if the included resource is changed! It seems you have a smart container which detected that your included JSP had been modified and so it's reflecting the changes in the other files too. But this is not required behaviour and so you shouldn't count on it. AFAIK, Tomcat will also do the same.
    Also, this is a good reason why, even though it seems like a good idea to put the DB URL into one JSP and include it everywhere so that you have only one entry to change when the DB changes, it's still risky. A better way would be to put it as a <context-param> or something similar.
    Edited by: nogoodatcoding on Sep 28, 2007 10:15 PM

  • Can we include a JSP page in an already included JSP Page

    Hi guys,
    I have a doubt with JSP include tag. The problem is ..
    Can we include a JSP page in an already included JSP Page
    AS shown below
    I have one JSP page
    Index.jsp
    -in this I am including "include.jsp"
    -Again within the "include.jsp" I am including "include1.jsp"
    It is neither giving an error nor displaying the content which is there in the "include1.jsp" but it is displaying the content of "include.jsp"
    first of all let me know whether it is possible or no.. If so then why is it not coming and what is required to do this..
    fast...
    Thanks
    Sreenadha Reddy K

    Hi guys,
    I have a doubt with JSP include tag. The
    g. The problem is ..
    Can we include a JSP page in an already included JSP
    Page
    AS shown below
    I have one JSP page
    Index.jsp
    -in this I am including "include.jsp"
    -Again within the "include.jsp" I
    he "include.jsp" I am including "include1.jsp"
    It is neither giving an error nor displaying the
    content which is there in the "include1.jsp" but it is
    displaying the content of "include.jsp"
    first of all let me know whether it is possible or
    no.. If so then why is it not coming and what is
    required to do this..
    fast...
    Thanks
    Sreenadha Reddy KIt is possible , u just have to change all the files and save them all again, clear the temp dirs where all the jsp's as compiled. Now after all this try , it should work .

  • Can't change the include page.

    Hi,
              This is the section:
              page1.jsp
              <%@ include file="page2.jsp" %>
              request page1.jsp
              Now I want change page2.jsp and replace the original one, But the exception
              say that page2.jsp has been used by other program, and can't replace it.So I
              have to restart weblogic.
              Pan
              

    Hi,
              This is the section:
              page1.jsp
              <%@ include file="page2.jsp" %>
              request page1.jsp
              Now I want change page2.jsp and replace the original one, But the exception
              say that page2.jsp has been used by other program, and can't replace it.So I
              have to restart weblogic.
              Pan
              

  • How can i change the particular node color in Jtree?

    I have constructed the tree.i dont know how to set the color for the particular node then how can i change the particular node icon depends on some conditions like if we will give the input whether it is available in jtree that node icon only changed.Anyone please help me as soon as possible.

    hi,
    i saw that tutorial.from that book i dont get the particular node cell renderer.i got a cell renderer for tree only.i attached my code in this mail.pls see and help me if u will do
    mport pack.Prop;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Font;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Properties;
    import java.util.Set;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.text.Position;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.MutableTreeNode;
    import javax.swing.tree.TreeCellRenderer;
    import javax.swing.tree.TreePath;
    public class ReadProperty3 extends JFrame{
    String str,key;
    static JTree tree;
    static Vector v;
    StringTokenizer st;
    static DefaultMutableTreeNode root;
    DefaultMutableTreeNode t;     
    public Object[] o;
    public static void main(String[] args) throws IOException {
    ReadProperty3 r = new ReadProperty3();
    Prop p=new Prop();
    JFrame f=new JFrame();
    p.show();
    Object[] o=v.toArray();
    int startRow = 0;
    String prefix =p.s;
    TreePath path = tree.getNextMatch(prefix, startRow, Position.Bias.Forward);
    //if(prefix.equals(root.getChildAt(0).toString()))
    if(prefix.equals("2000"))
         System.out.println("Node 2000 found");
         else if(prefix.equals("3000"))
              System.out.println("Node 3000 found");
         else if(prefix.equals("4000"))
              System.out.println("Node 4000 found");
         else
              System.out.println("Node not found");
         for(int i=0;i<v.size();i++)
              //((DefaultTreeModel)tree.getModel()).reload();
              DefaultTreeCellRenderer ren=(DefaultTreeCellRenderer)tree.getCellRenderer();
              Icon openIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon closedIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon leafIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/read.gif");
              if(o[0].equals(p.s))
                   ren.setBackgroundSelectionColor(Color.MAGENTA);
                   ren.setBackgroundNonSelectionColor(Color.YELLOW);
                   //ren.setTextSelectionColor(Color.YELLOW);
                   //ren.setTextNonSelectionColor(Color.BLUE);
                   ren.setClosedIcon(closedIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,14));
              else if(o[1].equals(p.s))
                   ren.setLeafIcon(leafIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,10));
                   UIManager.put("Tree.leafIcon", leafIcon);
              else if(o[2].equals(p.s))
                   ren.setOpenIcon(openIcon);
                   ren.setFont(new Font("Dialog",Font.BOLD,9));
    public ReadProperty3(){
         super("JTree With Properties");
         try{
    int c = 0;
    while(c == 0){
    c = 1;
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    System.out.print("Enter file name which has properties extension :");
    str = bf.readLine();
    File f = new File(str + ".properties");
    if(f.exists()){
    Properties pro = new Properties();
    FileInputStream in = new FileInputStream(f);
    pro.load(in);
    System.out.println("Key: " + pro.keySet());
    System.out.print("Enter Key : ");
    key = bf.readLine();
    String p = pro.getProperty(key);
    st = new StringTokenizer(p,"=,");
    root=new DefaultMutableTreeNode(key);
    v=new Vector();
    while(st.hasMoreTokens())
         String val=st.nextToken();
         v.add(val);
         o=v.toArray();
         System.out.println(val);
         t=new DefaultMutableTreeNode(val);
         root.add(t);
         tree=new JTree(root);
         tree.setEditable(true);
         JScrollPane jp=new JScrollPane(tree);
         // tree.setCellRenderer(new CellRenderer());
         Container content=getContentPane();
         content.add(jp,BorderLayout.CENTER);
    setSize(250,275);
    setVisible(true);
    addWindowListener(new ExitListener());
    else{
    c = 0;
    System.out.println("File not found!");
    catch(IOException e){
    System.out.println(e.getMessage());
    }

  • 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.

  • Can't change change connection when DB is not available

    Hi,
    I have to change the connection of my JSP/BC4J application before I create a WAR file. The "Business Components Project Editor" of the root Appmodule does not let my change the connection because the Production-DB of the selected connection is not available.
    I'm testing my application against a Test-DB in my local network, but the Production-DB stands in a separate network only reachable via SSH/SCP.
    How can I change the connection of my application for deployment on a production system (using Tomcat as web container).
    Please, don't tell my that I can manually edit the bc4j.xcfg file. There must be a better way using JDev904. ;-)
    Thanx in advance,
    Markus

    The JPX-level connection is a design-time only connection.
    The Configuration Editor is where you would change the runtime connection information.
    Or, you could also consider using JDBC Datasources where the connection information is picked up indirectly from the container at runtime.

  • Java variables calculation on change in JSP (Excel replica)

    I have a excel sheet that I need to replicate in JSP (using struts 1 framework). Now everything is done but I am stuck at the calculation part. As you might have seen in excel, some columns are calculations based on other columns.
    So if I change field 'a', 'd' field should change automatically based on its formula (let's say, d=a*1.1 +b*2.1).
    Now I tried to use the funstion in javascript where I read 'a' and 'b' values from JSP, then I calculate and everything works fine. But when I try to assign the calculation result for field 'd' in JSP throush javascript, 'd' does not change.
    function adjustCalcs ()
    var a = eval("document.form.al.value");
    var b = eval("document.form.b.value");
    var dCalc = ((a * 1.05) + (b * 1.1));
    document.form.d.value = dCalc ; (this is where it should change the value of field 'd' in JSP, but ti won't...donno why?)
    Or is there any better way to do these dynamic changes in JSP ? Would appreciate the insight.
    Thanks,

    Fine. What's your problem in JSP side then? Do you want to let Java take over the calculation and "dynamic stuff" ? Then you need to let Javascript submit the form to the server side during the change event so that JSP can then display the result using taglibs/EL. But this is less good for user experience as this costs effectively one HTTP request and the user would see a "flash of content". Alternatively you can use Ajax for this to do it all asynchronously.

  • How can I change Workflow page layout

    Hi,
    I have developed a Workflow for Business trips in company where I'm working. Workflow works fine, but I'm not happy with page layout of my workflow...it's too ordinary and too gray:(
    How can I change Workflow page layout?!?
    I would like to make templates for header, footer, right menu...to put company logo...
    Is there any tutorial or documentation which explain it through example...
    Thanks a lot

    Hi,
    For standalone workflow, you need to look at the WFA_HTML package to change the code. I'm not sure that this is supported though.
    You can change the logo by putting your new logo file in the path specified for images in the Apache configuration file for workflow. I believe that the file is called something like WFLOGO.gif but I'm not sure off the top of my head. If you replace it with your file, it should appear once you bounce Apache.
    To be honest, you'd be better off writing your own screen for submission (either in Forms, JSP or mod PL/SQL), and use the standard screens for administration purposes. That would give you full flexibility over the design of the submission of a process, no support issues, plus users would have their own URL and administrators a completely separate one, to ensure that it is immediately clear which environment they are working in.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

Maybe you are looking for

  • Voice memos to GarageBand

    Can voice memos be exported to GarageBand?

  • Using Variable Substitution

    Hi Im new to XI and Im testing a simple file to file scenario by using Variable Substitution method. PFB the input payload of my scenario: <?xml version="1.0" encoding="UTF-8" ?> - <ns0:INF94145_Emp_Input_MT xmlns:ns0="http://infosys.com/xi/projects/

  • When I click on the Mozilla Firefox icon, I cannot get to my homepage so I can use the Internet.

    I have Windows XP. When I usually click on the Mozilla Firefox icon on my desktop, my Homepage comes up with weather, news headlines, etc. Now all I get is a screen with a search box for Google! I cannot get to the Internet anymore! Help!

  • Populating Empty Fields for Existing Internal Table Using For All Entries

    I have an internal table called itab_extract that populates without any issues in SELECT A and SELECT B below. Trying to avoid looping, I am using select DB table 'for all entries' in itab_extract. I want the empty fields in itab_extract to populate

  • Can't install additional content

    I installed OS X Yosemite and installed Logic Pro X. Logic installed fine and I tried to download and install additional content. I got done download all additional content and it stopped installing. I have no idea how to get the additional content.