- This topic has 12 replies, 2 voices, and was last updated 19 years, 2 months ago by
Riyad Kalla.
-
AuthorPosts
-
szafirMemberThe auto completion suggests the use of implicit objects such as application, out but the validation engine warns us that these variables can only be null. A smaller issue is the also the “exception” implicit object available when the isErrorPage page directive is set to true.
May 25, 2006 at 12:25 pm #252551
Riyad KallaMemberCan you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
May 25, 2006 at 1:34 pm #252561
szafirMember*** Date: Thu May 25 14:26:54 EDT 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_06*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0 Milestone 1
Build id: 20060515-5.0-M1*** Eclipse details:
Eclipse SDKVersion: 3.2.0
Build id: I20060519-1206Eclipse Platform
Version: 3.2.0.v20060518-_OZ2g5CC6lxEcKN
Build id: I20060519-1206Eclipse RCP
Version: 3.2.0.v20060511-2000-VDNgUk84W-MjLLR
Build id: I20060519-1206Eclipse Java Development Tools
Version: 3.2.0.v20060518-0800-F7snp7fkt1-SXVP
Build id: I20060519-1206Eclipse Plug-in Development Environment
Version: 3.2.0.v20060511-1200-6zXJJzJsQooFXED
Build id: I20060519-1206Eclipse Project SDK
Version: 3.2.0.v20060404-uDflzhCgQw7A-gJ
Build id: I20060519-1206Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse-3.2RC5\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
9c_74
-vm
C:\Program Files\Java\jdk1.5.0_06\bin\javaw.exeThe error log is very big but it doesn’t seem to contain anything relevant to my problems
May 25, 2006 at 2:24 pm #252567
Riyad KallaMemberTry and copy paste this into a file and save it, on my install it shows no validation errors:
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <% 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 'index.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> <%= request.getSession() %> <%= application.getMajorVersion() %> This is my JSP page. 2<br> Hello ${ (param.isLoggedIn == false) ? "" : param.name } </body> </html>
If you see that I’ve missed something, give me a snippet of code to test.
May 25, 2006 at 2:36 pm #252568
szafirMemberThis is a perfectly good example and it yelds three warnings:
1) line 1:The import java.util is never used
which is fine
2) line 2:The variable out can only be null; it was either set to null or checked for null when last used
which is very weird because out is never used
3) line 26:The variable application can only be null; it was either set to null or checked for null when last used
which is the problem i was referring to
May 25, 2006 at 2:37 pm #252569
szafirMemberActually in the second warning, the line number is 5, but this one is weird, maybe it will go away if i restart something, so maybe ignore it.
May 25, 2006 at 2:40 pm #252570
szafirMemberA simpler version to work with is the following, which only warns about the application being null:
<%@ page language="java" pageEncoding="ISO-8859-1"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>My JSP 'index.jsp' starting page</title> </head> <body> <%= application.getMajorVersion() %> </body> </html>
May 25, 2006 at 3:29 pm #252572
Riyad KallaMemberCan you open your Eclipse directory then go under plugins, do you have any “wtp” or “sse” plugins listed there? I cannot reproduce the behavior you are seeing.
May 25, 2006 at 3:32 pm #252573
szafirMemberNo they aren’t there, are they supposed to be there ? Was I supposed to install WTP prior to installing MyEclipse ?
May 25, 2006 at 3:39 pm #252574
szafirMemberI did the same test inside a new test project and there is no warning, so I suppose that my project has some configuration issues. If I find it, I will post it here.
May 25, 2006 at 3:40 pm #252575
szafirMemberSorry, the validation hadn’t run, same behaviour in a completely empty test web project.
May 25, 2006 at 3:44 pm #252577
szafirMemberActually, i wouldn’t bother with the warnings if the menu option “Remove All Validation Markers” was still under MyEclipse but for some reason it has been removed in 5.0M1.
May 26, 2006 at 9:58 am #252614
Riyad KallaMemberI’m in the midst of trouble shooting an issue with 5.0M1 where I see *no* validation markers, and in your case you are seeing too many. Let me get a handle on the validation in general and then I’ll look into this. In the mean time can you export this project to a ZIP and send it to me? support@genuitec.com ATTN Riyad, also include a link to this thread so I know why I’m getting it.
-
AuthorPosts