Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JSP as a second class citizen
JSP as a second class citizen [message #171703] Tue, 20 June 2006 13:41 Go to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
Hi,
I've noticed that when working with JSPs, I don't have all of eclipse's
services available. For example, when I search for references to a method
(in the entire workspace), I don't get references in JSPs where the method
is invoked. Another example is when changing a method's name through
refactoring - the method's references in JSPs are not updated.
Is this intentional?
Re: JSP as a second class citizen [message #171734 is a reply to message #171703] Tue, 20 June 2006 21:55 Go to previous messageGo to next message
Eclipse User
Originally posted by: dserodio.gmail.com

Zohar wrote:
> Hi,
> I've noticed that when working with JSPs, I don't have all of eclipse's
> services available. For example, when I search for references to a method
> (in the entire workspace), I don't get references in JSPs where the method
> is invoked. Another example is when changing a method's name through
> refactoring - the method's references in JSPs are not updated.
> Is this intentional?

I've posted questions like this before, and the answer I got was along
the lines of "scriptlets are bad, you shouldn't be using scriptlets".

HTH,
Daniel Serodio
Re: JSP as a second class citizen [message #171742 is a reply to message #171734] Wed, 21 June 2006 05:31 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
So why support them at all...?

"Daniel Serodio" <dserodio@gmail.com> wrote in message
news:e79qso$rjd$1@utils.eclipse.org...
> Zohar wrote:
>> Hi,
>> I've noticed that when working with JSPs, I don't have all of eclipse's
>> services available. For example, when I search for references to a method
>> (in the entire workspace), I don't get references in JSPs where the
>> method
>> is invoked. Another example is when changing a method's name through
>> refactoring - the method's references in JSPs are not updated.
>> Is this intentional?
>
> I've posted questions like this before, and the answer I got was along
> the lines of "scriptlets are bad, you shouldn't be using scriptlets".
>
> HTH,
> Daniel Serodio
Re: JSP as a second class citizen [message #171750 is a reply to message #171734] Wed, 21 June 2006 05:47 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
Why are they so bad and what is the alternative to using them?

"Daniel Serodio" <dserodio@gmail.com> wrote in message
news:e79qso$rjd$1@utils.eclipse.org...
> Zohar wrote:
>> Hi,
>> I've noticed that when working with JSPs, I don't have all of eclipse's
>> services available. For example, when I search for references to a method
>> (in the entire workspace), I don't get references in JSPs where the
>> method
>> is invoked. Another example is when changing a method's name through
>> refactoring - the method's references in JSPs are not updated.
>> Is this intentional?
>
> I've posted questions like this before, and the answer I got was along
> the lines of "scriptlets are bad, you shouldn't be using scriptlets".
>
> HTH,
> Daniel Serodio
Re: JSP as a second class citizen [message #171758 is a reply to message #171750] Wed, 21 June 2006 08:05 Go to previous messageGo to next message
Eclipse User
Originally posted by: mikael.staldal.ingen-reklam-univits.com

Zohar wrote:
>> I've posted questions like this before, and the answer I got was
>> along the lines of "scriptlets are bad, you shouldn't be using
>> scriptlets".

> Why are they so bad and what is the alternative to using them?

Scriptlets in JSP are bad because it's messy to mix HTML and Java code
in the same file, and because of the risk of including business logic
in the presentation layer.

The alternative, if you use JSP, is to use taglibs. Another alternative
is to not use JSP at all, use some other presentation layer template
technology instead, e.g. Velocity (http://jakarta.apache.org/velocity/)
or LSP (http://sourceforge.net/projects/lspx).

(This is not an Eclipse issue, it's a general Java web app design issue.)
Re: JSP as a second class citizen [message #172188 is a reply to message #171703] Fri, 23 June 2006 05:21 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2274
Registered: July 2009
Senior Member
Zohar wrote:
> I've noticed that when working with JSPs, I don't have all of eclipse's
> services available. For example, when I search for references to a method
> (in the entire workspace), I don't get references in JSPs where the method
> is invoked. Another example is when changing a method's name through
> refactoring - the method's references in JSPs are not updated.
> Is this intentional?

Not at all. If you're finding that there are problems, ensure that
all of your JSP files have been saved to disk. If you still have
problems, please open a bug report against the JSP component (see
below) and include exactly which WTP build you are using. Please
try it with at least 1.0.2 or higher.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=jst.jsp

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Validating XML files with DTD in Catalog
Next Topic:Configuration of html formatting style
Goto Forum:
  


Current Time: Mon Sep 22 00:08:44 GMT 2014

Powered by FUDForum. Page generated in 0.03198 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software