Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The meek shall inherit the earth; the rest of us will go to the stars.


devel / comp.lang.java.programmer / Re: Question about JSP

SubjectAuthor
* Question about JSPRalf Schneider
+* Re: Question about JSPe.d.pro...@gmail.com
|`- Re: Question about JSPRalf Schneider
`- Re: Question about JSPArne Vajhøj

1
Question about JSP

<td61h9$5bcg$1@gwaiyur.mb-net.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=159&group=comp.lang.java.programmer#159

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mb-net.net!open-news-network.org!.POSTED.2a02:908:f766:8600:c5b7:2660:14fd:de4b!not-for-mail
From: schneiderrx@freenet.de (Ralf Schneider)
Newsgroups: comp.lang.java.programmer
Subject: Question about JSP
Date: Fri, 12 Aug 2022 17:10:01 -0000 (UTC)
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <td61h9$5bcg$1@gwaiyur.mb-net.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 12 Aug 2022 17:10:01 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net; posting-host="2a02:908:f766:8600:c5b7:2660:14fd:de4b";
logging-data="175504"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Pan/0.147 (Sweet Solitude; afc1447
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:yFT8IoUAbKYNOv1nCJIYLp1XApo=
X-Face: X-Face:
&=mVyK;nP+{dF]KrbsGtFE4N{Oow[K&/F/+i1?Rf0?=G:&|p|^(`8})'+zLGjSdE_@5WaL/
_\U{Vi}uFk%sFC=mttEdUu99}#obeSX\n_y9M}9p,~luY|Fj=/\8ciqH(VS1b:R
.<[/vye&Th3"Pp7d (h/
X-User-ID: U2FsdGVkX19CJ32VMc5CDz11E7xCz+/psP5rdt4YOVsuya+1vN/L4Q==
 by: Ralf Schneider - Fri, 12 Aug 2022 17:10 UTC

Dear All,

one Question I have about JSP files: Are they old fashioned today as some
people say or is this only one opinion from many others ?

I will write web pages with Spring and I don't want to mix JSP files with
thymeleaf/html pages.

Best regards.
Ralf

Re: Question about JSP

<56b3b21e-0fb9-428a-9709-195f048086b2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=160&group=comp.lang.java.programmer#160

  copy link   Newsgroups: comp.lang.java.programmer
X-Received: by 2002:a05:622a:507:b0:344:6fcf:78f6 with SMTP id l7-20020a05622a050700b003446fcf78f6mr10116qtx.415.1660590118433;
Mon, 15 Aug 2022 12:01:58 -0700 (PDT)
X-Received: by 2002:a05:6870:c0cb:b0:118:8649:ab9f with SMTP id
e11-20020a056870c0cb00b001188649ab9fmr5470992oad.224.1660590118143; Mon, 15
Aug 2022 12:01:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.java.programmer
Date: Mon, 15 Aug 2022 12:01:57 -0700 (PDT)
In-Reply-To: <td61h9$5bcg$1@gwaiyur.mb-net.net>
Injection-Info: google-groups.googlegroups.com; posting-host=98.237.40.232; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H
NNTP-Posting-Host: 98.237.40.232
References: <td61h9$5bcg$1@gwaiyur.mb-net.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <56b3b21e-0fb9-428a-9709-195f048086b2n@googlegroups.com>
Subject: Re: Question about JSP
From: e.d.programmer@gmail.com (e.d.pro...@gmail.com)
Injection-Date: Mon, 15 Aug 2022 19:01:58 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2597
 by: e.d.pro...@gmail.com - Mon, 15 Aug 2022 19:01 UTC

> one Question I have about JSP files: Are they old fashioned today as some
> people say or is this only one opinion from many others ?
>
Web apps tend to start with JSP files. I don't know what you mean by old fashioned; it does support a lot of syntax which is currently not recommended..
If you write clean tags with expression language (EL) and libraries (JSTL), it works fine.
If you're starting a clean new app, I think you can avoid JSP. JSP files can call other code, other code doesn't do so well calling JSP files, so maybe unavoidable working with an existing app already full of JSPs.

JSP is all back end. There's a pre-process that turns it into a .java file when the servlet gets a request for it. That Java program runs all back end code first (you can write Java code in a JSP file using scriptlets but there is a better way now). Then it kicks off any in-line Javascript code. Then it sends any html code to the front end and loads that. If you want to do back end code before the JSP loads and avoid the scriptlets, you can save the JSP file somewhere other than the default web path, catch the requests with a servlet, set pass values using EL, then forward the request to the JSP file.

It is probably best to avoid JSP files if nothing in the app is forcing the use of them. If you can write them clean, they're basically fancy HTML, but can still be harder to debug.

Re: Question about JSP

<tdfk0c$17u08$1@gwaiyur.mb-net.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=161&group=comp.lang.java.programmer#161

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.2a02:908:f766:8600:f5eb:2328:3d8:4840!not-for-mail
From: schneiderrx@freenet.de (Ralf Schneider)
Newsgroups: comp.lang.java.programmer
Subject: Re: Question about JSP
Date: Tue, 16 Aug 2022 08:20:28 -0000 (UTC)
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <tdfk0c$17u08$1@gwaiyur.mb-net.net>
References: <td61h9$5bcg$1@gwaiyur.mb-net.net>
<56b3b21e-0fb9-428a-9709-195f048086b2n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 16 Aug 2022 08:20:28 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net; posting-host="2a02:908:f766:8600:f5eb:2328:3d8:4840";
logging-data="1308680"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Pan/0.147 (Sweet Solitude; afc1447
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:UAfo9b4uwGhjH5VYei/nvlg+Ais=
X-User-ID: U2FsdGVkX18EioT/UYX657NYr1jd1mvYfAN7YBnrjEZDMsLpvigLpQ==
X-Face: X-Face:
&=mVyK;nP+{dF]KrbsGtFE4N{Oow[K&/F/+i1?Rf0?=G:&|p|^(`8})'+zLGjSdE_@5WaL/
_\U{Vi}uFk%sFC=mttEdUu99}#obeSX\n_y9M}9p,~luY|Fj=/\8ciqH(VS1b:R
.<[/vye&Th3"Pp7d (h/
 by: Ralf Schneider - Tue, 16 Aug 2022 08:20 UTC

Am Mon, 15 Aug 2022 12:01:57 -0700 (PDT) schrieb e.d.pro...@gmail.com:

> If you're starting a clean new app, I think you can avoid JSP.

> It is probably best to avoid JSP files if nothing in the app is forcing
> the use of them.

That is what I will do. Thank you for your explanation.

Re: Question about JSP

<tdh880$akn$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=162&group=comp.lang.java.programmer#162

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.lang.java.programmer
Subject: Re: Question about JSP
Date: Tue, 16 Aug 2022 19:11:58 -0400
Organization: Aioe.org NNTP Server
Message-ID: <tdh880$akn$1@gioia.aioe.org>
References: <td61h9$5bcg$1@gwaiyur.mb-net.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="10903"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.12.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Tue, 16 Aug 2022 23:11 UTC

On 8/12/2022 1:10 PM, Ralf Schneider wrote:
> one Question I have about JSP files: Are they old fashioned today as some
> people say or is this only one opinion from many others ?
>
> I will write web pages with Spring and I don't want to mix JSP files with
> thymeleaf/html pages.

JSP is an old technology. But it is also a somewhat foundational
technology for Java web development. I will claim that all Java
web developers should know JSP.

So you should definitely learn JSP. Whether you should use JSP
for a project will depend on the framework choice.

DIY framework: I would say go for JSP - it is simple and easy.

JSF: definitely facelet - JSP is officially obsolete and lots
of JSF stuff does not work with JSP.

Spring MVC: different people have different preferences - some
like JSP - some like Thymeleaf - you pick what you like (or
you pick what has already been chose if it is an existing
application).

Arne

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor