facebook

JSP Preview

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

    Running the following:

    ===============================
    Window XP SP1

    Eclipse SDK
    Version: 3.1.0
    Build id: I20050627-1435

    MyEclipse
    Version: 4.9 Milestone 3 (3.9.310)
    Build-Id: 20050808-4.0-Milestone-3

    Java
    JDK 1.5

    ================================

    I was wondering if it’s possible to set the root location of the web project. When i preview a jsp, right-click on the preview pane and then select properites, i see this:

    file://C:\JAVA\eclipse\workspace\Portal\WebRoot\company\company_details.jsp_preview_.html

    Is it possible to set the root location of the web project to http://localhost:8080/ so that i can the correct rendering of the jsp? I know by reading past threads, that this functionality was not there. After i upgraded i was hopting to find this setting but i haven’t seen anything in the eclipse properties to set such an option.

    Please let me know, Thank you

    Russ

    #235520 Reply

    Riyad Kalla
    Member

    Russ,
    Can you explain in more detail what you mean? The link you gave is to a local file, so we can’t see it. Are your relative paths in your webapp not being resolved in the preview?

    #235527 Reply

    I realize you won’t be able to see the links.

    I’m asking if it’s possible to set a property somewhere in eclipse so that the jsp preview will resolve the jsp to http://myrootpath:8080/myjsp.jsp instead of file://C:\path_to_eclipse\my_workspace\my_project\myjsp.jsp._preview_.html

    I want to see a preview of the jsp served by my tomcat container, not a rendered html preview. This also affects css imports.

    Thanks
    Russ

    #235530 Reply

    Riyad Kalla
    Member

    Russ,
    There is not a property somewhere to get the result you want, although I would suggest that using an explded deployment and keeping tomcat running should give you similar results (you just need to click over to your web browser and hit refresh)

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP Preview

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