Check that your web.xml also has the correct 2.4 servlet declaration. If you're copying the old one, your servlet container will fall back on the 2.3 -compatibilty mode, and will ignore any JSTL2.0 stuff.

/Janne

On 2 May 2008, at 23:15, Terry Steichen wrote:

Thanks for the quick responses

Dirk: I'm using the 2.6.2 commonheader.jsp and it has that call in it,
so presume that's not the issue?

Andrew: I'm using Tomcat 5.5.17, so I presume that JSTL isn't the issue?

The top elements of the log and stack trace are:

        TC6:http://localhost:8080/TC6/Edit.jsp - Editing page TCMain.
        User=FTerry22, host=0:0:0:0:0:0:0:1
        2008-05-02 15:06:18,015 [http-8080-Processor24] ERROR
        com.ecyrd.jspwiki.tags.WikiTagBase TC6:/TC6/Edit.jsp
        TC6:http://localhost:8080/TC6/Edit.jsp - Tag failed
        java.lang.IllegalArgumentException: Illegal pattern character
        'p'
                at
        java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678)
                at
java.text.SimpleDateFormat.initialize(SimpleDateFormat.java: 497)
                at
        java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:446)
                at
        java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:427)
                at
com.ecyrd.jspwiki.tags.PageDateTag.doWikiStartTag (PageDateTag.java:85)
                at
com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag (WikiTagBase.java:89)
                at
org.apache.jsp.templates.default_.PageActionsBottom_jsp._jspx_meth_wik i_PageDate_0(PageActionsBottom_jsp.java:545)
                at
org.apache.jsp.templates.default_.PageActionsBottom_jsp._jspx_meth_wik i_DiffLink_0(PageActionsBottom_jsp.java:513)
                at
org.apache.jsp.templates.default_.PageActionsBottom_jsp._jspx_meth_fmt _param_1(PageActionsBottom_jsp.java:479)
                at
org.apache.jsp.templates.default_.PageActionsBottom_jsp._jspx_meth_fmt _message_1(PageActionsBottom_jsp.java:376)
                at
org.apache.jsp.templates.default_.PageActionsBottom_jsp._jspx_meth_wik i_CheckVersion_0(PageActionsBottom_jsp.java:329)
                at
org.apache.jsp.templates.default_.PageActionsBottom_jsp._jspService (PageActionsBottom_jsp.java:147)


Here is the relevant section of PageActionsBottom:

            <wiki:CheckVersion mode="latest">
               <fmt:message key="info.lastmodified">
                  <fmt:param><wiki:PageVersion /></fmt:param>
                  <fmt:param><wiki:DiffLink version="latest"
        newVersion="previous"><wiki:PageDate
        format='${prefs["DateFormat"]}'/></wiki:DiffLink></fmt:param>
                  <fmt:param><wiki:Author /></fmt:param>
               </fmt:message>
            </wiki:CheckVersion>


It would be helpful if I could figure out how to properly display
${prefs["DateFormat"]}, but JSPWiki doesn't like any of my attempts.

Any other ideas would be gratefully accepted.


On Fri, 2008-05-02 at 22:03 +0200, Dirk Frederickx wrote:

Terry,

The format string is read from the prefs variable.
But, in order to get this to work, the prefs variable must be set first.
Check you commonheader.jsp whether it contains following stuff:

<%
   Preferences.setupPreferences(pageContext);
 %>

This will put the "prefs" variable in the pageContext, with all
user-prefs read either from the user cookie or from the
jspwiki.properties.

Good luck,
    dirk

On Fri, May 2, 2008 at 9:53 PM, Terry Steichen <[EMAIL PROTECTED] frame.com> wrote:
I'm trying to integrate my application which was based on 2.4.104 into
2.6.2

I got most of the stuff working, but I'm getting an error which seem to
stem from the use of this tag (in PageActionsBottom.jsp):

       <wiki:PageDate format='${prefs["DateFormat"]}' />


I'm assuming that the 'prefs' notation refers to a default that has to
be set in the jspwiki.properties, but I'm not sure just what this
notation is supposed to do (though I find it scattered throughout the
newer version of JSP's).

Could someone explain just what this kind of notation is and how it's
used?

PS: I added "jspwiki.defaultprefs.template.dateformat =dd-MMM-yyyy
HH:mm" to jspwiki.properties, but that didn't appear to help.

PSS: I'm keeping track of the changes and adjustments I've had to make,
so will document this when I'm all (successfully) done.







Reply via email to