Re: Time To Move To Jakarta EE

2024-06-01 Thread Ulf Dittmer
On Thu, May 30, 2024 at 11:12 PM Juan Pablo Santos Rodríguez < juanpablo.san...@gmail.com> wrote: > In any case, going to JDK-17 and requiring a new major version of > Tomcat, or whichever, would be a stronger reason to name it 3.0. I > remember the attempt at 3.0, but given the amount of time

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-26 Thread Ulf Dittmer
_272x92dp.png'> }] in addition to [{Image src=' https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png' }] and now it works. Very strange behavior by Apache. On Mon, Feb 26, 2024 at 5:31 PM Ulf Dittmer wrote: > Could it have something to do with the extensive use in JSPWiki o

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-26 Thread Ulf Dittmer
e cases (like longer payloads or binary data, although that would not seem to be the issue here), On Sun, Feb 25, 2024 at 9:00 PM Ulf Dittmer wrote: > Sorry, that message got truncated: > > It's shared hosting, and I have no access to the Apache - so I don't know. > > I can (and will

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-25 Thread Ulf Dittmer
me? >> >> >> Thx in advance, >> juan pablo >> >> El sáb, 24 feb 2024, 18:23, Ulf Dittmer > .invalid> >> escribió: >> >> > Hi all- >> > >> > I'm experiencing a strange problem, and was hoping someone might have >> run &

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-25 Thread Ulf Dittmer
, Feb 25, 2024 at 10:33 AM Juan Pablo Santos Rodríguez < juanpablo.san...@gmail.com> wrote: > Hi Ulf, > > Would you mind sharing how your Apache instance is set up? Does it show to > which URL is trying to access the second time? > > > Thx in advance, > juan pablo >

Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-24 Thread Ulf Dittmer
Hi all- I'm experiencing a strange problem, and was hoping someone might have run into this before. I'm running a JSPWiki site on Tomcat with an Apache in front of it. The Apache refuses an edit of a very simple page with a "Forbidden - You don't have permission to access this resource.", namely

Re: Registering a WikiEventListener

2023-11-24 Thread Ulf Dittmer
attach, view, edit, etc.), which isn't there in a straightforward > way. > > > Best regards, > juan pablo > > El jue, 23 nov 2023, 11:43, Ulf Dittmer .invalid> > escribió: > > > I'm confused: URLConstructor.parsePageFromURL -which is used to extract > the &g

Re: Registering a WikiEventListener

2023-11-23 Thread Ulf Dittmer
t all URLs are handled as Latin1, even if they are really UTF-8. name = URLDecoder.decode(name, encoding); } On Wed, Nov 22, 2023 at 7:02 PM Ulf Dittmer wrote: > Now we're getting somewhere :-) > > In WikIEventManager, I can see my listener being added > in WikiEventDelegat

Re: Registering a WikiEventListener

2023-11-22 Thread Ulf Dittmer
long ago, IIRC due to a refactor so that the > jspwiki-event could be extracted to it's own module. Don't remember very > well, but its methods ended up mostly in WiliEventManager > > > HTH, > juan pablo > > #1: > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=HowToWriteAnEngi

Re: Registering a WikiEventListener

2023-11-22 Thread Ulf Dittmer
, that might need to be done BEFORE WikiServletFilter in instantiated, but I don't see how that is possible. But then, I'm not sure how accurate that page is - some of the other pages describing event handling some out of date. Thanks, Ulf On Tue, Nov 21, 2023 at 11:10 AM Ulf Dittmer wrote: >

Registering a WikiEventListener

2023-11-21 Thread Ulf Dittmer
Hi- I'm trying to get notified whenever a page is delivered by listening to WikiPageEvent.PAGE_DELIVERED events. To that end I implemented a WikiEventListener like this engine.addWikiEventListener(new WikiEventListener() { @Override public void actionPerformed (WikiEvent event) {

Re: Preventing seeing the page source

2023-08-22 Thread Ulf Dittmer
age? > > > > > > HTH, > > juan pablo > > > > > > [#1]: > > > > > https://github.com/apache/jspwiki/blob/master/jspwiki-main/src/main/java/org/apache/wiki/tags/UserCheckTag.java > > > > El lun, 21 ago 2023, 15:35, Ulf Dittmer >

Preventing seeing the page source

2023-08-21 Thread Ulf Dittmer
Hi- I’m setting up a public instance where I don't want anyone who is not Authenticated to be able to view the page source. Looking at Nav.jsp, I can’t make out how to set that up. I don't really want to remove the “raw” skin, as that might be useful for Authenticated users. Is there a way to

Re: ImageMapPlus

2021-09-08 Thread Ulf Dittmer
Given "com/ecyrd/jspwiki/plugin/WikiPlugin", it can't work with current JSPWiki versions. These days, the corresponding class would be org.apache.wiki.api.plugin.WikiPlugin. So you'd have to modify the source code to use the org.apache.wiki package and classes rather than com.ecyrd.jspwiki. I

Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2021-05-09 Thread Ulf Dittmer
Tomcat 10 uses Jakarta EE, not Java EE, so it makes sense that it doesn't know about the javax.servlet package. See https://tomcat.apache.org/migration-10.html for how to make JavaEE-style web apps run on Tomcat 10. On Sun, May 9, 2021 at 1:29 PM Jim Willeke wrote: > Server version name: Apache

Certificate on jspwiki-wiki.apache.org is expired

2021-03-09 Thread Ulf Dittmer
This is a to-whom-it-may-concern sort of mail, since I figure that some of the people on this list can do something about it. Ulf

Re: Edit preview interferes with JavaScript

2020-06-24 Thread Ulf Dittmer
> You can also set jspwiki.translatorReader.allowHTML = true on your > jspwiki.properties but that opens up a security risk on your installation That made the difference. I had set it to true; if I set it to false, the JavaScript is displayed, not executed. I understand the security implications;

Re: Edit preview interferes with JavaScript

2020-06-23 Thread Ulf Dittmer
> > You may want to check an older plugin ( > https://www.ecyrd.com/JSPWiki/wiki/JSPluginScripts) who allows you to do this, but not sure if this would still work. > That executes JavaScript on the server using Rhino, but I'm trying to add client-side JavaScript so it can interact with the

Re: Edit preview interferes with JavaScript

2020-06-23 Thread Ulf Dittmer
ith one of the dropdown menu's in > the edit toolbar : uncheck the LivePreview checkbox. > > > KR > dirk > > On Mon, Jun 22, 2020 at 5:01 PM Ulf Dittmer > wrote: > > > I'm trying to insert JavaScript into a wiki page, like this: > > > > [{If page='SandBox'

Edit preview interferes with JavaScript

2020-06-22 Thread Ulf Dittmer
I'm trying to insert JavaScript into a wiki page, like this: [{If page='SandBox' exists='true' document.writeln("User Agent: " + navigator.userAgent);}] (Yes, it's a gross hack, but I'm just playing a bit with what's possible, and sometimes it's nice to be able to inject arbitrary

Re: Adding or Modifying a Change Note

2019-12-10 Thread Ulf Dittmer
I would like to have an option to make a non-empty change comment mandatory! A quick search through jspwiki.properties comes up empty, so I don't think this is possible right now. Ulf On Tue, Dec 10, 2019 at 2:29 PM Col Willis wrote: > It might be better to ensure a change note is mandatory

Re: Adding meta tags to page headers

2019-07-10 Thread Ulf Dittmer
> Adding support for "keywords" to a wiki-page would be a great addition > for JSPWiki. > See also JSPWIKI-1105 > with > the suggestions to add support for page-tags (#keyword1, #keywordk2) . > That's more involved than I can than tackle at

Adding meta tags to page headers

2019-07-09 Thread Ulf Dittmer
If I wanted to add meta tags to the page header (specifically, description, keywords and robots), would I have to write a plugin or a filter? With a plugin I can pass the values of those headers along, but I don't think plugins have access (or can add) tags to the HTML header...? With a

Re: Global %%add-css blocks

2019-07-09 Thread Ulf Dittmer
< juanpablo.san...@gmail.com> wrote: > Hi Ulf, > > IIRC, only png images are inlined by default. Check for > jspwiki.translatorReader.inlinePattern entries on > jspwiki[-custom].properties file. > > (on mobile, apologies on brevity and typos) > > > HTH, > juan p

Re: Global %%add-css blocks

2019-07-09 Thread Ulf Dittmer
OK. I got it to work by using a PNG - using the same image as a JPG does not work. It would be good to mention that on https://jspwiki-wiki.apache.org/Wiki.jsp?page=How%20to%20change%20the%20site%20logo Thanks very much for your help! Ulf On Mon, Jul 8, 2019 at 6:24 PM Dirk Frederickx wrote:

Re: Global %%add-css blocks

2019-07-08 Thread Ulf Dittmer
k format) > > >> background: url([images/imagej.jpg]); > > > dirk > > > > > > > On Sat, Jul 6, 2019 at 1:19 PM Ulf Dittmer > wrote: > > > Is that supposed to work in 2.11.0.M3? I tried this and the CSS got added > > like this: >

Re: Global %%add-css blocks

2019-07-06 Thread Ulf Dittmer
Is that supposed to work in 2.11.0.M3? I tried this and the CSS got added like this: /*hide the default jspwiki logo */a.logo { border:none; text-indent:-99em;}a.logo b:before { content:""; }/* put the clean-blue logo, attached to this page */a.logo {background: url(images/imagej.jpg);

Re: Login issues after upgrade - mgr.isContainerAuthenticated() has incorrect value

2019-07-03 Thread Ulf Dittmer
I have not gotten container auth to work with 2.11.0.M3. I'm quite familiar with Java web apps, so I know what to comment and what not in web.xml, but no dice. I don't use SSO, though. But container auth works fine with other web apps on the same Tomcat instance. Ulf

Re: Are "hands-off" blocks possible?

2019-04-03 Thread Ulf Dittmer
That was awesome - I got it to work with %%prettify, as a filter and as a plugin - so much choice :) Thanks Juan and Dirk, for the quick and comprehensive help, and telling me about the details of filters and plugins. Ulf

Re: Are "hands-off" blocks possible?

2019-04-02 Thread Ulf Dittmer
No, I hadn't been aware of that. That does pretty much what I want to accomplish. And I see there's CSS to alter the colors. Thanks a lot! Out of curiosity: is there any way to achieve what I originally asked? I see myself wanting to have this in JSPWiki in some way sooner or later. Ulf On

Are "hands-off" blocks possible?

2019-04-02 Thread Ulf Dittmer
Hi- I'm trying to expand the markup possibilities by adding code blocks that get styled using the https://github.com/codelibs/jhighlight library (which emits HTML). I've written a filter that uses preTranslate to look for a particular syntax I invented ("[]") and replaces the contents of