File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes JSP not getting converted to Java in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JSP not getting converted to Java in Eclipse" Watch "JSP not getting converted to Java in Eclipse" New topic
Author

JSP not getting converted to Java in Eclipse

Arpit Gadle
Ranch Hand

Joined: Dec 16, 2008
Posts: 69

Dear All,
I am having a copy Header.jsp with static menu(same for all users) inside it as backup for safer side. After having some problem in Header.jsp, which has code for creating different menu for different user. I deleted the later file and rename copy Header.jsp to Header.jsp. The problem is that after after users logs in, he is getting the same dynamic menu which is incorrect as i already replaced this with the static menu file. Can you clarify the reason for this
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Here is probably what happened. The JSP compiler depends on the JSP file's last modified timestamp. As long as the file does not have a newer timestamp than the last time the JSP compiler compiled the JSP, then it will not recompile. So I assume that the "copy Header.jsp" file has an older timestamp than what the "Header.jsp" had. To get the JSP compiler to recompile it, "touch" it to change the timestamp.


JBoss In Action
Arpit Gadle
Ranch Hand

Joined: Dec 16, 2008
Posts: 69

Thanks Peter, it worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP not getting converted to Java in Eclipse
 
Similar Threads
Problem of <frameset> tag with struts2
Highlight Menu Tab
Difference Between jsp include directive and include action element.
Drop Down Menu Problem
Problem With Tiles