facebook

Cache Problem and importing java class to jsp

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #215466 Reply

    Kevin_L
    Member

    Hi,

    Problem 1)
    I would like to know how I can fix the cache problem.
    For instance, I create calss called myClass which has method1().
    I have myjsp.jsp file calling myClass object… everything complie and works… Let say..I modified the method1() from myClass which will return string… Now.. myjsp.jsp is keep displaying old string… How can I use myEclipse to recompile the myClass so that myjsp is using the latest up-to-date class file.

    Problem 2)
    When I add jsp file to web project, how can I add java class into jsp automatically? Right now, I have to type it the whole line in jsp file at the top… Does myEclipse has feature to automatically add the class that it will use?

    I am talking about this line at the top of JSP page
    <%@ page language=”java” import=”edu.umd.sample.MyClass” %>

    #215467

    Kevin_L
    Member

    Oops.. I click the button so soon.. 🙂

    Here is the background..

    OS.. WinXP
    Eclipse 3.0
    MyEclipse : 3.8 Beta 2
    JVM 1.4.2
    Plugins: None but myEclipse

    Thanks in advance…
    ~K~

    #215468

    Scott Anderson
    Participant

    Kevin,

    On problem 1, if you use “Exploded Deployment” for your project then the changes you make to your Java classes should be updated into the running server when you save them, provided that you’ve got Project > Build Automatically selected along with Window > Preferences > Java > Debug > Show error when hotcode replace fails.

    On problem 2, this is an open enhancement request we hope to get to soon. Sorry for the inconvenience.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Cache Problem and importing java class to jsp

You must be logged in to post in the forum log in