For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 8 replies, 2 voices, and was last updated 21 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
dynamo92MemberHi, I have some questions regarding JSP 2.0 support in 3.7.2. I know these are probably FAQ’s, but I’ll be darned if I can find answers.
I can create simple Web Projects and deploy them to Tomcat and they run and debug. No sweat. However, I can’t seem to get simple EL examples to run.
For example, a JSP with basically
${header["host"]}in it will work fine if I run it from Tomcat’s sample JSP2 apps, however, if I deploy and run it from MyEclipse I get the EL literal (${header[“host”]}) instead of the expected value.
Also, there doesn’t seem to be support for .tag’s. Is that true? You site explicitly says JSP 2.0 EL. Is that all the support there currently is? Any ETA on more?
Thanks!
– System Setup ——————————-
Operating System and version: XP Pro
Eclipse version: 3.0M8
Eclipse build id: 200403261517
Fresh Eclipse install (y/n): Y
Other installed external plugins: None
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
MyEclipse version: 200404091200-3.7.2GA
Eclipse JDK version: 1.4.2_04
Application Server JDK version: 1.4.2_04
Are there any exceptions in the Eclipse log file? No exceptions, but this..!SESSION Apr 28, 2004 07:10:34.245 ———————————————
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.osgi Apr 28, 2004 07:10:34.245
!MESSAGE Bundle reference:file:c:/szt/eclipse/plugins/org.eclipse.debug.ui_3.0.0/ [19] was not resolved
!ENTRY org.eclipse.osgi Apr 28, 2004 07:10:34.245
!MESSAGE Bundle reference:file:c:/szt/eclipse/plugins/org.eclipse.jdt.debug_3.0.0/ [28] was not resolvedApril 28, 2004 at 8:50 am #206456
Riyad KallaMemberHowever, I can’t seem to get simple EL examples to run.
I think this is an excellent example of what our users will want. We will need to remember to include a few templates that support JSP 2.0 and EL with the new release so users can have a look at them as examples.
if I deploy and run it from MyEclipse I get the EL literal (${header[“host”]}) instead of the expected value.
This isn’t a MyEclipse thing, you need to change your web.xml header to the Servlet 2.4 spec in order for EL to be evaluted. I know this because I almost drove myself mad trying to get it to work one day 🙂
Also, there doesn’t seem to be support for .tag’s. Is that true?
Can you be more specific what you mean? Do you meant the tagdir directive in @taglib statements? (That one is in the FAQ)
April 28, 2004 at 9:07 am #206458
dynamo92MemberWe must be on the same wave length. I was figuring out the web.xml issue right as you were typing your response.
Let me explain a bit further regarding the .tags issue….
First, I’m trying to recreate the panels example found in Tomcats JSP2 examples app. I’ve moved panel.jsp into my web app and have moved panel.tag into /WEB-INF/tags.
The line
<%@ taglib prefix="tags" uri="/WEB-INF/tags" %>in panel.jsp gives me a “Could not load tld for uri=”/WEB-INF/tags” in the gutter. (I changed to uri= per the FAQ). That error makes sense if this was JSP1 since you need to explicilty reference a .tld file. However, this should be OK for 2.0.
That’s what has drawn me to the conclusion that you’ve only implemented EL support for JSP 2.0 at this point.
Thanks!
April 28, 2004 at 9:11 am #206459
Riyad KallaMemberThat’s what has drawn me to the conclusion that you’ve only implemented EL support for JSP 2.0 at this point.
Actually we only support JSP 1.1/1.2 and Servlet 2.2/2.3 with MyEclipse 2.7/3.7, our 2.8 release (June) will have preview support for JSP 2.0.
Does this answer your question?
April 28, 2004 at 9:42 am #206464
dynamo92MemberThat’s what I suspected. Here’s what’s got me confused.
On your home page you say “Support for JSP 2.0…”. When I first read that I assumed it was the inline EL, .tags, the whole shebang. Waiting a few months for further 2.0 is no sweat at all.
Perhaps you could clarify this a bit on your site – “3.7.2 supports JSP 2 inline EL and el functions but does not support .tags, etc….”.
Thanks for a great product and fantastic service!
April 28, 2004 at 10:52 am #206467
Riyad KallaMemberI’m checking into this for you (I wasn’t aware of the editor supporting EL already…)
April 28, 2004 at 10:34 pm #206488
Riyad KallaMemberIt turns out that the JSP Editor and Compiler support the EL usage now but the support is minimal, we will be expanding this support in 2.8.
May 25, 2004 at 6:32 am #207425
dynamo92Member@support-rkalla wrote:
It turns out that the JSP Editor and Compiler support the EL usage now but the support is minimal, we will be expanding this support in 2.8.
I was messing around with the .tags issue a bit more and thought I’d share my experience (and partial) success with everyone. I’d be interested in knowing if anyone has a solution to the remaining issues.
I’m using Eclipse 3.0M8 and ME 200404091200-3.7.2GA and I’ve been wanting to use the .tag file support found in JSP2. I understand that full JSP2 support is coming in 2.8 and beyond – that’s fine by me! However, for the impatient amongst us, here’s what you can do now.
What clued me in was Hans Bergsten’s “JavaServer Pages” 3rd Edition. In particular, the tail end of chapter 11 on page 170. Following that example, I setup a web project that in part has
/WebContents/sample.jsp /WebContents/WEB-INF/mytag.tld /WebContents/WEB-INF/tags/mytag.tagmytag.tld contains a <tag-file> definition that references the mytag.tag.
In sample.jsp I have —
<%@ taglib uri="/WEB-INF/mytag.tld" prefix="my"%> .... <my:mytag />Running this works fine. When I hit sample.jsp, lo and behold, the contents of mytag.tag are included!! Exactly what I need.
However!! Here’s my problem. The <my:mytag /> in sample.jsp is flagged with an error “Unkown user tag <my:mytag … check /WEB-INF/mytag.tld”.
Like I said, I know more support for JSP2 is coming in 2.8 and beyond, but I thought I’d throw this out there in case someone had any thoughts on how to work around this. It’s difficult to work with these errors because of sensitivities in the JSP editor/validator. The errors tend to either hide real one or introduce phantoms.
Thanks!
May 25, 2004 at 9:48 am #207436
Riyad KallaMemberdynamo92,
Excellent foot work, I think this will be very helpful to the other users trying this and I will also kick this to the devs as a “test case” for them to use. Thanks! -
AuthorPosts
