- This topic has 1 reply, 2 voices, and was last updated 19 years, 5 months ago by Greg.
-
AuthorPosts
-
janmartinMemberHi support team,
I am a beginner with java and eclipse.
Trying the HelloWorld example i noticed, that the download
http://www.scottbolander.com/mozilla-1.6-xft-gtk2-pc-linux.tar.bz2
mentioned at
is no longer available.
However Google sugested:
http://www.linuxquestions.org/questions/archive/14/2004/05/3/181616
where i found
which seems to work after restarting Eclipse.
However, the helloWorld.jsp code looks different from the example-code
at http://www.myeclipseide.com/images/tutorials/webprojectdemo.htmMy code:
<%@ page language="java" import="java.util.*" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>My JSP 'helloworld.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> This is my JSP page. <br> <b> Watson come here</b> </body> </html>
and the Preview looks like this
<% __myeclipse-0__ %> <% __myeclipse-1__ %> This is my JSP page.
Watson come hereWhats wrong?
I am at Kanotix 2005-02, a Debia SID Linux.
Eclipse is:Version: 3.0.2
Build id: 200503110845with myEclipse
3.8.4+QF2
Build ID 200502031200-3.8.4+QF2Thank you,
JanP.S.:
Also the preview function still does not work in this forum.
(Firefox 1.04)
GregMemberHello Jan,
where i found
which seems to work after restarting Eclipse.
Thanks for this tip. We will update our documentation with the more stable link for the gtk2-enabled mozilla build.
However, the helloWorld.jsp code looks different from the example-code
at http://www.myeclipseide.com/images/tutorials/webprojectdemo.htmIs this the source jsp code or do you mean your page looks different in preview mode than in the tutorial?
and the Preview looks like this
<% __myeclipse-0__ %> <% __myeclipse-1__ %> This is my JSP page.
Watson come hereWhats wrong?
Actually, there is nothing wrong with your Preview mode. Our JSP preview renders many components in HTML to make the preview page look more like the deployed version. However, some of that HTML renders differently on Mozilla than it does on IE, for instance, IE doesn’t render anything between a <% %> tag, whereas mozilla does. We will be shioping a revamped JSP preview in milestone 3 of MyEclipse 4.0, and at that time will address this issue with mozilla.
P.S.:
Also the preview function still does not work in this forum.
(Firefox 1.04)I will notify the portal administrator with this information.
Thanks for the report.
-
AuthorPosts