Results 1 to 2 of 2
  1. #1
    vasug is offline Member
    Join Date
    Jan 2010
    Posts
    7
    Rep Power
    0

    Default jsp preview plugin

    Hi,

    I was not able to preview the jsp that i have written. Is there any plugin for that. I am using eclipse 3.5.1(galileo).

    Thanks in Advance
    Vasu

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    5

    Default

    The closest thing I have found is to kind of have a tomcat (or jetty) application server instace launched from within Eclipse. Like a managed server instance. This comes with something in the J2EE flavor of eclipse. I never really got it to work well for non trivial web applications though. And it seemed slower to get up and going.

    If it is lay out changes to the JSP you want to test, I used to build my project in Eclipse such that the folder structure was that of how it would look in a deployed web application folder, like having a top level WEB-INF folder, my sources were then in WEB-INF/src. Eclipse compiled java classes into WEB-INF/classes.

    The motivation being, I would check out the module [from subversion] into my local dev tomcat service webapps folder, and import the module into my workspace by choosing to not copy the files into the workspace folder, that is run it in eclipse directly from the tomcat instance.

    This allowed me to use eclipse, or any text editor for that matter, to directly edit files in the live instance. there was no deploy step, and because the folder was the one backed by the version control system, i just had to check it back in when complete.

    But I met a lot of resistnace from other co workers, not used to thinking like a webapp folder structure. And also, it was very annoying when I started using the Eclipse WTP plugin, because they seem to think the project should have a "WebContent" folder, and the classic top level sources, classes folders.

    Just an idea though.

Similar Threads

  1. Creating a jpeg file: "no preview available"
    By ScottVal in forum Advanced Java
    Replies: 1
    Last Post: 10-24-2009, 03:31 AM
  2. Debugging app using J2EE Preview Server?
    By mesocyclone in forum Eclipse
    Replies: 0
    Last Post: 08-14-2009, 09:20 PM
  3. Creating preview images of files in java
    By sandeepk84@gmail.com in forum Advanced Java
    Replies: 3
    Last Post: 07-04-2009, 10:29 PM
  4. Print the text file and print preview them
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-22-2008, 11:04 PM
  5. AnyEdit Plugin For Eclipse Plugin
    By JavaForums in forum Eclipse
    Replies: 0
    Last Post: 05-18-2007, 12:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •