Hi!

+1 on moving from controller JSPs (they should be convertible to servlets
rather easily).

A bit of history from the ancient times, JSP were chosen for top level JSPs
instead of servlets because they allowed direct edits when deployed on
tomcat, as opposed to servlets (we're talking early 2000s, Ant is the
de-facto build tool, probably Java 1.3, etc.), and that translated into
development speed, and they were also easier to debug: a live change and
voila, you could test again.

That speed of using JSPs made them a central choice on early development,
and that ended up reflecting in the name, that's the history behind
JSPWiki's name, IIRC. Templates should completely use JSTL, though.


cheers,
juan pablo

El mar, 1 dic 2026, 18:37, Arturo Bernal via dev <[email protected]>
escribió:

> Hi all,
>
> Sorry for the flood of Jira notification emails just now — I was setting up
> the tracking for this and went through a few iterations before settling on
> the right breakdown. My bad.
>
> For reference, the actual epic is here: JSPWIKI-1400
> <https://issues.apache.org/jira/browse/JSPWIKI-1400> — "Move Java code out
> of JSPs into Java classes (jspwiki-war webapp)", broken down into 5 tickets
> by area (auth/session, groups, page-editing, search/navigation,
> admin/misc).
>
> Thanks for your patience.
>
> Arturo
>
>
> On Tue, Dec 1, 2026 at 5:46 PM Arturo Bernal <[email protected]> wrote:
>
> > +1
> >
> >
> >
> > Arturo
> >
> > On Tue, 1 Dec 2026 at 3:23 PM, Jürgen Weber <[email protected]> wrote:
> >
> >> Hi all,
> >>
> >> the JSPs in jspwiki-war/src/main/webapp
> >> contain lots of Java code. E.g. Edit.jsp
> >>
> >> They should be refactored and the Java code be moved into servlets and
> >> friends under src/main/java
> >>
> >> JSPs should only contain HTML code and JSP tags.
> >>
> >> In the templates under
> >> jspwiki-war/src/main/webapp/templates/default
> >> this is mostly the case already.
> >>
> >> There should be the separation of code in Java and presentation in the
> >> JSPs. Even if the wiki is called JSPWiki ..
> >>
> >> Java code in Java classes has better tool support and is easier to
> debug.
> >>
> >> Cheers,
> >> Juergen
> >>
> >
>

Reply via email to